Server Crashes for no reason[LOGS INCLUDED]
#1

OK when somebody joins server just crashes , this is what came from crashdetect plugin... I have no idea what's causing this
Код:
[16:29:40] [connection] 123 requests connection cookie.
[16:29:41] Incoming connection: 123 id: 0
[16:29:41] [join] Wizzy has joined the server (0:123)
[16:29:41] [debug] Server crashed while executing tf2.amx
[16:29:41] [debug] AMX backtrace:
[16:29:41] [debug] #0 native fwrite () from samp03svr
[16:29:41] [debug] #1 0006c3e8 in ?? (85820) from tf2.amx
[16:29:41] [debug] #2 000b7c00 in public SSCANF_OnPlayerConnect (0) from tf2.amx
[16:29:41] [debug] #3 native CallLocalFunction () from samp03svr
[16:29:41] [debug] #4 00000ab0 in public OnPlayerConnect (0) from tf2.amx
[16:29:41] [debug] Native backtrace:
[16:29:41] [debug] #0 b6631e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:29:41] [debug] #1 b662abcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:29:41] [debug] #2 b662bdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:29:41] [debug] #3 b662c226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:29:41] [debug] #4 b6631adc in ?? () from plugins/crashdetect.so
[16:29:41] [debug] #5 b77d2600 in ?? ()
[16:29:41] [debug] #6 b77d2420 in ?? ()
[16:29:41] [debug] #7 b7509871 in gsignal () from /lib/libc.so.6
[16:29:41] [debug] #8 b750b14a in abort () from /lib/libc.so.6
[16:29:41] [debug] #9 b7502b8b in ?? () from /lib/libc.so.6
[16:29:41] [debug] #10 b7502c46 in ?? () from /lib/libc.so.6
[16:29:41] [debug] #11 0809b96c in ?? () from ./samp03svr
[16:29:41] [debug] #12 0809bdcf in ?? () from ./samp03svr
[16:29:41] [debug] #13 080950b4 in ?? () from ./samp03svr
[16:29:41] [debug] #14 b662d94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:29:41] [debug] #15 b66308f8 in ?? () from plugins/crashdetect.so
[16:29:41] [debug] #16 b6634916 in amx_Exec () from plugins/crashdetect.so
[16:29:41] [debug] #17 b662cbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:29:41] [debug] #18 b6630659 in ?? () from plugins/crashdetect.so
[16:29:41] [debug] #19 b626a27c in ?? () from plugins/streamer.so
[16:29:41] [debug] #20 080df762 in ?? () from ./samp03svr
[16:29:41] [debug] #21 080950b4 in ?? () from ./samp03svr
[16:29:41] [debug] #22 b662d94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:29:41] [debug] #23 b66308f8 in ?? () from plugins/crashdetect.so
[16:29:41] [debug] #24 b6634916 in amx_Exec () from plugins/crashdetect.so
[16:29:41] [debug] #25 b662cbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:29:41] [debug] #26 b6630659 in ?? () from plugins/crashdetect.so
[16:29:41] [debug] #27 b626a27c in ?? () from plugins/streamer.so
[16:29:41] [debug] #28 080a5019 in ?? () from ./samp03svr
[16:29:41] [debug] #29 080d056f in ?? () from ./samp03svr
[16:29:41] [debug] #30 080b50b2 in ?? () from ./samp03svr
[16:29:41] [debug] #31 08071d38 in ?? () from ./samp03svr
[16:29:41] [debug] #32 08071e32 in ?? () from ./samp03svr
[16:29:41] [debug] #33 0807bc20 in ?? () from ./samp03svr
[16:29:41] [debug] #34 080ae9fd in ?? () from ./samp03svr
[16:29:41] [debug] #35 080aebc2 in ?? () from ./samp03svr
[16:29:41] [debug] #36 080a9e9a in ?? () from ./samp03svr
[16:29:41] [debug] #37 b74f5d36 in __libc_start_main () from /lib/libc.so.6
[16:29:41] [debug] #38 0804b4e1 in ?? () from ./samp03svr
Reply
#2

Код:
[16:29:41] [debug] Server crashed while executing tf2.amx
There's something wrong with the amx file you have.
Reply
#3

Quote:
Originally Posted by SaintMikey
Посмотреть сообщение
Код:
[16:29:41] [debug] Server crashed while executing tf2.amx
There's something wrong with the amx file you have.
Yes I already saw that but what could be wrong? I mean the other debug does they say anything ?
Reply
#4

[16:29:41] [debug] #0 native fwrite () from samp03svr

In OnPlayerConnect search fwrite

+ read warning

https://sampwiki.blast.hk/wiki/Fwrite
Reply
#5

Quote:
Originally Posted by Jefff
Посмотреть сообщение
[16:29:41] [debug] #0 native fwrite () from samp03svr

In OnPlayerConnect search fwrite

+ read warning

https://sampwiki.blast.hk/wiki/Fwrite
oh thanks this is what I've come up with , after searching for "fwrite"
http://pastebin.com/qbFdecNE
The first stock is kinda cut because I didn't copied the whole code
Reply
#6

Please check you have all files that your code is referring to. Also please check what functions are being called from within OnPlayerConnect callback. I assume problem is WriteToFile as there is no check for whether you've succeeded in opening specified file before trying to write.
Reply
#7

Код:
public OnPlayerConnect(playerid)
{
    CheckForIPBan(playerid);
    CheckForFullBan(playerid);
    CheckForSlots(playerid);
Full GM https://sampforum.blast.hk/showthread.php?tid=398015&
Reply
#8

BUMP
Reply
#9

Using an invalid handle (invalid file) to write in crashes the server, its a very well known problem.
https://sampwiki.blast.hk/wiki/Fwrite

Your Log-To functions are the problem; Here is a way to fix: http://forum.sa-mp.com/showpost.php?...81&postcount=5
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)