Bug 3499 - Segfault in mysql_amxx_i386.so - Servercrash on Mapchange
Segfault in mysql_amxx_i386.so - Servercrash on Mapchange
Status: RESOLVED INCOMPLETE
Product: AMX Mod X
Classification: Unclassified
Component: Addon: Counter-Strike
trunk
All Linux
: P3 normal
Assigned To: amxmodx-bugs@alliedmods.net
: needsinput
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-13 09:25 PST by striker5
Modified: 2013-06-18 03:43 PDT (History)
4 users (show)

See Also:


Attachments

Description striker5 2008-12-13 09:25:28 PST
This segfault error is crashing my server on every mapchange.
I only get this error with 1.8.1.3746 and 1.8.1.3711. No Problems with 1.76b.

The wired thing is: I only get this error on my UWC3-Server. Gungame, WC3FT and WC3x are running fine with it.

Dec 12 18:20:19 [kernel] hlds_amd[3499]: segfault at 2ec ip f5323362 sp ff9512b0 error 4 in mysql_amxx_i386.so[f52da000+d1000] (1.8.1.3746)
Dec 12 18:36:17 [kernel] hlds_amd[3746]: segfault at 304 ip f531f9ce sp fff4b5a0 error 4 in mysql_amxx_i386.so[f52d7000+ce000] (1.8.1.3711)
Comment 1 David Anderson [:dvander] 2008-12-16 19:19:35 PST
Please attach gdb to hlds after starting it. 

ps aux | grep hlds_amd

Find the process id (pid), then do:

> cd <path_to_hlds>
> gdb hlds_amd <pid>

Then in gdb, type:

> continue

When the server crashes, type

> bt

And paste the output here.
Comment 2 striker5 2008-12-17 02:46:23 PST
(In reply to comment #1)

I tried it 3 times and got this output. Message me if you need another output.

(gdb) continue
Continuing.
[Thread 0xf469ab90 (LWP 30983) exited]
[New Thread 0xf469ab90 (LWP 4182)]
bt
[Thread 0xf469ab90 (LWP 4182) exited]
[New Thread 0xf469ab90 (LWP 4183)]
bt
^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0xf7e686c0 (LWP 30982)]
0xf559f7d2 in ?? () from /home/gameserver/fun-arena_4/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
(gdb) bt
#0  0xf559f7d2 in ?? () from /home/gameserver/fun-arena_4/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
#1  0x08ff8dc0 in ?? ()
#2  0xff8d6b90 in ?? ()
#3  0x09229944 in ?? ()
#4  0xf55b6280 in amx_exec_asm () from /home/gameserver/fun-arena_4/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
#5  0x0919fe88 in ?? ()
#6  0x0919eb3c in ?? ()
#7  0x09094a30 in ?? ()
#8  0xff8d6b94 in ?? ()
#9  0x091a4c88 in ?? ()
#10 0x00000e18 in ?? ()
#11 0x00004e00 in ?? ()
#12 0x09094a30 in ?? ()
#13 0x00004e00 in ?? ()
#14 0x00000e18 in ?? ()
#15 0x00004e14 in ?? ()
#16 0xff8d6d78 in ?? ()
#17 0x09094a30 in ?? ()
#18 0x0919d504 in ?? ()
#19 0x0919fe88 in ?? ()
#20 0x00000000 in ?? ()
(gdb) continue
Continuing.
[Thread 0xf469ab90 (LWP 4183) exited]
[New Thread 0xf469ab90 (LWP 4196)]
[Thread 0xf469ab90 (LWP 4196) exited]
[New Thread 0xf469ab90 (LWP 4197)]
Program received signal SIGINT, Interrupt.
0xf7fbe425 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fbe425 in __kernel_vsyscall ()
#1  0xf7f267c1 in select () from /lib32/libc.so.6
#2  0x0804a8fd in Sys_Sleep_Select ()
#3  0x00000001 in ?? ()
#4  0x00000000 in ?? ()
(gdb) continue
Continuing.
[Thread 0xf469ab90 (LWP 4197) exited]
[New Thread 0xf469ab90 (LWP 4210)]
Program received signal SIGINT, Interrupt.
0xf7fbe425 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fbe425 in __kernel_vsyscall ()
#1  0xf7fa646b in read () from /lib32/libpthread.so.0
#2  0xf53ca6a5 in vio_read () from cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
#3  0xf53ca70c in vio_read_buff () from cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
#4  0xf53cbfba in ?? () from cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
#5  0x090eb0a8 in ?? ()
#6  0x09187fa0 in ?? ()
#7  0x00000004 in ?? ()
#8  0x09187fa0 in ?? ()
#9  0x090eace8 in ?? ()
#10 0x0001a018 in ?? ()
#11 0xffffffff in ?? ()
#12 0x00000000 in ?? ()
(gdb)
Comment 3 David Anderson [:dvander] 2008-12-17 10:56:45 PST
That's an exciting backtrace.  I think I need to give you debug binaries so we can get more information.  I will get you these ASAP.
Comment 4 David Anderson [:dvander] 2008-12-21 12:59:43 PST
Please use these two binaries.  amxmodx_mm_i386.so goes into "dlls", mysql_amxx_i386.so goes into "modules".

http://users.alliedmods.net/~dvander/amxmodx_mm_i386.so

http://users.alliedmods.net/~dvander/mysql_amxx_i386.so
Comment 5 striker5 2008-12-30 06:47:13 PST
Are there any debug logs when I use your binaries ?

Now I get this output, but I will give it another try next year.

(gdb) bt
#0  0xf7f12425 in __kernel_vsyscall ()
#1  0xf7e7a7c1 in select () from /lib32/libc.so.6
#2  0x0804a8fd in Sys_Sleep_Select ()
#3  0x00000001 in ?? ()
#4  0x00000000 in ?? ()
Comment 6 David Anderson [:dvander] 2009-01-06 19:42:08 PST
There aren't any debug logs.  Try this command as well:

> info thread all
Comment 7 waza123 2010-03-13 09:37:39 PST
Same crash for me , latest AMXX but i have several amxx scripts which uses mysql. Any fix ?

When map changes after users votes:

changelevel de_dust

server crashes randomly.
Comment 8 waza123 2010-03-13 14:19:12 PST
i think this crash because this:

https://forums.alliedmods.net/showthread.php?t=121255

Note You need to log in before you can comment on or make changes to this bug.