samp-plugin-crashdetect icon indicating copy to clipboard operation
samp-plugin-crashdetect copied to clipboard

Server crashed due to an unknown error

Open Wiruspwns opened this issue 6 years ago • 3 comments

Hello, I'm using crash detect with the latest version.

I'm using CentOS 7 as OS for hosting SAMP server. All the plugins are listed at the end of the log. All the plugins are up-to-date.

Script is compiled with -d3 argument. We had

trace pfn crashdetect cs.txt

in our server.cfg file and after deleting latest two functions before crash, server continues to crash.

[00:53:03] [debug] Server crashed due to an unknown error [00:53:03] [debug] Native backtrace: [00:53:03] [debug] #0 f74358b6 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so [00:53:03] [debug] #1 f742d120 in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so [00:53:03] [debug] #2 f742d886 in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so [00:53:03] [debug] #3 f742df96 in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () in plugins/crashdetect.so [00:53:03] [debug] #4 f7434f82 in ?? () in plugins/crashdetect.so [00:53:03] [debug] #5 f779d410 in ?? () [00:53:03] [debug] #6 0807d990 in ?? () in ./samp03svr [00:53:03] [debug] #7 080705bf in ?? () in ./samp03svr [00:53:03] [debug] #8 08074928 in ?? () in ./samp03svr [00:53:03] [debug] #9 080763fe in ?? () in ./samp03svr [00:53:03] [debug] #10 f7779bbc in ?? () in /lib/libpthread.so.0 [00:53:03] [debug] #11 f755c0ee in clone () in /lib/libc.so.6 [00:53:03] [debug] Registers: [00:53:03] [debug] EAX: 869bc5e3 EBX: 32d9abe0 ECX: f5e4fd4c EDX: 00000004 [00:53:03] [debug] ESI: 00000001 EDI: 0000001d EBP: f6e5fd58 ESP: f6e5fd30 [00:53:03] [debug] EIP: 0807d990 EFLAGS: 00010246 [00:53:03] [debug] Stack: [00:53:03] [debug] ESP+00000000: 09cdd31c 0000000c f6e5fd4b 718a278a [00:53:03] [debug] ESP+00000020: 09cdd7cd 09cdcfe4 f6e5ff08 080705bf [00:53:03] [debug] ESP+00000040: 00000009 00000002 00000000 00000240 [00:53:03] [debug] ESP+00000060: 00000019 f7625420 00000360 000008a8 [00:53:03] [debug] ESP+00000080: 00000001 01010198 00000115 0000001d [00:53:03] [debug] ESP+000000a0: f6563ea8 f5e41734 f6e5fe24 00000000 [00:53:03] [debug] ESP+000000c0: f5e4174c f6e5fe24 f6e5fe18 0804d3fb [00:53:03] [debug] ESP+000000e0: f6e5fe68 f7781072 f6e5fea8 0807fbca [00:53:03] [debug] ESP+00000100: f6e5fe40 00000010 279719d7 278a278a [00:53:03] [debug] ESP+00000120: 00000002 00000020 278a278a f5e50367 [00:53:03] [debug] ESP+00000140: 081a2720 00000004 09d133c8 00000000 [00:53:03] [debug] ESP+00000160: f5e502c3 f6563ea8 0000008a f6e5fef7 [00:53:03] [debug] ESP+00000180: f5e502c3 f5e5037d 00000240 f6e5fef7 [00:53:03] [debug] ESP+000001a0: 09cdd391 f5e4d11f f6e5fee8 f6e5ff08 [00:53:03] [debug] ESP+000001c0: 081a19b4 00000000 869bb1a9 0d13f090 [00:53:03] [debug] ESP+000001e0: 09cdcfe4 0d671f18 000000e4 00000001 [00:53:03] [debug] ESP+00000200: 00000000 00000001 869bc5e3 00000004 [00:53:03] [debug] ESP+00000220: f755c0ed 09cdd39d f5e502c3 f779c828 [00:53:03] [debug] ESP+00000240: 00000000 00000000 869bc5e3 00000004 [00:53:03] [debug] ESP+00000260: f6e60034 f77c0fbc 01281ae7 05303dd9 [00:53:03] [debug] ESP+00000280: f651a400 17000028 00000000 00000000 [00:53:03] [debug] ESP+000002a0: 058b7050 00000005 f746acb8 f76442a0 [00:53:03] [debug] ESP+000002c0: 00000000 00000000 00000002 00000000 [00:53:03] [debug] ESP+000002e0: 00000000 f77c0fbc f779c670 00000005 [00:53:03] [debug] ESP+00000300: 00000001 00000005 00000000 f778b118 [00:53:03] [debug] ESP+00000320: f6e60390 fffff068 f763e559 f7643000 [00:53:03] [debug] ESP+00000340: f6e60390 00000001 00000001 f748d030 [00:53:03] [debug] ESP+00000360: f6e60390 00000001 00000000 00000000 [00:53:03] [debug] ESP+00000380: f6e60260 f6e60100 f6e60d90 f778b000 [00:53:03] [debug] ESP+000003a0: 00000048 00000800 00000000 f6e600e1 [00:53:03] [debug] ESP+000003c0: ffffffe4 f7780530 f6e60390 00000000 [00:53:03] [debug] ESP+000003e0: 00000000 00000000 00000000 00000000 [00:53:03] [debug] Loaded modules: [00:53:03] [debug] 00000000 - 00187dc3 samp03svr [00:53:03] [debug] f779f000 - f779f530 [00:53:03] [debug] f778e000 - f7790674 /lib/libdl.so.2 [00:53:03] [debug] f7773000 - f778cad3 /lib/libpthread.so.0 [00:53:03] [debug] f7687000 - f7778e88 /lib/libstdc++.so.6 [00:53:03] [debug] f7645000 - f76861f0 /lib/libm.so.6 [00:53:03] [debug] f7629000 - f76426f8 /lib/libgcc_s.so.1 [00:53:03] [debug] f745e000 - f7630803 /lib/libc.so.6 [00:53:03] [debug] f779e000 - f77c10f0 /lib/ld-linux.so.2 [00:53:03] [debug] f7416000 - f745a3ac plugins/crashdetect.so [00:53:03] [debug] f7072000 - f741aac7 plugins/mysql_static.so [00:53:03] [debug] f7060000 - f7066d90 /lib/librt.so.1 [00:53:03] [debug] f664d000 - f665e730 /lib/libnss_files.so.2 [00:53:03] [debug] f621c000 - f6303b50 plugins/pawncmd.so [00:53:03] [debug] f60d4000 - f6220440 plugins/pawnraknet.so [00:53:03] [debug] f5feb000 - f60d7778 plugins/pawnregex.so [00:53:03] [debug] f663c000 - f664b9b4 plugins/sscanf.so [00:53:03] [debug] f5f25000 - f5fea740 plugins/streamer.so [00:53:03] [debug] f7069000 - f7070424 plugins/timerfix.so [00:53:03] [debug] f6618000 - f663b04f plugins/SKY.so [00:53:03] [debug] f7794000 - f7798d1c /lib/libnss_dns.so.2 [00:53:03] [debug] f5e23000 - f5e3ae54 /lib/libresolv.so.2

Wiruspwns avatar Feb 25 '20 10:02 Wiruspwns

So what's the bug? or you're looking for help with your crash?

Zeex avatar Feb 25 '20 15:02 Zeex

@Zeex Is there a way for crashdetect to dispaly more of a usefull informations (ex. call stack or something else) when server goes unexpectedly offline.

Also, if you have any additional information regarding to this crash? What should we look for?

We have -Z+ , -d3, all plugins up-to-date. We're using CentOS7.

Wiruspwns avatar Feb 25 '20 15:02 Wiruspwns

It does display a call stack when possible, but when it says "due to an unknown error" it usually means that the AMX call stack was empty at that time. Looking at the output, it seems that the crash happened in some worker thread in samp03svr. I'm not much familiar with the SA-MP server architecture, as far as I remember it does networking in a separate thread, so this could be it.

Zeex avatar Feb 27 '20 18:02 Zeex