Zeex / samp-plugin-crashdetect

Crash/error reporting plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=262796
BSD 2-Clause "Simplified" License
116 stars 23 forks source link

Interrupt without a proper backtrace #26

Closed zentaos closed 10 years ago

zentaos commented 10 years ago

Hello,

We have a problem, sometimes our server crash, but we can't find the problem, because the Crashdetect doesn't give a proper backtrace for the last called pawn calls.

[2013-12-28 19:38:16] [debug] Server received interrupt signal
[2013-12-28 19:38:16] [debug] Native backtrace:
[2013-12-28 19:38:16] [debug] #0 b5f227a2 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[2013-12-28 19:38:16] [debug] #1 b5f1b922 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[2013-12-28 19:38:16] [debug] #2 b5f1c42c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[2013-12-28 19:38:16] [debug] #3 b5f1c87e in _ZN11CrashDetect11OnInterruptEPv () from plugins/crashdetect.so
[2013-12-28 19:38:16] [debug] #4 b5f2237d in ?? () from plugins/crashdetect.so
[2013-12-28 19:38:16] [debug] #5 b770b40c in ?? ()
[2013-12-28 19:38:16] [debug] #6 b770b424 in ?? ()
[2013-12-28 19:38:16] [debug] #7 b748b781 in gsignal () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #8 b748ebb2 in abort () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #9 b74c1e75 in ?? () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #10 b74cbf71 in ?? () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #11 b74cd7c8 in ?? () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #12 b74d08ad in cfree () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #13 b76a7701 in _ZdlPv () from /usr/lib/libstdc++.so.6
[2013-12-28 19:38:16] [debug] #14 0806d32f in ?? () from ./samp03svr
[2013-12-28 19:38:16] [debug] #15 080b59a2 in ?? () from ./samp03svr
[2013-12-28 19:38:16] [debug] #16 080b5b42 in ?? () from ./samp03svr
[2013-12-28 19:38:16] [debug] #17 080b1453 in ?? () from ./samp03svr
[2013-12-28 19:38:16] [debug] #18 b7477ca6 in __libc_start_main () from /lib/i686/cmov/libc.so.6
[2013-12-28 19:38:16] [debug] #19 0804b521 in ?? () from ./samp03svr

Is it possible to exclude the non-pawn calls or include the last called pawn calls in the debug?

Thank you, Greetings, SeoToX

Zeex commented 10 years ago

It looks like something went wrong while doing delete. If some Pawn code was being executed at that moment I'm pretty sure it would have been shown in the AMX backtrace.