Random server crash, memory corruption
#1

Hello,

My server crashes once every few hours/days, i've been using crashdetect to look for problems and found that during runtime somtimes memory adresses seem to be altered:

Код:
[12:10:45] i: 5547156, j: 1234
[12:10:45] [debug] Run time error 4: "Array index out of bounds"
[12:10:45] [debug]  Attempted to read/write array element at index 5547156 in array of size 4
[12:10:45] [debug] AMX backtrace:
[12:10:45] [debug] #0 000c5aac in FunctionNodesInZone (GangID=2) at D:\Games\GTA-SA\GTA San Andreas\SA-MP 0.3.7 R2 Server\gamemodes\FRBServer0.1.pwn:13599
However, the integer used in the array could NEVER get higher then 3:

Код:
#define FCNPC_WALKNODE_LIMIT                10000
#define FCNPC_ZONE_COUNT                4

for(new j = 0; j < FCNPC_WALKNODE_LIMIT; j++)
{
        for(new i = 0; i < FCNPC_ZONE_COUNT; i++)
	{
	       if(i > 3) printf("i: %d, j: %d", i, j);
How could issues like this occur? I suppose only by memory hacking plugins?

Kind regards,
Jop
Reply


Messages In This Thread
Random server crash, memory corruption - by jop9888 - 29.12.2018, 15:01
Re: Random server crash, memory corruption - by jop9888 - 29.12.2018, 15:13
Re: Random server crash, memory corruption - by Threshold - 30.12.2018, 00:58
Re: Random server crash, memory corruption - by iorp - 30.12.2018, 02:55
Re: Random server crash, memory corruption - by jop9888 - 30.12.2018, 14:59
Re: Random server crash, memory corruption - by jop9888 - 30.12.2018, 15:02
Re: Random server crash, memory corruption - by Pottus - 30.12.2018, 16:07
Re: Random server crash, memory corruption - by jop9888 - 01.01.2019, 09:57

Forum Jump:


Users browsing this thread: 2 Guest(s)