[Plugin] CrashDetect

What could cause this? Produces only when player logs-in succesfully, added prints after every function but with no luck
Code:
[20:46:50] [debug] Run time error 7: "Stack underflow"
[20:46:50] [debug]   Stack index (STK) is 0x13138A, stack top (STP) is 0x13136C
[20:46:50] [debug] AMX backtrace:
[20:46:50] [debug] #0
Reply

Quote:
Originally Posted by ombre
View Post
this plugin for a server with +100 players is steady ? It can to be used some days? The cpu/ram are more high?
yes you can use this plugin with +100 players, every day
ram is same, CPU + ~30-40%.

Hanger
Your stack is underflow, it mean you use more memory than stack is,
You can change size of stack
#pragma dynamic {size}
standart {size} - 4096

bogy007 as you can see from log server crashed while calling PlayerPlaySound

serpip
apt-get install libstdc++

Quote:
Originally Posted by ombre
View Post
Where just download the .iso and .dll because I don't know compile it

And if there are many error amx but the server don't crash, it's is write in the log?
https://github.com/Zeex/samp-crashde...ugin/downloads

Yes server don't crash and it's write in the log.

shaPP
check your filterscripts
Reply

How that would be possible? Any code example? Just don`t get it...

Edit: meh... fixed it, had too small string to hold players data.
Reply

Quote:
Originally Posted by SPAWN_METAL
View Post
bogy007 as you can see from log server crashed while calling PlayerPlaySound
I'll try to comment out all PlayerPlaySound
Reply

nice crash from kernel32.dll
Code:
[Saturday May 05/12/12 22:42:21] [debug] Server crashed due to an unknown error
[Saturday May 05/12/12 22:42:21] [debug] Native backtrace:
[Saturday May 05/12/12 22:42:24] [debug] #0  1002155f in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\plugins\crashdetect.dll
[Saturday May 05/12/12 22:42:24] [debug] #1  10022844 in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\plugins\crashdetect.dll
[Saturday May 05/12/12 22:42:24] [debug] #2  1002470e in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\plugins\crashdetect.dll
[Saturday May 05/12/12 22:42:24] [debug] #3  7c864191 in UnhandledExceptionFilter () from C:\WINDOWS\system32\kernel32.dll
[Saturday May 05/12/12 22:42:24] [debug] #4  0049cc86 in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\samp-server.exe
[Saturday May 05/12/12 22:42:24] [debug] #5  004960c0 in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\samp-server.exe
[Saturday May 05/12/12 22:42:24] [debug] #6  7c817077 in RegisterWaitForInputIdle () from C:\WINDOWS\system32\kernel32.dll
Reply

Quote:
Originally Posted by Night Dreamer
View Post
nice crash from kernel32.dll
Code:
[Saturday May 05/12/12 22:42:21] [debug] Server crashed due to an unknown error
[Saturday May 05/12/12 22:42:21] [debug] Native backtrace:
[Saturday May 05/12/12 22:42:24] [debug] #0  1002155f in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\plugins\crashdetect.dll
[Saturday May 05/12/12 22:42:24] [debug] #1  10022844 in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\plugins\crashdetect.dll
[Saturday May 05/12/12 22:42:24] [debug] #2  1002470e in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\plugins\crashdetect.dll
[Saturday May 05/12/12 22:42:24] [debug] #3  7c864191 in UnhandledExceptionFilter () from C:\WINDOWS\system32\kernel32.dll
[Saturday May 05/12/12 22:42:24] [debug] #4  0049cc86 in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\samp-server.exe
[Saturday May 05/12/12 22:42:24] [debug] #5  004960c0 in ?? () from C:\Documents and Settings\Alexandru\My Documents\Dropbox\Sharing - bogdyutzu, laur\samp03e_svr_RC8_win32\samp-server.exe
[Saturday May 05/12/12 22:42:24] [debug] #6  7c817077 in RegisterWaitForInputIdle () from C:\WINDOWS\system32\kernel32.dll
i have this crash once, whats wrong?
Reply

Code:
[14:39:00] [debug] Run time error 4: "Array index out of bounds"
[14:39:00] [debug]   Accessing element at index 101 past array upper bound 121
[14:39:00] [debug] Backtrace (most recent call first):
[14:39:00] [debug] #0  0xfbeec9d0()+0x4175ebc from lv.amx
[14:39:00] [debug] #1  public OnPlayerSpawn()+0x59 from lv.amx
Since when is 101 past 121? Seems to happen most frequently when opening the map or alt-tabbing.
Reply

[23:16:47] Loading plugin: crashdetect
[23:16:48] Failed.

why?
Reply

Код:
[15:48:31] [debug] Server crashed due to an unknown error
[15:48:31] [debug] Native backtrace:
[15:48:33] [debug] #0  1002155f in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #1  10022844 in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #2  1002470e in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #3  01128482 in SetData () from C:\WINDOWS\system32\gamelsp.dll
[15:48:33] [debug] #4  0049cc86 in ?? () from D:\复件 samp03e\samp-server.exe
[15:48:33] [debug] #5  004960c0 in ?? () from D:\复件 samp03e\samp-server.exe
[15:48:33] [debug] #6  7c82f23b in ProcessIdToSessionId () from C:\WINDOWS\system32\kernel32.dll
i had this error when i start server, i had .net 2.0 sp1, .net 3.5 sp1, .net 4, vc++2005 sp1, vc++2008 sp1, vc++2012

anyone knows whats wrong? thx
Reply

Quote:
Originally Posted by alextang0926
Посмотреть сообщение
Код:
[15:48:31] [debug] Server crashed due to an unknown error
[15:48:31] [debug] Native backtrace:
[15:48:33] [debug] #0  1002155f in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #1  10022844 in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #2  1002470e in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #3  01128482 in SetData () from C:\WINDOWS\system32\gamelsp.dll
[15:48:33] [debug] #4  0049cc86 in ?? () from D:\复件 samp03e\samp-server.exe
[15:48:33] [debug] #5  004960c0 in ?? () from D:\复件 samp03e\samp-server.exe
[15:48:33] [debug] #6  7c82f23b in ProcessIdToSessionId () from C:\WINDOWS\system32\kernel32.dll
i had this error when i start server, i had .net 2.0 sp1, .net 3.5 sp1, .net 4, vc++2005 sp1, vc++2008 sp1, vc++2012

anyone knows whats wrong? thx
any one?
Reply

Quote:
Originally Posted by alextang0926
Посмотреть сообщение
any one?
anyone help?
Reply

try to remove Winsock 2 or wincap or that C:\WINDOWS\system32\gamelsp.dll
Reply

Quote:
Originally Posted by alextang0926
Посмотреть сообщение
any one?
Quote:
Originally Posted by Night Dreamer
Посмотреть сообщение
try to remove Winsock 2 or wincap or that C:\WINDOWS\system32\gamelsp.dll
you mean delete files or end process in taskmgr? thx for reply..
Reply

what is this

pawn Код:
[18:50:26] [debug] Run time error 4: "Array index out of bounds"
[18:50:26] [debug]   Accessing element at index 999 past array upper bound 49
[18:50:26] [debug] AMX backtrace:
[18:50:26] [debug] #0  0001cce8 in ?? () from arpr7.amx
[18:50:26] [debug] #1  000bc1a0 in public cmd_stats () from arpr7.amx
[18:50:26] [debug] #2  000006e0 in public OnPlayerCommandText () from arpr7.amx
Reply

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
what is this

pawn Код:
[18:50:26] [debug] Run time error 4: "Array index out of bounds"
[18:50:26] [debug]   Accessing element at index 999 past array upper bound 49
[18:50:26] [debug] AMX backtrace:
[18:50:26] [debug] #0  0001cce8 in ?? () from arpr7.amx
[18:50:26] [debug] #1  000bc1a0 in public cmd_stats () from arpr7.amx
[18:50:26] [debug] #2  000006e0 in public OnPlayerCommandText () from arpr7.amx
It looks like that your code tried to access an invalid array id
pawn Код:
new array[5];
array[10] = 3; // crash
And it seems that it happens within a non-public function which got called by cmd_stats and that got called by OnPlayerCommandText
Just search for non-public functions within cmd_stats which could access an invalid array

Also you could try
Quote:
Originally Posted by 0x5A656578
Посмотреть сообщение
You can also get more information like line numbers, function names, parameter values, etc if compile that script in debug mode to make compiler put extra information about all that stuff into the output .amx (see here for how):

Код:
[05:27:11] [debug] Server crashed while executing crash.amx
[05:27:11] [debug] Backtrace (most recent call first):
[05:27:11] [debug] #0  native fread () from samp-server.exe
[05:27:11] [debug] #1  000000b8 in function2 () at crash.pwn:13
[05:27:11] [debug] #2  00000048 in function1 () at crash.pwn:8
[05:27:11] [debug] #3  00000024 in main () at crash.pwn:4
Reply

Wow nice
Reply

Quote:
Originally Posted by alextang0926
Посмотреть сообщение
Код:
[15:48:31] [debug] Server crashed due to an unknown error
[15:48:31] [debug] Native backtrace:
[15:48:33] [debug] #0  1002155f in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #1  10022844 in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #2  1002470e in Load () from D:\复件 samp03e\plugins\crashdetect.dll
[15:48:33] [debug] #3  01128482 in SetData () from C:\WINDOWS\system32\gamelsp.dll
[15:48:33] [debug] #4  0049cc86 in ?? () from D:\复件 samp03e\samp-server.exe
[15:48:33] [debug] #5  004960c0 in ?? () from D:\复件 samp03e\samp-server.exe
[15:48:33] [debug] #6  7c82f23b in ProcessIdToSessionId () from C:\WINDOWS\system32\kernel32.dll
i had this error when i start server, i had .net 2.0 sp1, .net 3.5 sp1, .net 4, vc++2005 sp1, vc++2008 sp1, vc++2012

anyone knows whats wrong? thx
any one can help?
Reply

Can't seem to compile the latest version I get "LINK : fatal error LNK1104: cannot open file 'and.obj'" also something is wrong with the CmakeLists file with the regex lines for version. I tried using the latest bin but it just crashes the server on start up. Does anyone have a previous working version I can use just for testing



[edit] Lolzers......seems storing the folder on the desktop ended up with too long of path names so it took "and" from Documents and Settings literally rofl.....lets see if it still crashes the server.....oh and the version crap in cmake still was not working I had to manually edit it (not that important really)


[Edit2] works fine was an error on my own accord had %D instead of %d in logtimeformat silly me......

Thanks Zeex works fine.
Reply

How to get run timer error lines printed? Can't get ir work!
Reply

Код:
[08:09:50] [debug] Server crashed while executing sf-cnr.amx
[08:09:50] [debug] AMX backtrace:
[08:09:50] [debug] #0  000005c4 in public OnPlayerCommandText (playerid=39, cmdtext[]=@0x000d0be8 "") at C:\Users\Lorenc\Desktop\SA-MP\San Fierro CNR (0.3e)\pawno\include\zcmd.inc:85
[08:09:50] [debug] Native backtrace:
[08:09:50] [debug] #0  f7e608bf in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
[08:09:50] [debug] #1  f7e62e42 in crashdetect::Crash () from plugins/crashdetect.so
[08:09:50] [debug] #2  f7e68643 in ?? () from plugins/crashdetect.so
[08:09:50] [debug] #3  ffffe500 in ?? ()
[08:09:50] [debug] #4  f7e69df3 in amx_Exec () from plugins/crashdetect.so
[08:09:50] [debug] #5  f7e6332c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[08:09:50] [debug] #6  f7e671d3 in ?? () from plugins/crashdetect.so
[08:09:50] [debug] #7  0806f902 in ?? () from ./samp03svr
[08:09:50] [debug] #8  0807fe6c in ?? () from ./samp03svr
[08:09:50] [debug] #9  080adbe1 in ?? () from ./samp03svr
[08:09:50] [debug] #10 080adcd2 in ?? () from ./samp03svr
[08:09:50] [debug] #11 080b79c0 in ?? () from ./samp03svr
[08:09:50] [debug] #12 0807d78d in ?? () from ./samp03svr
[08:09:50] [debug] #13 0807d962 in ?? () from ./samp03svr
[08:09:50] [debug] #14 08077c23 in ?? () from ./samp03svr
[08:09:50] [debug] #15 00358e9c in __libc_start_main () from /lib/libc.so.6
[08:09:50] [debug] #16 0804b4c1 in __gxx_personality_v0 () from ./samp03svr
What the hell? This has never been appearing before!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)