Ok here it is : 
first the crashlog:

CRASH: Sat Mar 28 20:19:30 EET 2009
Start Line: ./hlds_amd -debug -debuglog ab_kz_debug.log -game cstrike -timeout 
2 -pidfile ab_kz.pid +map kz_kzdk_templebhop +ip 192.168.20.41 +maxplayers 20 
-pingboost 3 +sys_ticrate 1000 +sv_region 3 -pidfile ab_kz.pid
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./hlds_amd -debug -debuglog ab_kz_debug.log -game 
cstrike -timeout 2 -pidfile a'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7ac6560 in SV_TouchLinks () from /home/services/hlds/ab_kz/engine_amd.so
#0  0xb7ac6560 in SV_TouchLinks () from /home/services/hlds/ab_kz/engine_amd.so
#1  0xb7afb73c in __DTOR_END__ () from /home/services/hlds/ab_kz/engine_amd.so
#2  0xb5ccbb84 in ?? ()
#3  0xb5d26cc4 in ?? ()
#4  0xb7f528c0 in sv_areanodes () from /home/services/hlds/ab_kz/engine_amd.so
#5  0x00000000 in ?? ()
No symbol table info available.
>From        To          Syms Read   Shared Object Library
0x4f9fba50  0x4f9fca84  Yes         /lib/libdl.so.2
0x4fa2e210  0x4fa38d54  Yes         /lib/libpthread.so.0
0x4f8cbbd0  0x4f9c4c30  Yes         /lib/libc.so.6
0x4f8987f0  0x4f8ade8f  Yes         /lib/ld-linux.so.2
0xb7a62c30  0xb7ae5614  Yes         /home/services/hlds/ab_kz/engine_amd.so
0xb7a1c2f0  0xb7a2fce4  Yes         ./libsteam_api_c_linux.so
0x4fa04410  0x4fa1f594  Yes         /lib/libm.so.6
0xb79f7a60  0xb7a05b4d  Yes         
/home/services/hlds/ab_kz/filesystem_stdio_i386.so
0xb59c2184  0xb59d56e0  Yes         
./cstrike/addons/metamod/dlls/metamod_i386.so
0xb579e074  0xb58c7408  Yes         
/home/services/hlds/ab_kz/cstrike/dlls/cs_i386.so
0xb56925e0  0xb56ec854  Yes         
/home/services/hlds/ab_kz/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xb54d2290  0xb5554114  Yes         
cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
0xb7f77be0  0xb7f7a6e4  Yes         
cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xb5462ac0  0xb548db74  Yes         
cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xb543c090  0xb5441f34  Yes         
cstrike/addons/amxmodx/modules/nvault_amxx_i386.so
0xb5431150  0xb54368f4  Yes         
cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xb53bcca0  0xb53c2e24  Yes         
cstrike/addons/amxmodx/modules/csx_amxx_i386.so
0xb53980e0  0xb53a20b4  Yes         
cstrike/addons/amxmodx/modules/engine_amxx_i386.so
0x41a62660  0x41a69ee4  Yes         /lib/libgcc_s.so.1
0xb42be8c0  0xb42c5264  Yes         /lib/libnss_files.so.2
0xb3e2fea0  0xb41527e4  Yes         ./steamclient_linux.so
0xb3d2c540  0xb3d4dd94  Yes         ./libtier0_s_linux.so
0xb3cc0080  0xb3ce28b4  Yes         ./libvstdlib_s_linux.so
0xb3a844b0  0xb3b65a04  Yes         
/home/services/hlds/ab_kz/libsteamvalidateuseridtickets_i486.so
0xb53b5dd0  0xb53b6df4  Yes         
cstrike/addons/amxmodx/modules/sockets_amxx_i386.so
Stack level 0, frame at 0xbfe7ea84:
 eip = 0xb7ac6560 in SV_TouchLinks; saved eip 0xb7afb73c
 called by frame at 0xbfe7ea88
 Arglist at 0xbfe7ea7c, args: 
 Locals at 0xbfe7ea7c, Previous frame's sp is 0xbfe7ea84
 Saved registers:
  eip at 0xbfe7ea80
End of crash report
----------------------------------------------

and the coredump tgz: http://79.134.32.23/cs/core.zip (28MB)
PS: i couldnt help but notice the rcon password and some other sensitive data 
were saved there so i had to mask them with X's... i hope i didnt screw 
anything by doing that.


----- Original Message ----

From: Wobak <[email protected]>
To: Half-Life dedicated Linux server mailing list 
<[email protected]>
Sent: Friday, March 27, 2009 7:13:38 PM
Subject: Re: [hlds_linux] random segfault issue

FYI  I created a patch file to change the ulimit and debug log settings :

# cat patchfile
142c142,143
<                       ulimit -c 2000
---
>                       ulimit -c 100000
>                       rm core.*
209,210c210,211
<                       if test -f core ; then
<                               CORE="core"
---
>                       if test -f core.* ; then
>                               CORE="core.*"

And then

