Segmentation Fault Error
#1

Well, I don't know exactly, is it scripting fault or server's.

If I login with my account on samp then My server crashes with the following error.

Quote:

Segmentation fault

Anyway I made a core dump and i got this line, why the samp03svr was terminated.

Код:
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./samp03svr'.
Program terminated with signal 11, Segmentation fault.
#0  0x09624700 in ?? ()
(gdb) where
#0  0x09624700 in ?? ()
#1  0x0000002a in ?? ()
#2  0xff90cb00 in ?? ()
#3  0x080acf58 in ?? ()
#4  0x080b7143 in ?? ()
#5  0x080717a8 in ?? ()
#6  0x080718a2 in ?? ()
#7  0x0807b670 in ?? ()
#8  0x080b559d in ?? ()
#9  0x080b5732 in ?? ()
#10 0x080b1043 in ?? ()
#11 0xf748d4d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
#12 0x0804b521 in ?? ()
Is there something wrong with my server or my scripting?

I'm using RC-2
Reply
#2

What's being used in your OnPlayerRequestClass? It seems to crash in there.
Reply
#3

OnPlayerRequestClass - In my gamemode that doesn't exist at all.
Reply
#4

Quote:
Originally Posted by Ld Est Ld
Посмотреть сообщение
OnPlayerRequestClass - In my gamemode that doesn't exist at all.
Well it should. All players request a class. You can deny them access to all classes and set it manually with SetSpawnInfo. You should still at least 'return 0;' in OnPlayerRequestClass.
Reply
#5

Well, I have to say. Thank You So much!

But, I didn't have it for earlier versions, and the server worked great. Why is this now required? Or all SAMP default callbacks must return something?
Reply
#6

Oh dayum, I can now play a little longer, but still server crashes with this same error
Reply
#7

Are you using any plugins?
Reply
#8

Yup.
geoip, mysql, irc, sscanf, streamer, wp
Reply
#9

I don't think any of those plugins would cause that problem.

I do think though, looking at that report, that your gamemode script did have an OnPlayerRequestClass public somewhere. I don't see how that crash could have occured otherwise.
Reply
#10

Oh. After long time, I noticed, I can play in server. I can even type in general chat/OOC/Admin Chat etc. But, if I want spawn a vehicle or I want to teleport myself somewhere, then the server crashes with the same error.

Example:
/a Text Here - Works
/o Text Here - Works

/veh 451 - Crash - Doesn't spawns vehicle
/gotols - Crash - It teleports you, but after 5 sec, server crashes.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)