Help with Seg Faults.....
#1

I have been getting some server crashes lately and have been wondering wtf is going on, I would really like to get it to stop altogether if possible but I have no idea how to check/read the Seg Fault codes. What can I do to help trace these crashes down?


[EDIT] Yes I know how to find the seg fault codes its understanding the messages I have a problem with
Reply
#2

I'm not really... experienced with this field, though this thread may be of use to you.
Reply
#3

Quote:
Originally Posted by Calgon
Посмотреть сообщение
I'm not really... experienced with this field, though this thread may be of use to you.
Thanks I was just reading about gdb through ****** <3 but wasn't sure if samp was compiled with debugging symbols on.
Reply
#4

Quote:
Originally Posted by Zox
Посмотреть сообщение
hi cyber its 8baller mabe could be 'cause of your hosting?
Not likely, these are coming from scripting errors or errors in the samp server app.



On another note I am having a hard time getting gdb to start the samp server.....I am (I have tried as a regular user and as root) trying to run it like this 'gdb samp03svr' but it fails to start the app.
Reply
#5

Quote:
Originally Posted by Zox
Посмотреть сообщение
what errors do you get?
Umm...sort of silly to post them without properly debugging it don't you think?



Anyhow I am still having trouble getting gdb to start samp. I have tried 'gdb samp03svr' 'gdb ./samp03svr' and also 'gdb ./samp03svr &' the last one seemed like it was starting the server, spit out text the pid etc... yet I was not totally in the gdb console nor did the server appear online. I would really like to debug this so how can I get samp started through gdb? Anyone?



[EDIT] Rofl never mind I am a linux noob.... was able to get it running had to do 'gdb ./samp03svr' and then once in the gdb console type 'run' go figure....
Reply
#6

Sorry for the double post but I was able to log a crash in gdb it looks like I am getting the crash due to libc or thats at least what I gathered from the output (I could be wrong) so whats the next step?


Код:
(gdb) run
Starting program: /home/gcreate/gamecreate/GameCreate-4358/gtasa/samp03svr
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb748f6c0 (LWP 2190)]
[New Thread 0xb7149b90 (LWP 2193)]

Started server on port: 7777, with maxplayers: 201 lanmode is OFF.

[New Thread 0xb6398b90 (LWP 2194)]
[New Thread 0xb162ab90 (LWP 2195)]
[Thread 0xb162ab90 (LWP 2195) exited]
[New Thread 0xb162ab90 (LWP 2201)]
[New Thread 0xb0cffb90 (LWP 2205)]
[New Thread 0xb04feb90 (LWP 2206)]
[New Thread 0xafcfdb90 (LWP 2208)]
[New Thread 0xaf4fcb90 (LWP 2209)]
[Thread 0xaf4fcb90 (LWP 2209) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb748f6c0 (LWP 2190)]
0x0520e200 in ?? ()
(gdb) thread apply all bt

Thread 8 (Thread 0xafcfdb90 (LWP 2208)):
#0  0xb7730424 in __kernel_vsyscall ()
#1  0xb771b3c8 in recv () from /lib/i686/cmov/libpthread.so.0
#2  0xb73fb7e7 in CNetwork::receiveData () from plugins/audio.so
#3  0xb7408316 in thread_proxy () from plugins/audio.so
#4  0xb77144c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#5  0xb757184e in clone () from /lib/i686/cmov/libc.so.6

Thread 7 (Thread 0xb04feb90 (LWP 2206)):
#0  0xb7730424 in __kernel_vsyscall ()
#1  0xb771b3c8 in recv () from /lib/i686/cmov/libpthread.so.0
#2  0xb743d3c3 in CIRC::receiveData () from plugins/irc.so
#3  0xb743e02d in CIRC::initiateConnection () from plugins/irc.so
#4  0xb74550d6 in thread_proxy () from plugins/irc.so
#5  0xb77144c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb757184e in clone () from /lib/i686/cmov/libc.so.6