# patch srcds_run patchfile

You should be able to get a real debug log with this...

Have fun

Wobak

On Fri, Mar 27, 2009 at 5:48 PM, <[email protected]> wrote:

> djh,
>
> Could you type "ulimit -c unlimited" before starting the server and then
> try it again. This sets the max size for core dumps to unlimited instead
> of 2MB, so it will contain the contents of all of the memory used by
> hlds.
>
> Once you get that, post the debug.log here and a link to the core dump.
>
>
> --
> Andy
>
>
> On Thu, 26 Mar 2009 19:00:59 -0700, "Tony Paloma"
> <[email protected]> said:
> > If you want to put all the arguments to the program being debugged on the
> > command line like that you need to use the gdb switch --args.
> >
> > Try:
> > gdb --args /home/services/hlds/ab_test/hlds_amd -game cstrike +map
> > de_dust2 +ip 192.168.20.37 +port 27035
> >
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of djh
> > Sent: Thursday, March 26, 2009 4:36 PM
> > To: Half-Life dedicated Linux server mailing list
> > Subject: Re: [hlds_linux] random segfault issue
> >
> >
> > Hello
> > Selinux is disabled
> > i tried running gdb as you said but i cant get it to work.
> > I get:
> > gdb /home/services/hlds/ab_test/hlds_amd -game cstrike +map de_dust2 +ip
> > 192.168.20.37 +port 27035
> > gdb: unrecognized option `-game'
> > Use `gdb --help' for a complete list of options.
> >
> > i noticed hlds_run has a -debug option and by default it should use gdb
> > so i
> > added that to the start command and waited
> > it produced the following log and a coredump:
> > cat debug.log
> > ----------------------------------------------
> > CRASH: Fri Mar 27 01:16:46 EET 2009
> > Start Line: ./hlds_amd -debug -game cstrike -timeout 2 -pidfile ab_kz.pid
> > +map kz_kzdk_templebhop +ip 192.168.20.41 +maxplayers 20 -pingboost 3
> > +sys_ticrate 1000 +sv_region 3 +sv_enableoldqueries 1 -pidfile ab_kz.pid
> > Using host libthread_db library "/lib/libthread_db.so.1".
> > Core was generated by `./hlds_amd -debug -game cstrike -timeout 2
> > -pidfile
> > ab_kz.pid +map kz_kzdk_temp'.
> > Program terminated with signal 11, Segmentation fault.
> > #0  0x007b7560 in ?? ()
> > #0  0x007b7560 in ?? ()
> > No symbol table info available.
> > No shared libraries loaded at this time.
> > Stack level 0, frame at 0xbff5db64:
> >  eip = 0x7b7560; saved eip End of crash report
> > ----------------------------------------------
> >
> > the coredump is at http://79.134.32.23/cs/core.26960.tgz
> >
> > thank you for your reply :)
> >
> >
> >
> > ----- Original Message ----
> > From: "[email protected]"
> > <[email protected]>
> > To: Half-Life dedicated Linux server mailing list
> > <[email protected]>
> > Sent: Thursday, March 26, 2009 9:47:14 PM
> > Subject: Re: [hlds_linux] random segfault issue
> >
> > Error 4 is "Interrupted system call". (See
> > /usr/include/asm-generic/errno-base.h for the messages that match the
> > error numbers.)
> >
> > Do you have SELinux enabled by chance?
> >
> >
> > As for debugging, try running it with gdb and post the output back to
> > the list:
> >
> > # gdb /path/to/hlds_amd +map blah
> > (gdb) set follow-fork-mode child
> > (gdb) run
> >       (wait for it to crash)
> > (gdb) bt
> >
> >
> > --
> > Andy
> >
> >
> > On Wed, 25 Mar 2009 14:04:30 -0700 (PDT), "djh" <[email protected]>
> > said:
> > >
> > > Hi.
> > > I have been experiencing random segfaults on my server,
> > > i run 4 hlds (cs) and 3 srcds (css)
> > >
> > > machine specs are as follows:
> > >
> > > Sun Fire X4200 M2 server
> > > OS: CentOS 5.2 32bit
> > > 2x Dual-Core AMD Opteron(tm) Processor 2216 @ 2393.638 Mhz
> > > MemTotal:      4151164 kB
> > > Linux cs2pps 2.6.25.10-c-p-v0.6 #13 SMP Tue Mar 17 17:56:53 EET 2009
> i686
> > > athlon i386 GNU/Linux
> > >
> > >
> > >
> > > servers fail apparently at random (i checked logs, couldnt find
> anything)
> > > the only thing i have is the message in /var/log/messages
> > >
> > > Mar 25 18:20:30 cs2pps kernel: hlds_amd[29289]: segfault at 4 ip
> b7abf560
> > > sp bfd7a550 error 4 in engine_amd.so[b7a35000+ba000]
> > >
> > > and similar to that
> > > please at least tell me how to debug it :) - for example what does
> > > error 4 stand for ?
> > > thank you :)
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux



      

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to