Server won't start and "Segmentation fault" error
#1

Hey there. I'd like to start a server on Linux, but when i start, the consol says: "Segmentation fault"
So i downloaded the crashdetect plugin, to check what is the problem, i got these errors:


Код:
[08:47:26] [debug] Server crashed while executing MyServer.amx
[08:47:26] [debug] AMX backtrace:
[08:47:26] [debug] #0 native dir_list () [b73e2b20] from FileManager.so
[08:47:26] [debug] #1 000e20f4 in ?? () from MyServer.amx
[08:47:26] [debug] #2 0000ca80 in public Itter_OnGameModeInit () from MyServer.amx
[08:47:26] [debug] #3 native CallLocalFunction () [080d2960] from samp03svr
[08:47:26] [debug] #4 0000982c in public ScriptInit_OnGameModeInit () from MyServer.amx
[08:47:26] [debug] #5 0000644c in public SSCANF_OnGameModeInit () from MyServer.amx
[08:47:26] [debug] #6 00000730 in public OnGameModeInit () from MyServer.amx
[08:47:26] [debug] Native backtrace:
[08:47:26] [debug] #0 b73d3a5b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[08:47:26] [debug] #1 b73cc852 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[08:47:26] [debug] #2 b73cd35c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[08:47:26] [debug] #3 b73cd86e in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[08:47:26] [debug] #4 b73d376d in ?? () from plugins/crashdetect.so
[08:47:26] [debug] #5 b77fa600 in ?? ()
[08:47:26] [debug] #6 b756359e in readdir () from /lib/i386-linux-gnu/libc.so.6
[08:47:26] [debug] #7 b73e2b42 in ?? () from plugins/FileManager.so
[08:47:26] [debug] #8 08093d14 in ?? () from ./samp03svr
[08:47:26] [debug] #9 b73ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[08:47:26] [debug] #10 b73cf348 in ?? () from plugins/crashdetect.so
[08:47:26] [debug] #11 b73d5db5 in amx_Exec () from plugins/crashdetect.so
[08:47:26] [debug] #12 b73cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[08:47:26] [debug] #13 b73cf149 in ?? () from plugins/crashdetect.so
[08:47:26] [debug] #14 080d2c02 in ?? () from ./samp03svr
[08:47:26] [debug] #15 08093d14 in ?? () from ./samp03svr
[08:47:26] [debug] #16 b73ca10c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[08:47:26] [debug] #17 b73cf348 in ?? () from plugins/crashdetect.so
[08:47:26] [debug] #18 b73d5db5 in amx_Exec () from plugins/crashdetect.so
[08:47:26] [debug] #19 b73cc6ab in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[08:47:26] [debug] #20 b73cf149 in ?? () from plugins/crashdetect.so
[08:47:26] [debug] #21 080acccb in ?? () from ./samp03svr
[08:47:26] [debug] #22 080b2bbd in ?? () from ./samp03svr
[08:47:26] [debug] #23 080b1487 in ?? () from ./samp03svr
[08:47:26] [debug] #24 b74c94d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
Note: The server works perfectly on windows.
Reply
#2

You have most likely a corrupt server executable or a plugin.
Reply
#3

Plugins are good. I tried with the deafult "grandlarc" gamemode, and it worked.
Reply
#4

Well, the problem is that dir_list function from FileManager plugin crashed your server. I don't know why because I've never used that plugin before but take a look at its thread, someone may report any crashes related to that function in the past.
Reply
#5

I don't think that the problem is the dir_list function. i created a test script and i loaded that with the grandlarc gamemode. Everythink works with the test script. That's weird.
Reply
#6

Try changing the plugin load sequence from your server config
Reply
#7

You are most likely uploading the server executable and the plugin with ASCII mode (FTP). You will need to change the upload/transfer mode to binary, this would solve that segmentation fault error.
Reply
#8

I already changed the transfer mode to binary, and reuploaded my gamemode. Didn't worked.
With other gamemodes, the plugins loaded succesfully, so i think the problem is with the gamemode, but that's weird cause it works on windows.
Reply
#9

Quote:
Originally Posted by kadaradam
Посмотреть сообщение
I already changed the transfer mode to binary, and reuploaded my gamemode. Didn't worked.
With other gamemodes, the plugins loaded succesfully, so i think the problem is with the gamemode, but that's weird cause it works on windows.
No gamemode doesn't effects it. Did you re-uploaded the executable and plugins?
Reply
#10

Yes, i got the same error.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)