Debug help
#1

Help??

1.
Код:
[debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[debug]  Stack pointer (STK) is 0x23514D4, heap pointer (HEA) is 0x23515A8
[debug] AMX backtrace:
[debug] #0 00037230 in ?? (254) from wurpg.amx
[debug] #1 00316544 in ?? (255) from wurpg.amx
[debug] #2 00020e80 in public OnVehicleSpawn (255) from wurpg.amx
2.

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 65535 past array upper bound 999
[debug] AMX backtrace:
[debug] #0 002a528c in public OnPlayerCommandPerformed (9, 37033348, 0) from wurpg.amx
[debug] #1 native CallLocalFunction () from samp03svr
[debug] #2 00007770 in public OnPlayerCommandText (9, 37033308) from wurpg.amx
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 65535 past array upper bound 999
[debug] AMX backtrace:
[debug] #0 002a528c in public OnPlayerCommandPerformed (9, 37033360, 0) from wurpg.amx
[debug] #1 native CallLocalFunction () from samp03svr
[debug] #2 00007770 in public OnPlayerCommandText (9, 37033308) from wurpg.amx
3.
Код:
[17:24:11] [debug] Server crashed while executing wurpg.amx
[17:24:11] [debug] AMX backtrace:
[17:24:11] [debug] #0 native fwrite () from samp03svr
[17:24:11] [debug] #1 00006574 in ?? (57, 37041404) from wurpg.amx
[17:24:11] [debug] #2 00250eec in public S@@_OnPlayerUpdate (25) from wurpg.amx
[17:24:11] [debug] #3 000c8a5c in public PostaviSpawn (25) from wurpg.amx
[17:24:11] [debug] #4 00261c98 in public OnPlayerLogins (25, 37048680) from wurpg.amx
[17:24:11] [debug] #5 0008dfa8 in ?? (25, 12346, 1, 0, 37033448) from wurpg.amx
[17:24:11] [debug] #6 00023bec in public FIXES_OnDialogResponse (25, 12346, 1, 0, 37033448) from wurpg.amx
[17:24:11] [debug] #7 native CallLocalFunction () from samp03svr
[17:24:11] [debug] #8 000062ac in public OnDialogResponse (25, 12346, 1, 0, 37033308) from wurpg.amx
[17:24:11] [debug] Native backtrace:
[17:24:11] [debug] #0 00b80e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[17:24:11] [debug] #1 00b79bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[17:24:11] [debug] #2 00b7adbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[17:24:11] [debug] #3 00b7b226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[17:24:11] [debug] #4 00b80adc in ?? () from plugins/crashdetect.so
[17:24:11] [debug] #5 00fe4410 in ?? ()
[17:24:11] [debug] #6 003e2750 in fputc () from /lib/libc.so.6
[17:24:11] [debug] #7 0809b8f0 in ?? () from ./samp03svr
[17:24:11] [debug] #8 0809bdff in ?? () from ./samp03svr
[17:24:11] [debug] #9 080950e4 in ?? () from ./samp03svr
[17:24:11] [debug] #10 00b7c94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[17:24:11] [debug] #11 00b7f8f8 in ?? () from plugins/crashdetect.so
[17:24:11] [debug] #12 00b83916 in amx_Exec () from plugins/crashdetect.so
[17:24:11] [debug] #13 00b7bbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[17:24:11] [debug] #14 00b7f659 in ?? () from plugins/crashdetect.so
[17:24:11] [debug] #15 00ec82ea in ?? () from plugins/streamer.so
[17:24:11] [debug] #16 080dfd62 in ?? () from ./samp03svr
[17:24:11] [debug] #17 080950e4 in ?? () from ./samp03svr
[17:24:11] [debug] #18 00b7c94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[17:24:11] [debug] #19 00b7f8f8 in ?? () from plugins/crashdetect.so
[17:24:11] [debug] #20 00b83916 in amx_Exec () from plugins/crashdetect.so
[17:24:11] [debug] #21 00b7bbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[17:24:11] [debug] #22 00b7f659 in ?? () from plugins/crashdetect.so
[17:24:11] [debug] #23 00ec82ea in ?? () from plugins/streamer.so
[17:24:11] [debug] #24 080a682f in ?? () from ./samp03svr
[17:24:11] [debug] #25 080b2c44 in ?? () from ./samp03svr
[17:24:11] [debug] #26 08071d38 in ?? () from ./samp03svr
[17:24:11] [debug] #27 08071e32 in ?? () from ./samp03svr
[17:24:11] [debug] #28 0807bc50 in ?? () from ./samp03svr
[17:24:11] [debug] #29 080aed3d in ?? () from ./samp03svr
[17:24:11] [debug] #30 080aef02 in ?? () from ./samp03svr
[17:24:11] [debug] #31 080aa13a in ?? () from ./samp03svr
[17:24:11] [debug] #32 00390d26 in __libc_start_main () from /lib/libc.so.6
[17:24:11] [debug] #33 0804b4e1 in ?? () from ./samp03svr
Reply
#2

use a proper title to the thread and show us OnPlayerCommandPerformed call back in your script.
Reply
#3

Compile with debug info and post the new (more detailed) logs.

1. Creating very big local strings is the cause.
2. A variable is (or a function returns) INVALID_PLAYER_ID (65535). You need to make sure it is not invalid before using it in arrays.
3. Invalid file handle in file functions crashes the server. All you have to do is check if what fopen returns is not 0 to continue with the rest file functions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)