02.05.2014, 12:48
Hello, I have some bug, idk how to fix it... I think it's array, well after some time of running server it goes down, I put crash detect plugin and I get some array warnings:
....
and just before crash I get this:
I'm using
and
#include <fixes> by ******
Код:
[13:53:26] [debug] Run time error 4: "Array index out of bounds" [13:53:26] [debug] Accessing element at negative index -1 [13:53:26] [debug] AMX backtrace: [13:53:26] [debug] #0 00057518 in public Speedometer_Update (0x00000000) from PPCT.amx
and just before crash I get this:
Код:
[16:58:12] Incoming connection: 78.1.136.53:56905 [16:58:12] [join] karamboaas has joined the server (3:78.1.136.53) [16:58:12] Kod igraca(karamboaas): 4D48FD504A45A459C8AD904CE999CE44484 [16:58:13] [debug] Run time error 5: "Invalid memory access" [16:58:13] [debug] AMX backtrace: [16:58:13] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:13] [debug] Run time error 5: "Invalid memory access" [16:58:13] [debug] AMX backtrace: [16:58:13] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:14] [debug] Run time error 5: "Invalid memory access" [16:58:14] [debug] AMX backtrace: [16:58:14] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:14] [debug] Run time error 5: "Invalid memory access" [16:58:14] [debug] AMX backtrace: [16:58:14] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:15] [debug] Run time error 5: "Invalid memory access" [16:58:15] [debug] AMX backtrace: [16:58:15] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:15] [debug] Run time error 5: "Invalid memory access" [16:58:15] [debug] AMX backtrace: [16:58:15] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:16] [debug] Run time error 5: "Invalid memory access" [16:58:16] [debug] AMX backtrace: [16:58:16] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:16] [debug] Run time error 5: "Invalid memory access" [16:58:16] [debug] AMX backtrace: [16:58:16] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:17] [debug] Run time error 5: "Invalid memory access" [16:58:17] [debug] AMX backtrace: [16:58:17] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:17] [debug] Run time error 5: "Invalid memory access" [16:58:17] [debug] AMX backtrace: [16:58:17] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:18] [debug] Run time error 5: "Invalid memory access" [16:58:18] [debug] AMX backtrace: [16:58:18] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:18] [debug] Run time error 5: "Invalid memory access" [16:58:18] [debug] AMX backtrace: [16:58:18] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:19] [debug] Run time error 5: "Invalid memory access" [16:58:19] [debug] AMX backtrace: [16:58:19] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:19] [debug] Run time error 5: "Invalid memory access" [16:58:19] [debug] AMX backtrace: [16:58:19] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:20] [debug] Run time error 5: "Invalid memory access" [16:58:20] [debug] AMX backtrace: [16:58:20] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:20] [debug] Run time error 5: "Invalid memory access" [16:58:20] [debug] AMX backtrace: [16:58:20] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:21] [debug] Run time error 5: "Invalid memory access" [16:58:21] [debug] AMX backtrace: [16:58:21] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:21] [debug] Run time error 5: "Invalid memory access" [16:58:21] [debug] AMX backtrace: [16:58:21] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:22] [debug] Run time error 5: "Invalid memory access" [16:58:22] [debug] AMX backtrace: [16:58:22] [debug] #0 0001cec4 in ?? (0x00000001, 0x00f318a0, 0x00f69714) from PPCT.amx [16:58:22] [debug] #1 000c9814 in public cmd_izbavi (0x00000001, 0x00f69714) from PPCT.amx [16:58:22] [debug] #2 native CallLocalFunction () [080dbf60] from samp03svr [16:58:22] [debug] #3 00007f40 in public FIXES_OnPlayerCommandText (0x00000001, 0x00f696f4) from PPCT.amx [16:58:22] [debug] #4 00002ff0 in public OnPlayerCommandText (0x00000001, 0x00f696f4) from PPCT.amx [16:58:22] [debug] Run time error 5: "Invalid memory access" [16:58:22] [debug] AMX backtrace: [16:58:22] [debug] #0 000ef014 in public Toll () from PPCT.amx [16:58:22] [debug] Run time error 5: "Invalid memory access" [16:58:22] [debug] AMX backtrace: [16:58:22] [debug] #0 0001a5b8 in public GlobalTimer () from PPCT.amx [16:58:22] [debug] Server crashed while executing PPCT.amx [16:58:22] [debug] AMX backtrace: [16:58:22] [debug] #0 native fwrite () [0809aa10] from samp03svr [16:58:22] [debug] #1 0004a6ec in ?? (0x00000002) from PPCT.amx [16:58:22] [debug] #2 000f6d68 in public Streamer_OnPlayerDisconnect (0x00000002, 0x00000001) from PPCT.amx [16:58:22] [debug] #3 0000e09c in public SSCANF_OnPlayerDisconnect (0x00000002, 0x00000001) from PPCT.amx [16:58:22] [debug] #4 00008538 in public FIXES_OnPlayerDisconnect (0x00000002, 0x00000001) from PPCT.amx [16:58:22] [debug] #5 00003334 in public OnPlayerDisconnect (0x00000002, 0x00000001) from PPCT.amx [16:58:22] [debug] Native backtrace: [16:58:22] [debug] #0 f738231b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [16:58:22] [debug] #1 f737c7c2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [16:58:22] [debug] #2 f737d3ac in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [16:58:22] [debug] #3 f737d856 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [16:58:22] [debug] #4 f7381f6c in ?? () from plugins/crashdetect.so [16:58:22] [debug] #5 f7760410 in __kernel_rt_sigreturn () from linux-gate.so.1 [16:58:22] [debug] #6 f7760430 in __kernel_vsyscall () from linux-gate.so.1 [16:58:22] [debug] #7 f745cabf in gsignal () from /lib32/libc.so.6 [16:58:22] [debug] #8 f745ff73 in abort () from /lib32/libc.so.6 [16:58:22] [debug] #9 f7455747 in ?? () from /lib32/libc.so.6 [16:58:22] [debug] #10 f74557f7 in ?? () from /lib32/libc.so.6 [16:58:22] [debug] #11 0809a63c in ?? () from ./samp03svr [16:58:22] [debug] #12 0809aa9f in ?? () from ./samp03svr [16:58:22] [debug] #13 08093d84 in ?? () from ./samp03svr [16:58:22] [debug] #14 f737a03c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [16:58:22] [debug] #15 f7380458 in ?? () from plugins/crashdetect.so [16:58:22] [debug] #16 f7384c61 in amx_Exec () from plugins/crashdetect.so [16:58:22] [debug] #17 f737c708 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [16:58:22] [debug] #18 f73801c9 in ?? () from plugins/crashdetect.so [16:58:22] [debug] #19 080a38ba in ?? () from ./samp03svr [16:58:22] [debug] #20 080cdc11 in ?? () from ./samp03svr [16:58:22] [debug] #21 080ab487 in ?? () from ./samp03svr [16:58:22] [debug] #22 080acd60 in ?? () from ./samp03svr [16:58:22] [debug] #23 080acda2 in ?? () from ./samp03svr [16:58:22] [debug] #24 080a81ae in ?? () from ./samp03svr [16:58:22] [debug] #25 f74478c5 in __libc_start_main () from /lib32/libc.so.6
Код:
#pragma tabsize 0 #pragma dynamic 5576
#include <fixes> by ******