Page 1 of 1

Linux Crash dump

Posted: Wed Dec 23, 2009 8:57 am
by John Adams
LE, maybe this will be helpful looking at the crash at player logoff/zone shutdown seen on the Win32 version. Scatman had logged off EQ2Emu DB Project server, and when the zone he was in shut down, we crashed - here's the backtrace and a little of the console before the crash:

Code: Select all

[New Thread 0xadbfcb70 (LWP 6031)]
[Thread 0xadbfcb70 (LWP 6031) exited]
[20091223 04:07:04] [Status] OP_Unknown Received 0468
   0: 00 00 01 25 00 00 00 00 - 00 00 00                 | ...%.......
[20091223 04:07:05] [Status] OP_Unknown Received 0179
   0: 00 00                                              | ..
   0: 89 01 00 00                                        | ....
[20091223 04:07:05] [Status] Unhandled command: clearallqueuedabilities
   0: 25 00 01 00 30                                     | %...0
   0: 23 00 01 00 31                                     | #...1
[20091223 04:07:09] [Status] OP_SatMsg Received 0172
[20091223 04:07:12] [Status] Zone: Scheduling client 'Scatmann' for removal.
Removing connection
[20091223 04:12:12] [Status] Initiating zone shutdown of 'Nettleville'
[Thread 0xaebfeb70 (LWP 6029) exited]
[Thread 0xae3fdb70 (LWP 6030) exited]
[20091223 04:12:13] [Status] Completed zone shutdown of 'Nettleville'
[Thread 0xaf3ffb70 (LWP 6028) exited]
*** glibc detected *** /home/eq2dev/bin/eq2world: corrupted double-linked list:                                                                                                                                0x0eb7bf90 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7b89ff1]
/lib/tls/i686/cmov/libc.so.6[0xb7b8a21e]
/lib/tls/i686/cmov/libc.so.6[0xb7b8c4b2]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x58)[0xb7b8e868]
/usr/lib/libmysqlclient.so.15(my_malloc+0x2d)[0xb7d0d0fd]
/usr/lib/libmysqlclient.so.15(alloc_root+0xc6)[0xb7d10516]
/usr/lib/libmysqlclient.so.15(cli_read_rows+0xd7)[0xb7d34fb7]
/usr/lib/libmysqlclient.so.15[0xb7d35303]
/usr/lib/libmysqlclient.so.15(mysql_real_query+0x46)[0xb7d33466]
/home/eq2dev/bin/eq2world(_ZN6DBcore8RunQueryEPKcjPcPP12st_mysql_resPjS6_S6_b+0x                                                                                                                               82)[0x812b88e]
/home/eq2dev/bin/eq2world(_ZN5Query9RunQuery2ESs10QUERY_TYPE+0x155)[0x81354a7]
/home/eq2dev/bin/eq2world(_ZN5Query9RunQuery2E10QUERY_TYPEPKcz+0x118)[0x81355cc]
/home/eq2dev/bin/eq2world(_ZN13WorldDatabase34WriteServerStatisticsNeededQueries                                                                                                                               Ev+0xa1)[0x81451db]
/home/eq2dev/bin/eq2world(_ZN5World21WriteServerStatisticsEv+0x52)[0x81ecbfc]
/home/eq2dev/bin/eq2world(_ZN5World7ProcessEv+0xe8)[0x81f9fd6]
/home/eq2dev/bin/eq2world(main+0xc49)[0x812236a]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7b35b56]
/home/eq2dev/bin/eq2world[0x80b4171]
======= Memory map: ========
08048000-082a3000 r-xp 00000000 fc:00 393432     /home/eq2dev/src/EQ2/Source/Wor                                                                                                                               ld/eq2world
082a3000-082a4000 r--p 0025a000 fc:00 393432     /home/eq2dev/src/EQ2/Source/Wor                                                                                                                               ld/eq2world
082a4000-082a5000 rw-p 0025b000 fc:00 393432     /home/eq2dev/src/EQ2/Source/Wor                                                                                                                               ld/eq2world
082a5000-106d9000 rw-p 00000000 00:00 0          [heap]
ad200000-ad221000 rw-p 00000000 00:00 0
ad221000-ad300000 ---p 00000000 00:00 0
ad3fc000-ad3fd000 ---p 00000000 00:00 0
ad3fd000-adbfd000 rw-p 00000000 00:00 0
adbfd000-adbfe000 ---p 00000000 00:00 0
adbfe000-ae3fe000 rw-p 00000000 00:00 0
ae3fe000-ae3ff000 ---p 00000000 00:00 0
ae3ff000-aebff000 rw-p 00000000 00:00 0
aebff000-aec00000 ---p 00000000 00:00 0
aec00000-af400000 rw-p 00000000 00:00 0
af400000-af500000 rw-p 00000000 00:00 0
af5ff000-af600000 ---p 00000000 00:00 0
af600000-afe00000 rw-p 00000000 00:00 0
afe00000-afe41000 rw-p 00000000 00:00 0
afe41000-aff00000 ---p 00000000 00:00 0
affff000-b0000000 ---p 00000000 00:00 0
b0000000-b0800000 rw-p 00000000 00:00 0
b0800000-b0a00000 rw-p 00000000 00:00 0
b0a00000-b0c00000 rw-p 00000000 00:00 0
b0c00000-b0cf4000 rw-p 00000000 00:00 0
b0cf4000-b0d00000 ---p 00000000 00:00 0
b0d00000-b0e00000 rw-p 00000000 00:00 0
b0e00000-b0ef4000 rw-p 00000000 00:00 0
b0ef4000-b0f00000 ---p 00000000 00:00 0
b0fff000-b1000000 ---p 00000000 00:00 0
b1000000-b1800000 rw-p 00000000 00:00 0
b1800000-b19e7000 rw-p 00000000 00:00 0
b19e7000-b1a00000 ---p 00000000 00:00 0
b1a00000-b1c00000 rw-p 00000000 00:00 0
b1c00000-b1d00000 rw-p 00000000 00:00 0
b1dfb000-b1dfc000 ---p 00000000 00:00 0
b1dfc000-b25fc000 rw-p 00000000 00:00 0
b25fc000-b25fd000 ---p 00000000 00:00 0
b25fd000-b2dfd000 rw-p 00000000 00:00 0
b2dfd000-b2dfe000 ---p 00000000 00:00 0
b2dfe000-b35fe000 rw-p 00000000 00:00 0
b35fe000-b35ff000 ---p 00000000 00:00 0
b35ff000-b3dff000 rw-p 00000000 00:00 0
b3dff000-b3e00000 ---p 00000000 00:00 0
b3e00000-b4600000 rw-p 00000000 00:00 0
b4600000-b4700000 rw-p 00000000 00:00 0
b47df000-b47e0000 ---p 00000000 00:00 0
b47e0000-b4fe0000 rw-p 00000000 00:00 0
b4fe0000-b4fe1000 ---p 00000000 00:00 0
b4fe1000-b57e1000 rw-p 00000000 00:00 0
b57e1000-b57e2000 ---p 00000000 00:00 0
b57e2000-b72ac000 rw-p 00000000 00:00 0
b72ac000-b72ad000 ---p 00000000 00:00 0
b72ad000-b7aad000 rw-p 00000000 00:00 0
b7aad000-b7abd000 r-xp 00000000 fc:00 973        /lib/tls/i686/cmov/libresolv-2.                                                                                                                               10.1.so
b7abd000-b7abe000 r--p 00010000 fc:00 973        /lib/tls/i686/cmov/libresolv-2.                                                                                                                               10.1.so
b7abe000-b7abf000 rw-p 00011000 fc:00 973        /lib/tls/i686/cmov/libresolv-2.                                                                                                                               10.1.so
b7abf000-b7ac1000 rw-p 00000000 00:00 0
b7ac1000-b7ac6000 r-xp 00000000 fc:00 966        /lib/tls/i686/cmov/libnss_dns-2                                                                                                                               .10.1.so
b7ac6000-b7ac7000 r--p 00004000 fc:00 966        /lib/tls/i686/cmov/libnss_dns-2                                                                                                                               .10.1.so
b7ac7000-b7ac8000 rw-p 00005000 fc:00 966        /lib/tls/i686/cmov/libnss_dns-2                                                                                                                               .10.1.so
b7ac8000-b7ad2000 r-xp 00000000 fc:00 967        /lib/tls/i686/cmov/libnss_files                                                                                                                               -2.10.1.so
b7ad2000-b7ad3000 r--p 00009000 fc:00 967        /lib/tls/i686/cmov/libnss_files                                                                                                                               -2.10.1.so
b7ad3000-b7ad4000 rw-p 0000a000 fc:00 967        /lib/tls/i686/cmov/libnss_files                                                                                                                               -2.10.1.so
b7ad4000-b7ad6000 rw-p 00000000 00:00 0
b7ad6000-b7ae9000 r-xp 00000000 fc:00 964        /lib/tls/i686/cmov/libnsl-2.10.                                                                                                                               1.so
b7ae9000-b7aea000 r--p 00012000 fc:00 964        /lib/tls/i686/cmov/libnsl-2.10.                                                                                                                               1.so
b7aea000-b7aeb000 rw-p 00013000 fc:00 964        /lib/tls/i686/cmov/libnsl-2.10.                                                                                                                               1.so
b7aeb000-b7aed000 rw-p 00000000 00:00 0
b7aed000-b7af6000 r-xp 00000000 fc:00 960        /lib/tls/i686/cmov/libcrypt-2.1                                                                                                                               0.1.so
b7af6000-b7af7000 r--p 00008000 fc:00 960        /lib/tls/i686/cmov/libcrypt-2.1                                                                                                                               0.1.so
b7af7000-b7af8000 rw-p 00009000 fc:00 960        /lib/tls/i686/cmov/libcrypt-2.1                                                                                                                               0.1.so
b7af8000-b7b1f000 rw-p 00000000 00:00 0
b7b1f000-b7c5d000 r-xp 00000000 fc:00 958        /lib/tls/i686/cmov/libc-2.10.1.                                                                                                                               so
b7c5d000-b7c5f000 r--p 0013e000 fc:00 958        /lib/tls/i686/cmov/libc-2.10.1.                                                                                                                               so
b7c5f000-b7c60000 rw-p 00140000 fc:00 958        /lib/tls/i686/cmov/libc-2.10.1.                                                                                                                               so
b7c60000-b7c63000 rw-p 00000000 00:00 0
b7c63000-b7c78000 r-xp 00000000 fc:00 972        /lib/tls/i686/cmov/libpthread-2                                                                                                                               .10.1.so
b7c78000-b7c79000 r--p 00014000 fc:00 972        /lib/tls/i686/cmov/libpthread-2                                                                                                                               .10.1.so
b7c79000-b7c7a000 rw-p 00015000 fc:00 972        /lib/tls/i686/cmov/libpthread-2                                                                                                                               .10.1.so
b7c7a000-b7c7d000 rw-p 00000000 00:00 0
b7c7d000-b7c99000 r-xp 00000000 fc:00 332        /lib/libgcc_s.so.1
b7c99000-b7c9a000 r--p 0001b000 fc:00 332        /lib/libgcc_s.so.1
b7c9a000-b7c9b000 rw-p 0001c000 fc:00 332        /lib/libgcc_s.so.1
b7c9b000-b7c9d000 r-xp 00000000 fc:00 961        /lib/tls/i686/cmov/libdl-2.10.1                                                                                                                               .so
b7c9d000-b7c9e000 r--p 00001000 fc:00 961        /lib/tls/i686/cmov/libdl-2.10.1                                                                                                                               .so
b7c9e000-b7c9f000 rw-p 00002000 fc:00 961        /lib/tls/i686/cmov/libdl-2.10.1                                                                                                                               .so
b7c9f000-b7cc9000 r-xp 00000000 fc:00 140509     /usr/lib/liblua5.1.so.0.0.0
b7cc9000-b7cca000 r--p 0002a000 fc:00 140509     /usr/lib/liblua5.1.so.0.0.0
b7cca000-b7ccb000 rw-p 0002b000 fc:00 140509     /usr/lib/liblua5.1.so.0.0.0
b7ccb000-b7e67000 r-xp 00000000 fc:00 140400     /usr/lib/libmysqlclient.so.15.0                                                                                                                               .0
b7e67000-b7e68000 ---p 0019c000 fc:00 140400     /usr/lib/libmysqlclient.so.15.0                                                                                                                               .0
b7e68000-b7e6b000 r--p 0019c000 fc:00 140400     /usr/lib/libmysqlclient.so.15.0                                                                                                                               .0
b7e6b000-b7eab000 rw-p 0019f000 fc:00 140400     /usr/lib/libmysqlclient.so.15.0                                                                                                                               .0
b7eab000-b7eac000 rw-p 00000000 00:00 0
Program received signal SIGABRT, Aborted.
0xb7fe2430 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fe2430 in __kernel_vsyscall ()
#1  0xb7b494d1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7b4c932 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7b7fee5 in ?? () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7b89ff1 in ?? () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7b8a21e in ?? () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7b8c4b2 in ?? () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7b8e868 in malloc () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7d0d0fd in my_malloc () from /usr/lib/libmysqlclient.so.15
#9  0xb7d10516 in alloc_root () from /usr/lib/libmysqlclient.so.15
#10 0xb7d34fb7 in cli_read_rows () from /usr/lib/libmysqlclient.so.15
#11 0xb7d35303 in ?? () from /usr/lib/libmysqlclient.so.15
#12 0xb7d33466 in mysql_real_query () from /usr/lib/libmysqlclient.so.15
#13 0x0812b88e in DBcore::RunQuery (this=0xb7e6aff4,
    query=0xea9e2c4 "SELECT COUNT(DISTINCT account_id) FROM characters",
    querylen=49, errbuf=0x1 <Address 0x1 out of bounds>, result=0xbffff278,
    affected_rows=0x0, last_insert_id=0x0, errnum=0xbffff288, retry=true)
    at ../common/dbcore.cpp:173
