CentOS screen segfault in libgcc_s
#1

When exiting screen in CentOS 6.5 64bit (CTRL+C) following is being printed in /var/log/messages

Код:
kernel: samp03svr[6597]: segfault at 5b16a0 ip 00000000005b16a0 sp 00000000f45d5ffc error 15 in libgcc_s-4.4.7-20120601.so.1[18e000+1d000]
abrt[6779]: Saved core dump of pid 6590 (/home/nef/samp/samp03svr) to /var/spool/abrt/ccpp-2014-01-04-19:23:02-6590 (103047168 bytes)
abrtd: Directory 'ccpp-2014-01-04-19:23:02-6590' creation detected
abrtd: Executable '/home/nef/samp/samp03svr' doesn't belong to any package and ProcessUnpackaged is set to 'no'
abrtd: 'post-create' on '/var/spool/abrt/ccpp-2014-01-04-19:23:02-6590' exited with 1
abrtd: Deleting problem directory '/var/spool/abrt/ccpp-2014-01-04-19:23:02-6590'
glibc.i686, libstdc++.i686 and gcc is installed and samp03svr has executable rights.
sp and ip always changes it also was segfault error 14 once but ****** didn't help.

Edit: Installed plugins: sscanf.so streamer.so mysql_static.so (R34) irc.so dns.so
Reply
#2

Try to debug it. Install "gdb" (the GNU debugger) and execute "gdb sampsvr" and "run". If it crashes, the debugger will show more informations. Post them here. And when it crashes, execute "bt", this will print the backtrace (also post it here).
Reply
#3

Perhaps you should try CTRL + A, D instead of CTRL + C when exiting screen. The first key combination (CTRL + A, D) detaches from the current screen.
Reply
#4

Did following:
Код:
gdb samp03svr
run
CTRL+C to exit samp window
Код:
signal SIGINT (to simulate CTRL+C)
Output of gdb:
Код:
(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
Output of the server log:
Код:
[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
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.

Quote:
Originally Posted by SchurmanCQC
Посмотреть сообщение
Perhaps you should try CTRL + A, D instead of CTRL + C when exiting screen. The first key combination (CTRL + A, D) detaches from the current screen.
Yeah I usually do that after starting the server but with CTRL+C I want to stop the server not just exit the screen.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)