#359 MMovementLocations crash

Closed
opened 2 years ago by image · 0 comments
image commented 2 years ago
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff7516535 in __GI_abort () at abort.c:79
#2  0x00007ffff756d508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff767828d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7573c1a in malloc_printerr (str=str@entry=0x7ffff767a0a0 "free(): corrupted unsorted chunks") at malloc.c:5341
#4  0x00007ffff75758a2 in _int_free (av=0x7fff58000020, p=0x7fff58013040, have_lock=<optimized out>) at malloc.c:4348
#5  0x00005555558bd038 in Spawn::~Spawn (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at ../WorldServer/Spawn.cpp:158
#6  0x000055555583e14d in Entity::~Entity (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at /usr/include/c++/8/ext/new_allocator.h:86
#7  0x00005555558c93d5 in NPC::~NPC (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at ../WorldServer/MutexHelper.h:63
#8  0x00005555558c93ff in NPC::~NPC (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at ../WorldServer/NPC.cpp:107
#9  0x00005555556c1abc in ZoneServer::DeleteSpawns (this=this@entry=0x55559d48f790, delete_all=delete_all@entry=false) at ../WorldServer/zoneserver.cpp:1230
#10 0x00005555556e423d in ZoneServer::SpawnProcess (this=this@entry=0x55559d48f790) at ../WorldServer/zoneserver.cpp:1618
#11 0x00005555556e43b9 in SpawnLoop (tmp=0x55559d48f790) at ../WorldServer/zoneserver.cpp:6855
#12 0x00007ffff7d82fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#13 0x00007ffff75ed4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

seems to be on the safe_delete

if (MMovementLocations)
    MMovementLocations->releasewritelock(__FUNCTION__, __LINE__);
safe_delete(MMovementLocations);

def memory corruption of sorts

``` #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7516535 in __GI_abort () at abort.c:79 #2 0x00007ffff756d508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff767828d "%s\n") at ../sysdeps/posix/libc_fatal.c:181 #3 0x00007ffff7573c1a in malloc_printerr (str=str@entry=0x7ffff767a0a0 "free(): corrupted unsorted chunks") at malloc.c:5341 #4 0x00007ffff75758a2 in _int_free (av=0x7fff58000020, p=0x7fff58013040, have_lock=<optimized out>) at malloc.c:4348 #5 0x00005555558bd038 in Spawn::~Spawn (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at ../WorldServer/Spawn.cpp:158 #6 0x000055555583e14d in Entity::~Entity (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at /usr/include/c++/8/ext/new_allocator.h:86 #7 0x00005555558c93d5 in NPC::~NPC (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at ../WorldServer/MutexHelper.h:63 #8 0x00005555558c93ff in NPC::~NPC (this=0x7fff2ab9c4c0, __in_chrg=<optimized out>) at ../WorldServer/NPC.cpp:107 #9 0x00005555556c1abc in ZoneServer::DeleteSpawns (this=this@entry=0x55559d48f790, delete_all=delete_all@entry=false) at ../WorldServer/zoneserver.cpp:1230 #10 0x00005555556e423d in ZoneServer::SpawnProcess (this=this@entry=0x55559d48f790) at ../WorldServer/zoneserver.cpp:1618 #11 0x00005555556e43b9 in SpawnLoop (tmp=0x55559d48f790) at ../WorldServer/zoneserver.cpp:6855 #12 0x00007ffff7d82fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486 #13 0x00007ffff75ed4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 ``` seems to be on the safe_delete if (MMovementLocations) MMovementLocations->releasewritelock(__FUNCTION__, __LINE__); safe_delete(MMovementLocations); def memory corruption of sorts
image referenced this issue from a commit 2 years ago
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.