Thread 6 (Thread 0xb0cffb90 (LWP 2205)):
#0  0xb7730424 in __kernel_vsyscall ()
#1  0xb771b3c8 in recv () from /lib/i686/cmov/libpthread.so.0
#2  0xb743d3c3 in CIRC::receiveData () from plugins/irc.so
#3  0xb743e02d in CIRC::initiateConnection () from plugins/irc.so
#4  0xb74550d6 in thread_proxy () from plugins/irc.so
#5  0xb77144c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb757184e in clone () from /lib/i686/cmov/libc.so.6

Thread 5 (Thread 0xb162ab90 (LWP 2201)):
#0  0xb7730424 in __kernel_vsyscall ()
#1  0xb771b3c8 in recv () from /lib/i686/cmov/libpthread.so.0
#2  0xb743d3c3 in CIRC::receiveData () from plugins/irc.so
#3  0xb743e02d in CIRC::initiateConnection () from plugins/irc.so
#4  0xb74550d6 in thread_proxy () from plugins/irc.so
#5  0xb77144c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb757184e in clone () from /lib/i686/cmov/libc.so.6

Thread 3 (Thread 0xb6398b90 (LWP 2194)):
#0  0xb7730424 in __kernel_vsyscall ()
#1  0xb771b2c8 in accept () from /lib/i686/cmov/libpthread.so.0
#2  0xb73f9b73 in CNetwork::acceptClients () from plugins/audio.so
#3  0xb7408316 in thread_proxy () from plugins/audio.so
#4  0xb77144c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#5  0xb757184e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xb7149b90 (LWP 2193)):
#0  0xb7730424 in __kernel_vsyscall ()
#1  0xb752d036 in nanosleep () from /lib/i686/cmov/libc.so.6
#2  0xb756a5cc in usleep () from /lib/i686/cmov/libc.so.6
#3  0x080ae110 in ?? ()
#4  0xb77144c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#5  0xb757184e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb748f6c0 (LWP 2190)):
#0  0x0520e200 in ?? ()
#1  0x09c03e50 in ?? ()
#2  0xb66be85c in ?? ()
#3  0xbfff1220 in ?? ()
#4  0x08051625 in ?? ()
#5  0xbfff12e0 in ?? ()
#6  0x00000008 in ?? ()
#7  0xbfff1298 in ?? ()
#8  0x0805085b in ?? ()
#9  0x00000073 in ?? ()
#10 0xb639ab1a in ?? ()
#11 0xbfff0f20 in ?? ()
#12 0x00000004 in ?? ()
#13 0x00154ff4 in ?? ()
#14 0x001c9f8c in ?? ()
#15 0x001cdd38 in ?? ()
#16 0x001c9f8c in ?? ()
#17 0x00000075 in ?? ()
#18 0x001cdda3 in ?? ()
#19 0x001cdacc in ?? ()
#20 0xb64f0da0 in ?? ()
#21 0xb639bdac in ?? ()
#22 0xb6399008 in ?? ()
#23 0x00000001 in ?? ()
#24 0x09c03e50 in ?? ()
#25 0x09c03e50 in ?? ()
#26 0x00000003 in ?? ()
#27 0xbfff17c8 in ?? ()
#28 0x080ce442 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Reply
#7

Cyber, catch me in #sa-mp.scripting when you see this.
Reply
#8

Quote:
Originally Posted by nemesis-
Посмотреть сообщение
Cyber, catch me in #sa-mp.scripting when you see this.
I think he partially got the answer from Kalcor on IRC about an hour ago:

Quote:

<Kalcor> this is 0.3b R2 server?
<Cyber_Punk> yes
<Kalcor> you're using CallLocalFunction somewhere?
<Kalcor> looks to me like you're using CallLocalFunction with a bad set of parameters
<Cyber_Punk> hmmmm maybe zcmd
<Kalcor> well as far as I can tell, the last native called is CallLocalFunction
<Kalcor> it doesn't get as far as calling that function either
<Kalcor> so it's the parameters sent to CallLocalFunction that crashes it
<Cyber_Punk> first thing that came to mind is zcmd

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)