#14 0x081354a7 in Query::RunQuery2 (this=0xbffff068, in_query=...,
    type=Q_SELECT) at ../common/database.cpp:218
#15 0x081355cc in Query::RunQuery2 (this=0xbffff068, type=Q_SELECT,
    format=0x825b06c "SELECT COUNT(DISTINCT account_id) FROM characters")
    at ../common/database.cpp:195
---Type <return> to continue, or q <return> to quit---
#16 0x081451db in WorldDatabase::WriteServerStatisticsNeededQueries (
    this=0x82a6d80) at WorldDatabase.cpp:4299
#17 0x081ecbfc in World::WriteServerStatistics (this=0x82a5800)
    at World.cpp:1389
#18 0x081f9fd6 in World::Process (this=0x82a5800) at World.cpp:242
#19 0x0812236a in main (argc=1, argv=0xbffff844) at net.cpp:245
(gdb)
Hope this helps.

Re: Linux Crash dump

Posted: Thu Dec 24, 2009 1:01 am
by Scatman
That was using /camp. I accidentally logged into the dev server when I was testing guilds so I /camped. Crashed (client) before I got back to the login screen.

Re: Linux Crash dump

Posted: Fri Dec 25, 2009 9:52 am
by John Adams
Yeah my client crashes every time I camp. LE thinks maybe a struct change for /camp? He'll look into it eventually.

