Crash detect , server crash Debug. whats wrong?
#1

i`m getting this debug
Code:
[22:58:09] [debug] Server crashed while executing GM.amx
[22:58:09] [debug] AMX backtrace:
[22:58:09] [debug] #0 native fwrite () from samp03svr
[22:58:09] [debug] #1 000d4a64 in ?? (25484536, 24786572) from GM.amx
[22:58:09] [debug] #2 00034da0 in ?? (8, 21, 24) from GM.amx
[22:58:09] [debug] #3 00006044 in public OnPlayerDeath (8, 21, 24) from GM.amx
[22:58:09] [debug] Native backtrace:
[22:58:09] [debug] #0 b73e2e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[22:58:09] [debug] #1 b73dbbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[22:58:09] [debug] #2 b73dcdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[22:58:09] [debug] #3 b73dd226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[22:58:09] [debug] #4 b73e2adc in ?? () from plugins/crashdetect.so
[22:58:09] [debug] #5 b772a40c in ?? ()
[22:58:09] [debug] #6 b772a424 in ?? ()
[22:58:09] [debug] #7 b7435607 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #8 b7438a33 in abort () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #9 b742e757 in ?? () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #10 b742e807 in ?? () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #11 0809a90c in ?? () from ./samp03svr
[22:58:09] [debug] #12 0809ad6f in ?? () from ./samp03svr
[22:58:09] [debug] #13 08094054 in ?? () from ./samp03svr
[22:58:09] [debug] #14 b73de94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[22:58:09] [debug] #15 b73e18f8 in ?? () from plugins/crashdetect.so
[22:58:09] [debug] #16 b73e5916 in amx_Exec () from plugins/crashdetect.so
[22:58:09] [debug] #17 b73ddbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[22:58:09] [debug] #18 b73e1659 in ?? () from plugins/crashdetect.so
[22:58:09] [debug] #19 b7312f4a in ?? () from plugins/streamer.so
[22:58:09] [debug] #20 b72d5cf9 in ?? () from plugins/AntiServerFullFix.so
Reply
#2

You need to update your Plugin, (Maybe)

public OnPlayerDeath ( This line got a problem. check code of that)
Reply
#3

Quote:
Originally Posted by MarwanCartman
View Post
i`m getting this debug
Code:
[22:58:09] [debug] Server crashed while executing GM.amx
[22:58:09] [debug] AMX backtrace:
[22:58:09] [debug] #0 native fwrite () from samp03svr
[22:58:09] [debug] #1 000d4a64 in ?? (25484536, 24786572) from GM.amx
[22:58:09] [debug] #2 00034da0 in ?? (8, 21, 24) from GM.amx
[22:58:09] [debug] #3 00006044 in public OnPlayerDeath (8, 21, 24) from GM.amx
[22:58:09] [debug] Native backtrace:
[22:58:09] [debug] #0 b73e2e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[22:58:09] [debug] #1 b73dbbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[22:58:09] [debug] #2 b73dcdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[22:58:09] [debug] #3 b73dd226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[22:58:09] [debug] #4 b73e2adc in ?? () from plugins/crashdetect.so
[22:58:09] [debug] #5 b772a40c in ?? ()
[22:58:09] [debug] #6 b772a424 in ?? ()
[22:58:09] [debug] #7 b7435607 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #8 b7438a33 in abort () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #9 b742e757 in ?? () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #10 b742e807 in ?? () from /lib/i386-linux-gnu/libc.so.6
[22:58:09] [debug] #11 0809a90c in ?? () from ./samp03svr
[22:58:09] [debug] #12 0809ad6f in ?? () from ./samp03svr
[22:58:09] [debug] #13 08094054 in ?? () from ./samp03svr
[22:58:09] [debug] #14 b73de94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[22:58:09] [debug] #15 b73e18f8 in ?? () from plugins/crashdetect.so
[22:58:09] [debug] #16 b73e5916 in amx_Exec () from plugins/crashdetect.so
[22:58:09] [debug] #17 b73ddbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[22:58:09] [debug] #18 b73e1659 in ?? () from plugins/crashdetect.so
[22:58:09] [debug] #19 b7312f4a in ?? () from plugins/streamer.so
[22:58:09] [debug] #20 b72d5cf9 in ?? () from plugins/AntiServerFullFix.so

The crashdetect log says something about the fwrite() function, can you post your OnPlayerDeath code here?
Reply
#4

Post your OnPlayerDeath command here. If still not working I'll give you more solutions.
Reply
#5

https://sampwiki.blast.hk/wiki/Fwrite

Invalid file handle crashes your server. As it's not used directly in OnPlayerDeath callback but in function(s) that are called there, you should compile with -d3 so you can get the exact line: https://github.com/Zeex/samp-plugin-...ith-debug-info

Also what I meant by invalid handle is this:
pawn Code:
new File: fhandle = fopen(...);
fwrite(fhandle, "...");
...
in case the file is not opened correctly, the file handle will be 0 thus invalid and when used in fwrite or any other file function, it will crash your server. In order to prevent this, you need to check if it's not 0:
pawn Code:
new File: fhandle = fopen(...);
if (fhandle) // if valid file handle..
{
    fwrite(fhandle, "...");
    ...
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)