Issue information

Issue ID
#6698
Status
Invalid
Severity
None
Started
Hercules Elf Bot
Sep 15, 2012 20:48
Last Post
Hercules Elf Bot
Sep 15, 2012 23:54
Confirmation
Yes (0)
No (2)

Hercules Elf Bot - Sep 15, 2012 20:48

Originally posted by [b]Ron[/b]
After adding this;
[url="http://rathena.org/board/tracker/issue-5968-map-server-spikes-99-cpu-usage-randomly/page__st__20"]http://rathena.org/board/tracker/issue-5968-map-server-spikes-99-cpu-usage-randomly/page__st__20[/url]

I constantly get these errors when @reloadscript or so..


[Error]: Memory manager: args of aFree 0x0x7f522e6e9b94 is invalid pointer mob.c line 193


Nearby lines 170-200

[quote]void mvptomb_destroy(struct mob_data *md)
{
struct npc_data *nd = md->tomb_npc;

if (nd) {
int m, i;

m = nd->bl.m;

clif_clearunit_area(&nd->bl,CLR_OUTSIGHT);

map_delblock(&nd->bl);

ARR_FIND( 0, map[m].npc_num, i, map[m].npc[i] == nd );
if( !(i == map[m].npc_num) ) {
map[m].npc_num--;
map[m].npc[i] = map[m].npc[map[m].npc_num];
map[m].npc[map[m].npc_num] = NULL;
}

map_deliddb(&nd->bl);

aFree(nd);
}

md->tomb_npc = NULL;
}[/quote]

Hercules Elf Bot - Sep 15, 2012 21:26

Originally posted by [b]Ind[/b]
update to the latest version of that code (that is outdated)