Raised This Month: $32 Target: $400
 8% 

Script to reproduce hlds crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 09-29-2011 , 06:52   Script to reproduce hlds crash
Reply With Quote #1

This probably sound stupid but could someone give me a piece of code that could manually trigger segmentation fault crash on hlds? Hlds doesn't completely exit its process when this happens, it just stall there until you manually kill it.

I'm writing a daemon script to restart hlds when this sort of crash occurs so I need something to test this on.
Mlk27 is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 09-29-2011 , 07:03   Re: Script to reproduce hlds crash
Reply With Quote #2

use Csdeath
__________________
Thanks and regards,
Gamer99
gamer99 is offline
The Inhabitant Of Heavens
Member
Join Date: Aug 2011
Old 09-29-2011 , 08:24   Re: Script to reproduce hlds crash
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_plugin"Killer""0.1""Lt.RAT");

    
register_srvcmd("amx_crash""crash");
    
register_srvcmd("amx_crash_msg""crash_msg");
}

public 
crash()
{
    while(
1)
    {}
}

public 
crash_msg()
{
    while(
1)
    {
        
engfunc(EngFunc_CreateEntity);
    }    

The Inhabitant Of Heavens is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 09-29-2011 , 14:57   Re: Script to reproduce hlds crash
Reply With Quote #4

Why just you use server_cmd and type "exit" or "quit" to make the hlds server to quit automatically.
MyPc is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 09-30-2011 , 02:28   Re: Script to reproduce hlds crash
Reply With Quote #5

Quote:
Originally Posted by MyPc View Post
Why just you use server_cmd and type "exit" or "quit" to make the hlds server to quit automatically.
it is because when you do quit the process is no more there. And he is trying to do like if the process is still there but it is hanged then only his script will kill the process and restart the server.


@Mlk27 -- Can you please share the script if it's working. I need that script badly. When I started my server with windows I have HLSM which did the job very good. But now I am using linux and don't have such good tool .
__________________
Thanks and regards,
Gamer99
gamer99 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode