PDA

View Full Version : Running SA-MP on Linux errors (lib/i386-linux-gnu/libc.so.6)


James Bob
14/04/2016, 05:41 AM
Haven't ran many servers on a linux OS first time running a SA-MP Server and I'm having a issue with linux, any suggestions to fix?

[05:40:25] [debug] Server crashed while executing loyal.amx
[05:40:25] [debug] AMX backtrace:
[05:40:25] [debug] #0 native fwrite () from samp03svr
[05:40:25] [debug] #1 00568da4 in ?? (0) from loyal.amx
[05:40:25] [debug] #2 000587d4 in public Audio_OnPlayerDisconnect (0, 1) from loyal.amx
[05:40:25] [debug] #3 native CallLocalFunction () from samp03svr
[05:40:25] [debug] #4 00011638 in public SSCANF_OnPlayerDisconnect (0, 1) from loyal.amx
[05:40:25] [debug] #5 0000b6c8 in public Itter_OnPlayerDisconnect (0, 1) from loyal.amx
[05:40:25] [debug] #6 native CallLocalFunction () from samp03svr
[05:40:25] [debug] #7 000012e4 in public OnPlayerDisconnect (0, 1) from loyal.amx
[05:40:25] [debug] Native backtrace:
[05:40:25] [debug] #0 f73bbe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[05:40:25] [debug] #1 f73b4bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[05:40:25] [debug] #2 f73b5dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[05:40:25] [debug] #3 f73b6226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[05:40:25] [debug] #4 f73bbadc in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #5 f77aab80 in ?? ()
[05:40:25] [debug] #6 f77aaba0 in ?? ()
[05:40:25] [debug] #7 f740c067 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[05:40:25] [debug] #8 f740d6a9 in abort () from /lib/i386-linux-gnu/libc.so.6
[05:40:25] [debug] #9 f7405107 in ?? () from /lib/i386-linux-gnu/libc.so.6
[05:40:25] [debug] #10 f740518b in ?? () from /lib/i386-linux-gnu/libc.so.6
[05:40:25] [debug] #11 0809b99c in ?? () from ./samp03svr
[05:40:25] [debug] #12 0809bdff in ?? () from ./samp03svr
[05:40:25] [debug] #13 080950e4 in ?? () from ./samp03svr
[05:40:25] [debug] #14 f73b794b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[05:40:25] [debug] #15 f73ba8f8 in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #16 f73be916 in amx_Exec () from plugins/crashdetect.so
[05:40:25] [debug] #17 f73b6be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[05:40:25] [debug] #18 f73ba659 in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #19 f729d88a in ?? () from plugins/streamer.so
[05:40:25] [debug] #20 080dfd62 in ?? () from ./samp03svr
[05:40:25] [debug] #21 080950e4 in ?? () from ./samp03svr
[05:40:25] [debug] #22 f73b794b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[05:40:25] [debug] #23 f73ba8f8 in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #24 f73be916 in amx_Exec () from plugins/crashdetect.so
[05:40:25] [debug] #25 f73b6be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[05:40:25] [debug] #26 f73ba659 in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #27 f729d88a in ?? () from plugins/streamer.so
[05:40:25] [debug] #28 080dfd62 in ?? () from ./samp03svr
[05:40:25] [debug] #29 080950e4 in ?? () from ./samp03svr
[05:40:25] [debug] #30 f73b794b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[05:40:25] [debug] #31 f73ba8f8 in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #32 f73be916 in amx_Exec () from plugins/crashdetect.so
[05:40:25] [debug] #33 f73b6be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[05:40:25] [debug] #34 f73ba659 in ?? () from plugins/crashdetect.so
[05:40:25] [debug] #35 f729d88a in ?? () from plugins/streamer.so
[05:40:25] [debug] #36 080a523a in ?? () from ./samp03svr
[05:40:25] [debug] #37 080d0b31 in ?? () from ./samp03svr
[05:40:25] [debug] #38 080ad6b7 in ?? () from ./samp03svr
[05:40:25] [debug] #39 080aeead in ?? () from ./samp03svr
[05:40:25] [debug] #40 080aef02 in ?? () from ./samp03svr
[05:40:25] [debug] #41 080aa13a in ?? () from ./samp03svr
[05:40:25] [debug] #42 f73f873e in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6

OnPlayerDisconnect:
http://pastebin.com/NJ6wk7gn

Vince
14/04/2016, 06:30 AM
"native fwrite". That should give you a clear idea where to look. Don't attempt to access a file before you have verified that you have a valid handle.

James Bob
14/04/2016, 07:12 AM
"native fwrite". That should give you a clear idea where to look. Don't attempt to access a file before you have verified that you have a valid handle.

I've fixed the issue it was due to certain files not having access to writing/executing.

James Bob
14/04/2016, 07:52 AM
I've jinxed myself, I was able to get past my tutorial but it's crashed.

I don't really deal with linux else I wouldn't really be asking for help, it's working fine completely on our windows server but we're moving to linux.

[07:51:36] [join] karma_test has joined the server (0:124.150.13.73)
[07:51:43] karma_test has logged in.
[07:51:43] Loading karma_test's vehicles.
[07:51:43] Loading all vehicles mods.
[07:51:43] [debug] Run time error 4: "Array index out of bounds"
[07:51:43] [debug] Accessing element at index 999 past array upper bound 500
[07:51:43] [debug] AMX backtrace:
[07:51:43] [debug] #0 00085428 in public RL_OnPlayerStateChange (0, 1, 8) from loyal.amx
[07:51:43] [debug] #1 native CallLocalFunction () from samp03svr
[07:51:43] [debug] #2 00013474 in public OnPlayerStateChange (0, 1, 8) from loyal.amx
[07:51:47] [zcmd] [karma test]: /ah
[07:51:51] [zcmd] [karma test]: /setname 0 karma
[07:51:51] [debug] Server crashed while executing loyal.amx
[07:51:51] [debug] AMX backtrace:
[07:51:51] [debug] #0 native fwrite () from samp03svr
[07:51:51] [debug] #1 000685b8 in ?? (58587448, 76061208) from loyal.amx
[07:51:51] [debug] #2 0037baac in public cmd_setname (0, 60062828) from loyal.amx
[07:51:51] [debug] #3 native CallLocalFunction () from samp03svr
[07:51:51] [debug] #4 0000b118 in public OnPlayerCommandText (0, 60062760) from loyal.amx
[07:51:51] [debug] Native backtrace:
[07:51:51] [debug] #0 f73a3e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[07:51:51] [debug] #1 f739cbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[07:51:51] [debug] #2 f739ddbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[07:51:51] [debug] #3 f739e226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[07:51:51] [debug] #4 f73a3adc in ?? () from plugins/crashdetect.so
[07:51:51] [debug] #5 f7793b80 in ?? ()
[07:51:51] [debug] #6 f7793ba0 in ?? ()
[07:51:51] [debug] #7 f73f4067 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[07:51:51] [debug] #8 f73f56a9 in abort () from /lib/i386-linux-gnu/libc.so.6
[07:51:51] [debug] #9 f73ed107 in ?? () from /lib/i386-linux-gnu/libc.so.6
[07:51:51] [debug] #10 f73ed18b in ?? () from /lib/i386-linux-gnu/libc.so.6
[07:51:51] [debug] #11 0809b99c in ?? () from ./samp03svr
[07:51:51] [debug] #12 0809bdff in ?? () from ./samp03svr
[07:51:51] [debug] #13 080950e4 in ?? () from ./samp03svr
[07:51:51] [debug] #14 f739f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:51:51] [debug] #15 f73a28f8 in ?? () from plugins/crashdetect.so
[07:51:51] [debug] #16 f73a6916 in amx_Exec () from plugins/crashdetect.so
[07:51:51] [debug] #17 f739ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:51:51] [debug] #18 f73a2659 in ?? () from plugins/crashdetect.so
[07:51:51] [debug] #19 f728588a in ?? () from plugins/streamer.so
[07:51:51] [debug] #20 080dfd62 in ?? () from ./samp03svr
[07:51:51] [debug] #21 080950e4 in ?? () from ./samp03svr
[07:51:51] [debug] #22 f739f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[07:51:51] [debug] #23 f73a28f8 in ?? () from plugins/crashdetect.so
[07:51:51] [debug] #24 f73a6916 in amx_Exec () from plugins/crashdetect.so
[07:51:51] [debug] #25 f739ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[07:51:51] [debug] #26 f73a2659 in ?? () from plugins/crashdetect.so
[07:51:51] [debug] #27 f728588a in ?? () from plugins/streamer.so
[07:51:51] [debug] #28 080a5632 in ?? () from ./samp03svr
[07:51:51] [debug] #29 080b1751 in ?? () from ./samp03svr
[07:51:51] [debug] #30 08071d38 in ?? () from ./samp03svr
[07:51:51] [debug] #31 08071e32 in ?? () from ./samp03svr
[07:51:51] [debug] #32 0807bc50 in ?? () from ./samp03svr
[07:51:51] [debug] #33 080aed3d in ?? () from ./samp03svr
[07:51:51] [debug] #34 080aef02 in ?? () from ./samp03svr
[07:51:51] [debug] #35 080aa13a in ?? () from ./samp03svr
[07:51:51] [debug] #36 f73e073e in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6