28.01.2014, 20:32
Did following:
CTRL+C to exit samp window
Output of gdb:
Output of the server log:
Just noticed that with crashdetect and without gdb following is beting output:
http://pastebin.com/t0J5mQ29
Seems to be related to the query in OnGameModeExit. I will test it further and with may also with R35 to provide more info.
Yeah I usually do that after starting the server but with CTRL+C I want to stop the server not just exit the screen.
Код:
gdb samp03svr run
Код:
signal SIGINT (to simulate CTRL+C)
Код:
(gdb) signal SIGINT Continuing with signal SIGINT. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xf5812b70 (LWP 15326)] 0x00579a41 in my_real_read (net=0x8cead00, complen=0xf5812088) at net.c:818 818 net.c: No such file or directory. in net.c (gdb) bt #0 0x00579a41 in my_real_read (net=0x8cead00, complen=0xf5812088) at net.c:818 #1 0x00579df3 in my_net_read (net=0x8cead00) at net.c:1011 #2 0x005739cf in cli_safe_read (mysql=0x8cead00) at client.c:693 #3 0x00574105 in cli_read_query_result (mysql=0x8cead00) at client.c:2827 #4 0x00572334 in mysql_real_query (mysql=0x8cead00, query=0x99ee5e4 "TRUNCATE TABLE `online`;", length=24) at client.c:2931 #5 0x005297a6 in CMySQLQuery::Execute() () from plugins/mysql_static.so #6 0x00525edc in CMySQLHandle::ProcessQueries() () from plugins/mysql_static.so #7 0x00526097 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CMySQLHandle>, boost::_bi::list1<boost::_bi::value<CMySQLHandle*> > > >::run() () from plugins/mysql_static.so #8 0x00549066 in thread_proxy () from plugins/mysql_static.so #9 0x0011cb39 in start_thread () from /lib/libpthread.so.0 #10 0x00382d6e in clone () from /lib/libc.so.6
Код:
[21:33:22] [debug] Server received interrupt signal [21:33:22] [debug] Native backtrace: [21:33:22] [debug] #0 00885ad6 in _ZN10StackTraceC2EPv () from plugins/crashdetect.so [21:33:22] [debug] #1 0087c368 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [21:33:22] [debug] #2 0087c2bd in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [21:33:22] [debug] #3 0087b429 in _ZN11CrashDetect11OnInterruptEPv () from plugins/crashdetect.so [21:33:22] [debug] #4 0088591b in ?? () from plugins/crashdetect.so [21:33:22] [debug] #5 00110410 in ?? () [21:33:22] [debug] #6 00110430 in ?? () [21:33:22] [debug] #7 00341996 in nanosleep () from /lib/libc.so.6 [21:33:22] [debug] #8 0037baec in usleep () from /lib/libc.so.6 [21:33:22] [debug] #9 080b16ee in ?? () from samp03svr [21:33:22] [debug] #10 002b6d26 in __libc_start_main () from /lib/libc.so.6 [21:33:22] [debug] #11 0804b521 in ?? () from samp03svr
http://pastebin.com/t0J5mQ29
Seems to be related to the query in OnGameModeExit. I will test it further and with may also with R35 to provide more info.
Yeah I usually do that after starting the server but with CTRL+C I want to stop the server not just exit the screen.