SA-MP Forums Archive
Segfault - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Segfault (/showthread.php?tid=233997)



Segfault - Littl3j0hNy - 02.03.2011

Hi,
I have one problem with my Gamemode on Linux :/

My Server crashs randomly and i don't know why

I'm using the Streamer Plugin.

I have a debug log here:

Код:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7d118d0 (LWP 30306)]
0x080782c5 in ?? ()
(gdb) bt
#0  0x080782c5 in ?? ()
#1  0x080d0f3f in ?? ()
#2  0x08051c67 in ?? ()
#3  0x0847ec28 in ?? ()
#4  0xf6ffd33c in ?? ()
#5  0xffffcd98 in ?? ()
#6  0xf6ffd340 in ?? ()
#7  0xffffcd70 in ?? ()
#8  0x0814138e in ?? ()
#9  0xffffcd70 in ?? ()
#10 0xf7f7cff4 in ?? () from /usr/lib32/libstdc++.so.6
#11 0x001a6c2c in ?? ()
#12 0x00000000 in ?? ()
I hope anyone can help me.

Regards, LJ


Re: Segfault - JernejL - 03.03.2011

One of things that crashes linux server is using very long printf() / print() strings, can you check to make sure it's not that?


AW: Segfault - Littl3j0hNy - 03.03.2011

I have only one long printf with over 100 characters. All other print/printf are under 40 characters.


Re: Segfault - nemesis- - 03.03.2011

Using kick() inside OnPlayerUpdate will also do it.


Re: Segfault - rbN. - 03.03.2011

Had that too, I fixed it this way:

Reupload your files via FTP with BINARY mode..


AW: Segfault - Littl3j0hNy - 03.03.2011

Now I have short Print/Prinf but Server Crashs :/

Quote:
Originally Posted by nemesis-
Посмотреть сообщение
Using kick() inside OnPlayerUpdate will also do it.
I don't use Kick inside OnPlayerUpdate

Quote:
Originally Posted by RobinOwnz
Посмотреть сообщение
Had that too, I fixed it this way:

Reupload your files via FTP with BINARY mode..
I will test it, thank you