AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get a name of the last function called before server crashed (https://forums.alliedmods.net/showthread.php?t=156191)

SonicSonedit 05-02-2011 08:09

Get a name of the last function called before server crashed
 
I tried search, but didn't find any relevant threads.
So, the problem is that my server crashes from time to time and i want to know what function was called before it crashed.

matsi 05-02-2011 08:36

Re: Get a name of the last function called before server crashed
 
Are you sure its caused by a plugin? Check your logs if you haven't already done that.

reinert 05-02-2011 08:50

Re: Get a name of the last function called before server crashed
 
Well my server crashes either, I'm using Deathrun manager by xPaw and it crashes with error: Segmentation fault, logs are empty. Can't find out where is the problem. Server crashes most at the start of round. also issue can be in my other plugins but I very doubt it.

And would be great if anyone could make a plugin like that.

matsi 05-02-2011 08:57

Re: Get a name of the last function called before server crashed
 
I think someone asked that before and someone answered ( don't know what ). I can search that topic when i get home.

SonicSonedit 05-02-2011 09:19

Re: Get a name of the last function called before server crashed
 
Quote:

Are you sure its caused by a plugin?
Well, no, but what else?

Quote:

Check your logs if you haven't already done that.
This was the first thing i did. Logs are as pure as snow.

Quote:

Server crashes most at the start of round.
Same here. But I use Zombie Plague, not deathrun...but still, i guess our problem has same roots.

Quote:

I think someone asked that before and someone answered ( don't know what ). I can search that topic when i get home.
Yes, I saw that thread too...and can't find it now =\

matsi 05-02-2011 09:40

Re: Get a name of the last function called before server crashed
 
Quote:

Originally Posted by SonicSonedit (Post 1462008)
Well, no, but what else?

If you're missing files from maps your server will crash. Don't know if that will be logged or not. http://www.btcf.fi/forum/images/smilies/thinking.gif <--- We really need that emoticon. Could it be your server ?

Quote:

Originally Posted by SonicSonedit (Post 1462008)
This was the first thing i did. Logs are as pure as snow.

Same here. But I use Zombie Plague, not deathrun...but still, i guess our problem has same roots.

Yes, I saw that thread too...and can't find it now =\

Can't find it either... :| I doubt this won't help you if you don't get any errors. Maybe if you shared the code or told more about your code somebody could know what causing the crash. Who knows? :D

SonicSonedit 05-02-2011 10:10

Re: Get a name of the last function called before server crashed
 
Quote:

If you're missing files from maps your server will crash.
I don't think i miss anything from de_dust2.
Quote:

Could it be your server ?
Not really.

Quote:

Maybe if you shared the code
If I'd knew what part of code causes it, i would fix it myself. I don't really know what plugin is it (it even maybe ZP itself).

Quote:

I doubt this won't help you
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_forward(FM_Sys_Error"fw_Sys_Error")
    
register_forward(FM_GameShutdown"fw_Sys_Error")
    
register_forward(FM_ServerDeactivate "fw_Sys_Error")
}

public 
fw_Sys_Error(const error[]) 
{
    static 
strtemp[1024]
    
    
get_time("%m/%d/%Y - %H:%M:%S"strtempcharsmax(strtemp));
    
add(strtempcharsmax(strtemp), " - server crashed! Error: "64)
    
add(strtempcharsmax(strtemp), error1024)
    
log_to_file("server_crashed.txt"strtemp


Quote:

L 05/02/2011 - 18:31:19: Log file started (file "cstrike/addons/amxmodx/logs/server_crashed.txt") (game "cstrike") (amx "1.8.1.3746")
L 05/02/2011 - 18:31:19: 05/02/2011 - 18:31:19 - server crashed! Error: New Plug-In
L 05/02/2011 - 18:31:25: 05/02/2011 - 18:31:25 - server crashed! Error: New Plug-In
L 05/02/2011 - 18:43:33: 05/02/2011 - 18:43:33 - server crashed! Error: New Plug-In
New Plug-In? It looks like error[] is unallocated string or something.

SonicSonedit 05-04-2011 06:45

Re: Get a name of the last function called before server crashed
 
Arkshine
I remember you posted in some thread about binary debug, in that thread someone somehow got a name of last function called before server crashed, but i can't find this thread now. Can you help me by giving link to it or giving any info about binary debug?


All times are GMT -4. The time now is 04:26.

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