Server crash on GMX
#1

So, I got this problem which I can't solve, so if you can help me I would be thankful.

Here's the server log:
Code:
Console input: gmx
[20:05:15] [debug] Server crashed while executing gmx.amx
[20:05:15] [debug] AMX backtrace:
[20:05:15] [debug] #0 native tolower () from samp-server.exe
[20:05:15] [debug] #1 00010844 in ?? () from gmx.amx
[20:05:15] [debug] #2 00006010 in ?? () from gmx.amx
[20:05:15] [debug] #3 00000718 in public OnGameModeExit () from gmx.amx
[20:05:15] [debug] Native backtrace:
[20:05:15] [debug] #0 76333c71 in ?? () from C:\Windows\system32\USER32.dll
[20:05:15] [debug] #1 0040473e in ?? () from samp-server.exe
[20:05:15] [debug] #2 6aaf62ca in ?? () from plugins\crashdetect.DLL
[20:05:15] [debug] #3 6aaf8b28 in ?? () from plugins\crashdetect.DLL
[20:05:15] [debug] #4 6aaf09c7 in ?? () from plugins\crashdetect.DLL
[20:05:15] [debug] #5 6aaf631a in ?? () from plugins\crashdetect.DLL
[20:05:15] [debug] #6 0046d7dc in ?? () from samp-server.exe
[20:05:15] [debug] #7 0048f48f in ?? () from samp-server.exe
[20:05:15] [debug] #8 7643ba90 in ?? () from C:\Windows\system32\kernel32.dll
Thanks.
Reply
#2

Seems like another user had the same problem: http://forum.sa-mp.com/showpost.php?...00&postcount=1
but unfortunately no solution or more info related to the issue.

Compile with debug info to see where tolower is called and replace it with "ASCII_char | 0x20" (in loop).
Reply
#3

I get this with debug info:
Code:
Header size:           5528 bytes
Code size:           170188 bytes
Data size:          1854784 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2046884 bytes
Reply
#4

Since there is recursion, this box should've be given earlier as well but it's irrelevant. After compiling, try to reproduce the crash by gmx'ing again.
Reply
#5

Code:
Console input: gmx
[20:37:48] [debug] Server crashed while executing gmx.amx
[20:37:48] [debug] AMX backtrace:
[20:37:48] [debug] #0 native tolower () from samp-server.exe
[20:37:48] [debug] #1 00013dd0 in ?? () at C:\Users\PC\Desktop\Server\pawno\include\zcmd.inc:94
[20:37:48] [debug] #2 00007364 in ScriptInit_OnScriptExit ()  at C:\Users\PC\Desktop\Server\pawno\include\ysi\internal\y_dohooks.inc:439
[20:37:48] [debug] #3 00000784 in public OnGameModeExit () at C:\Users\PC\Desktop\Server\pawno\include\YSI\internal\..\y_scriptinit.inc:263
[20:37:48] [debug] Native backtrace:
[20:37:48] [debug] #0 76333c71 in ?? () from C:\Windows\system32\USER32.dll
[20:37:48] [debug] #1 0040473e in ?? () from samp-server.exe
[20:37:48] [debug] #2 6a4262ca in ?? () from plugins\crashdetect.DLL
[20:37:48] [debug] #3 6a428b28 in ?? () from plugins\crashdetect.DLL
[20:37:48] [debug] #4 6a4209c7 in ?? () from plugins\crashdetect.DLL
[20:37:48] [debug] #5 6a42631a in ?? () from plugins\crashdetect.DLL
[20:37:48] [debug] #6 0046d7dc in ?? () from samp-server.exe
[20:37:48] [debug] #7 0048f48f in ?? () from samp-server.exe
[20:37:48] [debug] #8 7643ba90 in ?? () from C:\Windows\system32\kernel32.dll
Now I get something with includes...
Reply
#6

I don't know why the crash occurred in the first place in a native such tolower but I'm curious what will report if you replace:
pawn Code:
funcname[pos-1] = tolower(cmdtext[pos]);
to:
pawn Code:
funcname[pos-1] = cmdtext[pos] | 0x20;
Reply
#7

Problem is that I dont have tolower anywhere in my script...
Reply
#8

zcmd include is using it at line 94.
Reply
#9

So, after replacing those two, I still get the same:
Code:
Console input: gmx
[21:01:40] [debug] Server crashed while executing gmx.amx
[21:01:40] [debug] AMX backtrace:
[21:01:40] [debug] #0 native tolower () from samp-server.exe
[21:01:40] [debug] #1 00013dd0 in ?? () at C:\Users\PC\Desktop\Server\pawno\include\zcmd.inc:94
[21:01:40] [debug] #2 00007364 in ScriptInit_OnScriptExit ()  at C:\Users\PC\Desktop\Server\pawno\include\ysi\internal\y_dohooks.inc:439
[21:01:40] [debug] #3 00000784 in public OnGameModeExit () at C:\Users\PC\Desktop\Server\pawno\include\YSI\internal\..\y_scriptinit.inc:263
[21:01:40] [debug] Native backtrace:
[21:01:40] [debug] #0 77dc9e61 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[21:01:40] [debug] #1 76333bc2 in ?? () from C:\Windows\system32\USER32.dll
[21:01:40] [debug] #2 76333c82 in ?? () from C:\Windows\system32\USER32.dll
[21:01:40] [debug] #3 0040473e in ?? () from samp-server.exe
[21:01:40] [debug] #4 64bd62ca in ?? () from plugins\crashdetect.DLL
[21:01:40] [debug] #5 64bd8b28 in ?? () from plugins\crashdetect.DLL
[21:01:40] [debug] #6 64bd09c7 in ?? () from plugins\crashdetect.DLL
[21:01:40] [debug] #7 64bd631a in ?? () from plugins\crashdetect.DLL
[21:01:40] [debug] #8 0046d7dc in ?? () from samp-server.exe
[21:01:40] [debug] #9 0048f48f in ?? () from samp-server.exe
[21:01:40] [debug] #10 7643ba90 in ?? () from C:\Windows\system32\kernel32.dll
Reply
#10

Did you re-compile after the changes in the include? According to the logs, the old include is used.
Reply
#11

-removed-
Reply
#12

Compile the script, not the include file.
Reply
#13

I was like what is he on about :O

Thanks anyway, problem solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)