Re: Linux Crash dump

Posted: Fri Jan 01, 2010 10:08 pm
by LethalEncounter
Hey John, what version are you using? I just tried to reproduce the crash with /camp but I cannot. Although I guess it could have been fixed with the groups.

Re: Linux Crash dump

Posted: Sat Jan 02, 2010 2:45 pm
by John Adams
Think I was using 6118L when this was reported.

Re: Linux Crash dump

Posted: Mon Jan 04, 2010 8:06 pm
by Zcoretri
LethalEncounter wrote:Hey John, what version are you using? I just tried to reproduce the crash with /camp but I cannot. Although I guess it could have been fixed with the groups.
I experience a client crash in version 5916L...I think I have seen it happen when camping to desktop, and camping to character select.
I also have noticed that when camping out, when using /camp or /camp desktop that the very first login of the day it will count down from 20 seconds...all other subsequent /camps start from 1 and you're out.

Re: Linux Crash dump

Posted: Tue Jan 05, 2010 5:06 pm
by LethalEncounter
The count of 1 should be for admins only. There might be another issue if you are an admin and it still counts to 20. Could either of you verify that it still crashes with the latest code? I couldn't reproduce it after I fixed the group stuff.

Re: Linux Crash dump

Posted: Tue Jan 05, 2010 7:50 pm
by Zcoretri
LethalEncounter wrote:The count of 1 should be for admins only. There might be another issue if you are an admin and it still counts to 20. Could either of you verify that it still crashes with the latest code? I couldn't reproduce it after I fixed the group stuff.
LOL...never new that a count of 1 is for admin only. :mrgreen:

I will do some client crash verifying with the latest code.

Re: Linux Crash dump

Posted: Wed Jan 06, 2010 12:23 am
by John Adams
Zcoretri wrote:LOL...never new that a count of 1 is for admin only. :mrgreen:
After careful review of your application to the Content Team and proven knowledge of the product, you are fired.

Re: Linux Crash dump

Posted: Wed Jan 06, 2010 9:16 am
by Arremis
LOL Nuked for 68 bazillion-gazillion damage! :lol: