TrinityCore/TrinityCore — Issue #5177: CRASH on WorldSession::HandleStableSwapPetCallback
Author: dulloa
Created: 2012-02-10 20:33:01+00:00
State: open

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4b6a1950 (LWP 13190)]
WorldSession::HandleStableSwapPetCallback (this=0x7f3e01b51e00, result=, petId=245761)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Handlers/NPCHandler.cpp:859
859 _player->RemovePet(pet, pet->isAlive() ? PetSaveMode(slot) : PET_SAVE_AS_DELETED);
(gdb) shell echo -e "\nCRASH ON" `date`

CRASH ON Fri Feb 10 17:25:10 CLST 2012
(gdb) info program
Using the running image of child Thread 0x4b6a1950 (LWP 13190).
Program stopped at 0xa50717.
It stopped with signal SIGSEGV, Segmentation fault.
(gdb) shell echo -e "\nBACKTRACE\n"

BACKTRACE

(gdb) bt
#0 WorldSession::HandleStableSwapPetCallback (this=0x7f3e01b51e00, result=, petId=245761)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Handlers/NPCHandler.cpp:859
#1 0x0000000000b0a28a in WorldSession::ProcessQueryCallbacks (this=0x7f3e01b51e00)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Server/WorldSession.cpp:1100
#2 0x0000000000b0a5ad in WorldSession::Update (this=0x7f3e01b51e00, diff=0, updater=@0x4b6a0f90)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Server/WorldSession.cpp:351
#3 0x0000000000b9665c in World::UpdateSessions (this=0x7f3e434e9008, diff=239) at /home/tcdir/tc_source/TrinityCore/src/server/game/World/World.cpp:2550
#4 0x0000000000b9f031 in World::Update (this=0x7f3e434e9008, diff=239) at /home/tcdir/tc_source/TrinityCore/src/server/game/World/World.cpp:1923
#5 0x00000000007daaa6 in WorldRunnable::run (this=)
at /home/tcdir/tc_source/TrinityCore/src/server/worldserver/WorldThread/WorldRunnable.cpp:59
#6 0x0000000000d0c64a in ACE_Based::Thread::ThreadTask (param=0x7f3d3332a000) at /home/tcdir/tc_source/TrinityCore/src/server/shared/Threading/Threading.cpp:183
#7 0x00007f3e4bb450f3 in ACE_OS_Thread_Adapter::invoke (this=0x90002) at ../../ace/OS_Thread_Adapter.cpp:103
#8 0x00007f3e4a457fc7 in start_thread () from /lib/libpthread.so.0
#9 0x00007f3e4a1cd64d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()
(gdb) shell echo -e "\nBACKTRACE FULL\n"

BACKTRACE FULL

(gdb) bt full
#0 WorldSession::HandleStableSwapPetCallback (this=0x7f3e01b51e00, result=, petId=245761)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Handlers/NPCHandler.cpp:859
fields =
petEntry = 6500
creatureInfo = (const CreatureTemplate *) 0x7f3e300ff684
pet = (class Pet *) 0x0
newpet =
#1 0x0000000000b0a28a in WorldSession::ProcessQueryCallbacks (this=0x7f3e01b51e00)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Server/WorldSession.cpp:1100
param = 245761
result = {_vptr.ACE_Refcounted_Auto_Ptr = 0x11ce9b0, rep_ = 0x7f3d32449e40}
#2 0x0000000000b0a5ad in WorldSession::Update (this=0x7f3e01b51e00, diff=0, updater=@0x4b6a0f90)
at /home/tcdir/tc_source/TrinityCore/src/server/game/Server/WorldSession.cpp:351
packet = (WorldPacket *) 0x7f3d3141f580
deletePacket = true
firstDelayedPacket = (WorldPacket *) 0x0
#3 0x0000000000b9665c in World::UpdateSessions (this=0x7f3e434e9008, diff=239) at /home/tcdir/tc_source/TrinityCore/src/server/game/World/World.cpp:2550
pSession = (WorldSession *) 0x7f3e01b51e00
updater = { = {_vptr.PacketFilter = 0x11fccd0, m_pSession = 0x7f3e01b51e00}, }
sess =
#4 0x0000000000b9f031 in World::Update (this=0x7f3e434e9008, diff=239) at /home/tcdir/tc_source/TrinityCore/src/server/game/World/World.cpp:1923
No locals.
#5 0x00000000007daaa6 in WorldRunnable::run (this=)
at /home/tcdir/tc_source/TrinityCore/src/server/worldserver/WorldThread/WorldRunnable.cpp:59
diff = 239
realCurrTime = 7675263
realPrevTime = 7675024
prevSleepTime = 0
#6 0x0000000000d0c64a in ACE_Based::Thread::ThreadTask (param=0x7f3d3332a000) at /home/tcdir/tc_source/TrinityCore/src/server/shared/Threading/Threading.cpp:183
No locals.
#7 0x00007f3e4bb450f3 in ACE_OS_Thread_Adapter::invoke (this=0x90002) at ../../ace/OS_Thread_Adapter.cpp:103
hook = (class ACE_Thread_Hook *) 0x27
func = (ACE_THR_FUNC_INTERNAL) 0xd0c640
arg = (void *) 0x7f3e07b500a0
cancel_flags =
status = (ACE_THR_FUNC_RETURN) 0x0
#8 0x00007f3e4a457fc7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9 0x00007f3e4a1cd64d in clone () from /lib/libc.so.6
No symbol table info available.
#10 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)