Segmentation Fault.
#1

I have a problem with starting my server on a linux dedicated server.

It's worked fine up until I came to turn it on now,

I do: ./samp03svr

Then it shows:

Код:
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.

Segmentation fault
I go to the server and it's offline;

This is the server_log.txt

It doesn't do this on homehost, for the record:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[21:01:13] filterscripts = ""  (string)
[21:01:13] 
[21:01:13] Server Plugins
[21:01:13] --------------
[21:01:13]  Loading plugin: sscanf.so
[21:01:13] 

[21:01:13]  ===============================

[21:01:13]       sscanf plugin loaded.     

[21:01:13]    © 2009 Alex "******" Cole

[21:01:13]    0.3d-R2 500 Players "dnee"

[21:01:13]  ===============================

[21:01:13]   Loaded.
[21:01:13]  Loading plugin: mysql.so
[21:01:13] 

  > MySQL plugin R6 successfully loaded.

[21:01:13]   Loaded.
[21:01:13]  Loading plugin: streamer.so
[21:01:13] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[21:01:13]   Loaded.
[21:01:13]  Loaded 3 plugins.

[21:01:13] 
[21:01:13] Filterscripts
[21:01:13] ---------------
[21:01:13]   Loaded 0 filterscripts.

[21:01:13] 30 vehicles loaded from the MySQL Database.
[21:01:13] 77 houses loaded from the MySQL Database.
[21:01:13] 2 owned vehicles loaded from the MySQL Database.
[21:01:13] 21 businesses loaded from the MySQL Database.
[21:01:13] sscanf warning: String buffer overflow.
[21:01:13] sscanf warning: String buffer overflow.
[21:01:13] sscanf warning: String buffer overflow.
[21:01:13] sscanf warning: String buffer overflow.
[21:01:13] 4 factions loaded from the MySQL Database.
It doesn't show those sscanf warnings on the startup on my homehost.


I hope somebody can help me with this, thanks!
Reply
#2

Check the kernel buffer using the dmesg command, that might reveal where it crashed. Zeex's crash detect plugin may also reveal some useful information.
Reply
#3

Код:
[21:31:30] [debug] Server crashed while executing new.amx
[21:31:30] [debug] AMX backtrace:
[21:31:30] [debug] #0  00000039 in ?? () from new.amx
[21:31:30] [debug] #1  00000039 in public Streamer_OnGameModeInit () from new.amx
[21:31:30] [debug] #2  native CallLocalFunction () [080d3870] from samp03svr
[21:31:30] [debug] #3  00009334 in ?? () from new.amx
[21:31:30] [debug] #4  00000035 in public RL_OnGameModeInit () from new.amx
[21:31:30] [debug] #5  native CallLocalFunction () [080d3870] from samp03svr
[21:31:30] [debug] #6  00008e54 in ?? () from new.amx
[21:31:30] [debug] #7  0000002e in public Itter_OnGameModeInit () from new.amx
[21:31:30] [debug] #8  native CallLocalFunction () [080d3870] from samp03svr
[21:31:30] [debug] #9  00006944 in public zcmd_OnGameModeInit () from new.amx
[21:31:30] [debug] #10 native CallLocalFunction () [080d3870] from samp03svr
[21:31:30] [debug] #11 00006204 in public SSCANF_OnGameModeInit () from new.amx
[21:31:30] [debug] #12 native CallLocalFunction () [080d3870] from samp03svr
[21:31:30] [debug] #13 000004e0 in public OnGameModeInit () from new.amx
[21:31:30] [debug] Native backtrace:
[21:31:30] [debug] #0  00b748bf in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
[21:31:30] [debug] #1  00b76e42 in crashdetect::Crash () from plugins/crashdetect.so
[21:31:30] [debug] #2  00b7c643 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #3  00146400 in ?? ()
[21:31:30] [debug] #4  00b7732c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[21:31:30] [debug] #5  00b7b1d3 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #6  080d3b12 in ?? () from ./samp03svr
[21:31:30] [debug] #7  080503e4 in ?? () from ./samp03svr
[21:31:30] [debug] #8  00b7744d in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
[21:31:30] [debug] #9  00b7b19a in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #10 00b7dcc2 in amx_Exec () from plugins/crashdetect.so
[21:31:30] [debug] #11 00b7732c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[21:31:30] [debug] #12 00b7b1d3 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #13 080d3b12 in ?? () from ./samp03svr
[21:31:30] [debug] #14 080503e4 in ?? () from ./samp03svr
[21:31:30] [debug] #15 00b7744d in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
[21:31:30] [debug] #16 00b7b19a in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #17 00b7dcc2 in amx_Exec () from plugins/crashdetect.so
[21:31:30] [debug] #18 00b7732c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[21:31:30] [debug] #19 00b7b1d3 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #20 080d3b12 in ?? () from ./samp03svr
[21:31:30] [debug] #21 080503e4 in ?? () from ./samp03svr
[21:31:30] [debug] #22 00b7744d in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
[21:31:30] [debug] #23 00b7b19a in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #24 00b7dcc2 in amx_Exec () from plugins/crashdetect.so
[21:31:30] [debug] #25 00b7732c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[21:31:30] [debug] #26 00b7b1d3 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #27 080d3b12 in ?? () from ./samp03svr
[21:31:30] [debug] #28 080503e4 in ?? () from ./samp03svr
[21:31:30] [debug] #29 00b7744d in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
[21:31:30] [debug] #30 00b7b19a in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #31 00b7dcc2 in amx_Exec () from plugins/crashdetect.so
[21:31:30] [debug] #32 00b7732c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[21:31:30] [debug] #33 00b7b1d3 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #34 080d3b12 in ?? () from ./samp03svr
[21:31:30] [debug] #35 080503e4 in ?? () from ./samp03svr
[21:31:30] [debug] #36 00b7744d in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
[21:31:30] [debug] #37 00b7b19a in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #38 00b7dcc2 in amx_Exec () from plugins/crashdetect.so
[21:31:30] [debug] #39 00b7732c in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[21:31:30] [debug] #40 00b7b1d3 in ?? () from plugins/crashdetect.so
[21:31:30] [debug] #41 0806f30b in ?? () from ./samp03svr
[21:31:30] [debug] #42 0807a9ad in ?? () from ./samp03svr
[21:31:30] [debug] #43 08077bd7 in ?? () from ./samp03svr
[21:31:30] [debug] #44 00248ce6 in __libc_start_main () from /lib/libc.so.6
[21:31:30] [debug] #45 0804b4c1 in __gxx_personality_v0 () from ./samp03svr
That's with the crashdetect plugin.

Could anyone help from here?
Thanks!
Reply
#4

it must be a chmod problem
Reply
#5

Any idea's on how to fix it?
Reply
#6

For effective use of the crash detect plugin you have to compile your GM with the debug options, then it should be able to tell you the line where its crashing. See the forum topic for details on how to do that.
Reply
#7

I've checked the thread and can't see how to get it to show the line where it crashes?

Thanks.
Reply
#8

Well whatever the case its inside OnGameModeInit, that should narrow it down enough but in case it doesn't create a file in your pawno directory called pawn.cfg and put this inside:
Код:
-O1 -d2 -r
Recompile the script and then try.
Reply
#9

I've done that, makes no difference to the output on the console.
Reply
#10

Dude i got the same problem. No one know how to solve this issue?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)