Raised This Month: $ Target: $400
 0% 

Get a name of the last function called before server crashed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-02-2011 , 08:09   Get a name of the last function called before server crashed
Reply With Quote #1

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.
__________________

SonicSonedit is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 05-02-2011 , 08:36   Re: Get a name of the last function called before server crashed
Reply With Quote #2

Are you sure its caused by a plugin? Check your logs if you haven't already done that.
matsi is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 05-02-2011 , 08:50   Re: Get a name of the last function called before server crashed
Reply With Quote #3

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.
reinert is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 05-02-2011 , 08:57   Re: Get a name of the last function called before server crashed
Reply With Quote #4

I think someone asked that before and someone answered ( don't know what ). I can search that topic when i get home.
matsi is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-02-2011 , 09:19   Re: Get a name of the last function called before server crashed
Reply With Quote #5

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 =\
__________________


Last edited by SonicSonedit; 05-02-2011 at 09:22.
SonicSonedit is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 05-02-2011 , 09:40   Re: Get a name of the last function called before server crashed
Reply With Quote #6

Quote:
Originally Posted by SonicSonedit View Post
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. <--- We really need that emoticon. Could it be your server ?

Quote:
Originally Posted by SonicSonedit View Post
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?
matsi is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-02-2011 , 10:10   Re: Get a name of the last function called before server crashed
Reply With Quote #7

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 - 181:19: Log file started (file "cstrike/addons/amxmodx/logs/server_crashed.txt") (game "cstrike") (amx "1.8.1.3746")
L 05/02/2011 - 181:19: 05/02/2011 - 181:19 - server crashed! Error: New Plug-In
L 05/02/2011 - 181:25: 05/02/2011 - 181:25 - server crashed! Error: New Plug-In
L 05/02/2011 - 18:433: 05/02/2011 - 18:433 - server crashed! Error: New Plug-In
New Plug-In? It looks like error[] is unallocated string or something.
__________________


Last edited by SonicSonedit; 05-02-2011 at 11:16.
SonicSonedit is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-04-2011 , 06:45   Re: Get a name of the last function called before server crashed
Reply With Quote #8

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?
__________________

SonicSonedit 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 04:26.


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