SA-MP Forums Archive
Server crash - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server crash (/showthread.php?tid=435660)



Server crash - jamesmercer1947 - 07.05.2013

Hello, guys.
My server is crashing. So, I added crash detect but I can't understand the problem.
Can you tell me about the problem and how to fix it?

Код:
[16:21:36] [debug] AMX backtrace:
[16:21:36] [debug] #0 native SendClientMessage () [080cd4b0] from samp03svr
[16:21:36] [debug] #1 0001b1f0 in public OnDialogResponse (0x00000001, 0x00000002, 0x00000001, 0xffffffff, 0x005cfb6c) from exrp.amx
[16:21:36] [debug] Native backtrace:
[16:21:36] [debug] #0 b7b9741b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:21:36] [debug] #1 b7b8edd2 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:21:36] [debug] #2 b7b90a89 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:21:36] [debug] #3 b7b970b0 in ?? () from plugins/crashdetect.so
[16:21:36] [debug] #4 b7ee38f0 in ?? () from /lib/libpthread.so.0
[16:21:36] [debug] #5 b7c83bc1 in ?? () from /lib/libc.so.6
[16:21:36] [debug] #6 b7c4e4df in _IO_vfprintf () from /lib/libc.so.6
[16:21:36] [debug] #7 b7c6d96c in vsprintf () from /lib/libc.so.6
[16:21:36] [debug] #8 080b4311 in ?? () from ./samp03svr
[16:21:36] [debug] #9 080cd559 in ?? () from ./samp03svr
[16:21:36] [debug] #10 08093c94 in ?? () from ./samp03svr
[16:21:36] [debug] #11 b7b8e5bc in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:21:36] [debug] #12 b7b92d9c in ?? () from plugins/crashdetect.so
[16:21:36] [debug] #13 b7b9b45d in amx_Exec () from plugins/crashdetect.so
[16:21:36] [debug] #14 b7b9091b in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:21:36] [debug] #15 b7b92d40 in ?? () from plugins/crashdetect.so
[16:21:36] [debug] #16 080ae33f in ?? () from ./samp03svr
[16:21:36] [debug] #17 080b97da in ?? () from ./samp03svr
[16:21:36] [debug] #18 08071ae8 in ?? () from ./samp03svr
[16:21:36] [debug] #19 08071be2 in ?? () from ./samp03svr
[16:21:36] [debug] #20 0807ba00 in ?? () from ./samp03svr
[16:21:36] [debug] #21 080b59ad in ?? () from ./samp03svr
[16:21:36] [debug] #22 080b5b42 in ?? () from ./samp03svr
[16:21:36] [debug] #23 080b1453 in ?? () from ./samp03svr
[16:21:36] [debug] #24 b7c20ce6 in __libc_start_main () from /lib/libc.so.6
[16:21:36] [debug] #25 0804b521 in ?? () from ./samp03svr
Thank you


Respuesta: Server crash - LoLeRo - 07.05.2013

Can you upload the "exrp.pwn" please? I cant help you without that lines.

Also make you sure that you have the last version of crashdetect plugin (4.11)

Download crashdetect.so plugin (v4.11) Linux


Re: Server crash - jamesmercer1947 - 07.05.2013

Well, add me on Skype please. (Name: Harkishanjan5)
I can't upload script here.


Respuesta: Server crash - LoLeRo - 07.05.2013

Ok, added.


Re: Server crash - jamesmercer1947 - 08.05.2013

My server is still crashing.
Can anyone help me?
Here you can see error of crash detect.
Quote:

[15:51:15] [debug] Server crashed while executing exrp.amx
[15:51:15] [debug] AMX backtrace:
[15:51:15] [debug] #0 native SendClientMessage () [080cd4b0] from samp03svr
[15:51:15] [debug] #1 0001c100 in public OnDialogResponse (0x00000000, 0x00000002, 0x00000001, 0xffffffff, 0x005d0530) from exrp.amx
[15:51:15] [debug] Native backtrace:
[15:51:15] [debug] #0 b7c0641b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[15:51:15] [debug] #1 b7bfddd2 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[15:51:15] [debug] #2 b7bffa89 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[15:51:15] [debug] #3 b7c060b0 in ?? () from plugins/crashdetect.so
[15:51:15] [debug] #4 b7f528f0 in ?? () from /lib/libpthread.so.0
[15:51:15] [debug] #5 b7cf2bc1 in ?? () from /lib/libc.so.6
[15:51:15] [debug] #6 b7cbd4df in _IO_vfprintf () from /lib/libc.so.6
[15:51:15] [debug] #7 b7cdc96c in vsprintf () from /lib/libc.so.6
[15:51:15] [debug] #8 080b4311 in ?? () from ./samp03svr
[15:51:15] [debug] #9 080cd559 in ?? () from ./samp03svr
[15:51:15] [debug] #10 08093c94 in ?? () from ./samp03svr
[15:51:15] [debug] #11 b7bfd5bc in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[15:51:15] [debug] #12 b7c01d9c in ?? () from plugins/crashdetect.so
[15:51:15] [debug] #13 b7c0a45d in amx_Exec () from plugins/crashdetect.so
[15:51:15] [debug] #14 b7bff91b in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[15:51:15] [debug] #15 b7c01d40 in ?? () from plugins/crashdetect.so
[15:51:15] [debug] #16 080ae33f in ?? () from ./samp03svr
[15:51:15] [debug] #17 080b97da in ?? () from ./samp03svr
[15:51:15] [debug] #18 08071ae8 in ?? () from ./samp03svr
[15:51:15] [debug] #19 08071be2 in ?? () from ./samp03svr
[15:51:15] [debug] #20 0807ba00 in ?? () from ./samp03svr
[15:51:15] [debug] #21 080b59ad in ?? () from ./samp03svr
[15:51:15] [debug] #22 080b5b42 in ?? () from ./samp03svr
[15:51:15] [debug] #23 080b1453 in ?? () from ./samp03svr
[15:51:15] [debug] #24 b7c8fce6 in __libc_start_main () from /lib/libc.so.6
[15:51:15] [debug] #25 0804b521 in ?? () from ./samp03svr




Re: Server crash - Vlad_Cruiser - 03.06.2013

Read somewhere that it is necessary to move the mysql_close (connectionHandle); of OnGameModeExit () in GameModeExitFunc () to set the reset mode, that is, would look something like this:

Quote:

public GameModeExitFunc ()
{
mysql_close (connectionHandle);
GameModeExit ();
}

instead connectionHandle your connection will insert

I apologize for my knowledge of English, I'm from Russia


Re: Server crash - Richie© - 03.06.2013

try compiling with -d2, then it will show more info.