cmangos / issues

This repository is used as a centralized point for all issues regarding CMaNGOS.
179 stars 47 forks source link

[classic]warlock pet imp autocast fire shield on >=2 players lead server crash #959

Closed yyhhrr closed 8 years ago

yyhhrr commented 8 years ago

Current behavior: just crash Expected behavior:

Steps to reproduce:

When party have warlock and summon imp,imp set fire shield autocast.If party member >=2 without warlock.When imp autocast fire shield on >=2 players the server crash.

Client version:

Commit hash: latest Database version:

Operating system:

Revision: 2016-06-11 22:36:56 4bd723511541418a1a974355af21ecfa8a669c45 Date 11:6:2016. Time 22:46 //===================================================== * Hardware * Processor: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz Number Of Processors: 8 Physical Memory: 16713000 KB (Available: 11295784 KB) Commit Charge Limit: 33490216 KB

* Operation System * Windows 8 (Version 6.2, Build 9200)

//===================================================== Exception code: C0000005 ACCESS_VIOLATION Fault address: 000000014039E740 01:000000000039D740 J:\wow\run\mangosd.exe

Registers: RAX:00007FF5EA429D68 RBX:0000000000000000 RCX:0000000000000000 RDX:00007FF5EBCC4600 RSI:0000000000000000 RDI:00007FF5EBCC4200 R8: 00007FF5ECC52660 R9: 00007FF5FFEB3DF0 R10:0000000007AFF910 R11:0000000000000000 R12:0000000000000004 R13:00007FF5EB8D2BB0 R14:00007FF5EE34E080 R15:0000000000000001 CS:RIP:0033:000000014039E740 SS:RSP:002B:0000000007AFFAD0 RBP:07AFFC00 DS:002B ES:002B FS:0053 GS:002B Flags:00010297

Call stack: Address Frame Function SourceFile 000000014039E740 0000000007AFFAF0 Spell::~Spell+40 j:\cmangos\mangos-classic\src\game\spell.cpp line 346 0000000140416908 0000000007AFFC40 PetAI::UpdateAI+908 j:\cmangos\mangos-classic\src\game\petai.cpp line 323 000000014012D22E 0000000007AFFC80 Creature::Update+33E j:\cmangos\mangos-classic\src\game\creature.cpp line 588 00000001401566B0 0000000007AFFCC0 Pet::Update+160 j:\cmangos\mangos-classic\src\game\pet.cpp line 562 000000014014689F 0000000007AFFD00 MaNGOS::ObjectUpdater::Visit+9F j:\cmangos\mangos-classic\src\game\gridnotifiersimpl.h line 46 0000000140146158 0000000007AFFDC0 Map::Update+4C8 j:\cmangos\mangos-classic\src\game\map.cpp line 508 000000014027D287 0000000007AFFE10 MapManager::Update+67 j:\cmangos\mangos-classic\src\game\mapmanager.cpp line 175 00000001400BE09E 0000000007AFFE50 World::Update+13E j:\cmangos\mangos-classic\src\game\world.cpp line 1374 0000000140080381 0000000007AFFE80 WorldRunnable::run+61 j:\cmangos\mangos-classic\src\mangosd\worldrunnable.cpp line 66 00000001400A61FD 0000000007AFFEB0 std::_LaunchPad<std::_Bind<1,void,void (cdeclconst)(void ptr64),void * __ptr64> >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 188 00007FFE444AD24C 0000000007AFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007AFFF20 _beginthreadex+107 00007FFE44545126 0000000007AFFF50 _endthreadex+192 00007FFE52978102 0000000007AFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007AFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 000000000014F7C0 ZwWaitForSingleObject+14 00007FFE51F1AADF 000000000014F860 WaitForSingleObjectEx+8F 00007FFE4452744F 000000000014F8A0 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 000000000014F900 ?wait@Concurrency@@YAXI@Z+96 000000014007371A 000000000014F960 std::this_thread::sleep_for<int64,std::ratio<1,1> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007816A 000000000014FD00 Master::Run+7FA j:\cmangos\mangos-classic\src\mangosd\master.cpp line 231 0000000140070FE6 000000000014FF20 main+BB6 j:\cmangos\mangos-classic\src\mangosd\main.cpp line 201 0000000140082867 000000000014FF50 tmainCRTStartup+10F f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c line 626 00007FFE52978102 000000000014FF80 BaseThreadInitThunk+22 00007FFE5516C5B4 000000000014FFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000026FFC80 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000026FFD20 WaitForSingleObjectEx+8F 00007FFE4452744F 00000000026FFD60 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 00000000026FFDC0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 00000000026FFE20 std::this_thread::sleep_for<int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 00000001400A6165 00000000026FFE50 MaNGOS::Thread::Sleep+15 j:\cmangos\mangos-classic\src\shared\threading.cpp line 137 00000001400A9B5F 00000000026FFE80 SqlDelayThread::run+3F j:\cmangos\mangos-classic\src\shared\database\sqldelaythread.cpp line 50 00000001400A61FD 00000000026FFEB0 std::_LaunchPad<std::_Bind<1,void,void (cdeclconst)(void ptr64),void * ptr64> >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 188 00007FFE444AD24C 00000000026FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000026FFF20 _beginthreadex+107 00007FFE44545126 00000000026FFF50 _endthreadex+192 00007FFE52978102 00000000026FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000026FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 000000000288FC80 ZwWaitForSingleObject+14 00007FFE51F1AADF 000000000288FD20 WaitForSingleObjectEx+8F 00007FFE4452744F 000000000288FD60 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 000000000288FDC0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 000000000288FE20 std::this_thread::sleep_for<int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 00000001400A6165 000000000288FE50 MaNGOS::Thread::Sleep+15 j:\cmangos\mangos-classic\src\shared\threading.cpp line 137 00000001400A9B5F 000000000288FE80 SqlDelayThread::run+3F j:\cmangos\mangos-classic\src\shared\database\sqldelaythread.cpp line 50 00000001400A61FD 000000000288FEB0 std::_LaunchPad<std::_Bind<1,void,void (cdeclconst)(void ptr64),void * ptr64> >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 188 00007FFE444AD24C 000000000288FEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 000000000288FF20 _beginthreadex+107 00007FFE44545126 000000000288FF50 _endthreadex+192 00007FFE52978102 000000000288FF80 BaseThreadInitThunk+22 00007FFE5516C5B4 000000000288FFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 000000000298FB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 000000000298FF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 000000000298FF80 BaseThreadInitThunk+22 00007FFE5516C5B4 000000000298FFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 0000000002A8FC80 ZwWaitForSingleObject+14 00007FFE51F1AADF 0000000002A8FD20 WaitForSingleObjectEx+8F 00007FFE4452744F 0000000002A8FD60 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 0000000002A8FDC0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 0000000002A8FE20 std::this_thread::sleep_for<int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 00000001400A6165 0000000002A8FE50 MaNGOS::Thread::Sleep+15 j:\cmangos\mangos-classic\src\shared\threading.cpp line 137 00000001400A9B5F 0000000002A8FE80 SqlDelayThread::run+3F j:\cmangos\mangos-classic\src\shared\database\sqldelaythread.cpp line 50 00000001400A61FD 0000000002A8FEB0 std::_LaunchPad<std::_Bind<1,void,void (cdeclconst)(void ptr64),void * ptr64> >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 188 00007FFE444AD24C 0000000002A8FEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000002A8FF20 _beginthreadex+107 00007FFE44545126 0000000002A8FF50 _endthreadex+192 00007FFE52978102 0000000002A8FF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000002A8FFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 00000000079FFB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 00000000079FFF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 00000000079FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000079FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B6D54 0000000007AFDC30 NtGetContextThread+14 00007FFE51F69F0A 0000000007AFDC60 GetThreadContext+A 0000000140081CAE 0000000007AFE190 WheatyExceptionReport::printTracesForAllThreads+BE j:\cmangos\mangos-classic\src\shared\wheatyexceptionreport.cpp line 281 0000000140080D91 0000000007AFE820 WheatyExceptionReport::GenerateExceptionReport+321 j:\cmangos\mangos-classic\src\shared\wheatyexceptionreport.cpp line 380 00000001400815FA 0000000007AFEAC0 WheatyExceptionReport::WheatyUnhandledExceptionFilter+14A j:\cmangos\mangos-classic\src\shared\wheatyexceptionreport.cpp line 107 00007FFE51FC7E1E 0000000007AFEBC0 UnhandledExceptionFilter+1AE 00007FFE551BD998 0000000007AFEC00 memset+2098 00007FFE551A5B26 0000000007AFEC70 C_specific_handler+96 00007FFE551B9AFD 0000000007AFECA0 chkstk+FD 00007FFE55144FE9 0000000007AFF3B0 RtlImageNtHeaderEx+4B9 00007FFE551B8C0A 0000000007AFFAC0 KiUserExceptionDispatcher+3A 000000014039E740 0000000007AFFAF0 Spell::~Spell+40 j:\cmangos\mangos-classic\src\game\spell.cpp line 346 0000000140416908 0000000007AFFC40 PetAI::UpdateAI+908 j:\cmangos\mangos-classic\src\game\petai.cpp line 323 000000014012D22E 0000000007AFFC80 Creature::Update+33E j:\cmangos\mangos-classic\src\game\creature.cpp line 588 00000001401566B0 0000000007AFFCC0 Pet::Update+160 j:\cmangos\mangos-classic\src\game\pet.cpp line 562 000000014014689F 0000000007AFFD00 MaNGOS::ObjectUpdater::Visit+9F j:\cmangos\mangos-classic\src\game\gridnotifiersimpl.h line 46 0000000140146158 0000000007AFFDC0 Map::Update+4C8 j:\cmangos\mangos-classic\src\game\map.cpp line 508 000000014027D287 0000000007AFFE10 MapManager::Update+67 j:\cmangos\mangos-classic\src\game\mapmanager.cpp line 175 00000001400BE09E 0000000007AFFE50 World::Update+13E j:\cmangos\mangos-classic\src\game\world.cpp line 1374 0000000140080381 0000000007AFFE80 WorldRunnable::run+61 j:\cmangos\mangos-classic\src\mangosd\worldrunnable.cpp line 66 00000001400A61FD 0000000007AFFEB0 std::_LaunchPad<std::_Bind<1,void,void (cdeclconst)(void ptr64),void * __ptr64> >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 188 00007FFE444AD24C 0000000007AFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007AFFF20 _beginthreadex+107 00007FFE44545126 0000000007AFFF50 _endthreadex+192 00007FFE52978102 0000000007AFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007AFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B51A4 0000000007BFFA40 ZwReadFile+14 00007FFE51F1C324 0000000007BFFAC0 ReadFile+74 00007FFE44589AA7 0000000007BFFB60 _read+3EB 00007FFE44589782 0000000007BFFBB0 _read+C6 00007FFE4454DC10 0000000007BFFBE0 _filbuf+80 00007FFE4454D251 0000000007BFFC40 fgets+119 00000001400660B8 0000000007BFFE80 CliRunnable::run+128 j:\cmangos\mangos-classic\src\mangosd\clirunnable.cpp line 617 00000001400A61FD 0000000007BFFEB0 std::_LaunchPad<std::_Bind<1,void,void (cdeclconst)(void ptr64),void * __ptr64> >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 188 00007FFE444AD24C 0000000007BFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007BFFF20 _beginthreadex+107 00007FFE44545126 0000000007BFFF50 _endthreadex+192 00007FFE52978102 0000000007BFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007BFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 0000000007CFFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 0000000007CFFD30 GetQueuedCompletionStatus+52 000000014007BC02 0000000007CFFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DABD 0000000007CFFE70 boost::asio::detail::win_iocp_io_service::run+AD c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 0000000007CFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000007CFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007CFFF20 _beginthreadex+107 00007FFE44545126 0000000007CFFF50 _endthreadex+192 00007FFE52978102 0000000007CFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007CFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 0000000007DFFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 0000000007DFFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 0000000007DFFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 0000000007DFFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 0000000007DFFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 0000000007DFFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 0000000007DFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000007DFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007DFFF20 _beginthreadex+107 00007FFE44545126 0000000007DFFF50 _endthreadex+192 00007FFE52978102 0000000007DFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007DFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 0000000007EFFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 0000000007EFFD30 GetQueuedCompletionStatus+52 000000014007BC02 0000000007EFFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DABD 0000000007EFFE70 boost::asio::detail::win_iocp_io_service::run+AD c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 0000000007EFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000007EFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007EFFF20 _beginthreadex+107 00007FFE44545126 0000000007EFFF50 _endthreadex+192 00007FFE52978102 0000000007EFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007EFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 0000000007FFFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 0000000007FFFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 0000000007FFFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 0000000007FFFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 0000000007FFFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 0000000007FFFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 0000000007FFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000007FFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000007FFFF20 _beginthreadex+107 00007FFE44545126 0000000007FFFF50 _endthreadex+192 00007FFE52978102 0000000007FFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000007FFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 00000000080FFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 00000000080FFD30 GetQueuedCompletionStatus+52 000000014007BC02 00000000080FFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DABD 00000000080FFE70 boost::asio::detail::win_iocp_io_service::run+AD c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 00000000080FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000080FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000080FFF20 _beginthreadex+107 00007FFE44545126 00000000080FFF50 _endthreadex+192 00007FFE52978102 00000000080FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000080FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000081FFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000081FFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 00000000081FFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 00000000081FFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 00000000081FFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 00000000081FFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 00000000081FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000081FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000081FFF20 _beginthreadex+107 00007FFE44545126 00000000081FFF50 _endthreadex+192 00007FFE52978102 00000000081FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000081FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 00000000082FFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 00000000082FFD30 GetQueuedCompletionStatus+52 000000014007BC02 00000000082FFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DAA2 00000000082FFE70 boost::asio::detail::win_iocp_io_service::run+92 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 00000000082FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000082FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000082FFF20 _beginthreadex+107 00007FFE44545126 00000000082FFF50 _endthreadex+192 00007FFE52978102 00000000082FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000082FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000083FFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000083FFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 00000000083FFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 00000000083FFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 00000000083FFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 00000000083FFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 00000000083FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000083FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000083FFF20 _beginthreadex+107 00007FFE44545126 00000000083FFF50 _endthreadex+192 00007FFE52978102 00000000083FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000083FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 00000000084FFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 00000000084FFD30 GetQueuedCompletionStatus+52 000000014007BC02 00000000084FFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DAA2 00000000084FFE70 boost::asio::detail::win_iocp_io_service::run+92 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 00000000084FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000084FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000084FFF20 _beginthreadex+107 00007FFE44545126 00000000084FFF50 _endthreadex+192 00007FFE52978102 00000000084FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000084FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000085FFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000085FFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 00000000085FFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 00000000085FFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 00000000085FFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 00000000085FFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 00000000085FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000085FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000085FFF20 _beginthreadex+107 00007FFE44545126 00000000085FFF50 _endthreadex+192 00007FFE52978102 00000000085FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000085FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 00000000086FFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 00000000086FFD30 GetQueuedCompletionStatus+52 000000014007BC02 00000000086FFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DAA2 00000000086FFE70 boost::asio::detail::win_iocp_io_service::run+92 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 00000000086FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000086FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000086FFF20 _beginthreadex+107 00007FFE44545126 00000000086FFF50 _endthreadex+192 00007FFE52978102 00000000086FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000086FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000087FFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000087FFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 00000000087FFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 00000000087FFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 00000000087FFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 00000000087FFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 00000000087FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000087FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000087FFF20 _beginthreadex+107 00007FFE44545126 00000000087FFF50 _endthreadex+192 00007FFE52978102 00000000087FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000087FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 00000000088FFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 00000000088FFD30 GetQueuedCompletionStatus+52 000000014007BC02 00000000088FFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DAA2 00000000088FFE70 boost::asio::detail::win_iocp_io_service::run+92 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 00000000088FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000088FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000088FFF20 _beginthreadex+107 00007FFE44545126 00000000088FFF50 _endthreadex+192 00007FFE52978102 00000000088FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000088FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000089FFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000089FFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 00000000089FFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 00000000089FFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 00000000089FFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 00000000089FFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 00000000089FFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 00000000089FFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 00000000089FFF20 _beginthreadex+107 00007FFE44545126 00000000089FFF50 _endthreadex+192 00007FFE52978102 00000000089FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000089FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 0000000008AFFCD0 ZwRemoveIoCompletion+14 00007FFE51F517A2 0000000008AFFD30 GetQueuedCompletionStatus+52 000000014007BC02 0000000008AFFE10 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DAA2 0000000008AFFE70 boost::asio::detail::win_iocp_io_service::run+92 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140078DB3 0000000008AFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+23 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000008AFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000008AFFF20 _beginthreadex+107 00007FFE44545126 0000000008AFFF50 _endthreadex+192 00007FFE52978102 0000000008AFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000008AFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 0000000008BFFC90 ZwWaitForSingleObject+14 00007FFE51F1AADF 0000000008BFFD30 WaitForSingleObjectEx+8F 00007FFE4452744F 0000000008BFFD70 ?EnableTracing@Concurrency@@YAJXZ+3AF 00007FFE4453EAAA 0000000008BFFDD0 ?wait@Concurrency@@YAXI@Z+96 000000014002494A 0000000008BFFE30 std::this_thread::sleep_for<__int64,std::ratio<1,1000> >+AA c:\program files (x86)\microsoft visual studio 12.0\vc\include\thread line 163 000000014007868D 0000000008BFFE80 MaNGOS::NetworkThread::SocketCleanupWork+DD j:\cmangos\mangos-classic\src\shared\network\networkthread.hpp line 128 0000000140078CF8 0000000008BFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+18 c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000008BFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000008BFFF20 _beginthreadex+107 00007FFE44545126 0000000008BFFF50 _endthreadex+192 00007FFE52978102 0000000008BFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000008BFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 0000000008CFFDE0 ZwWaitForSingleObject+14 00007FFE51F1AADF 0000000008CFFE80 WaitForSingleObjectEx+8F 0000000140090410 0000000008CFFEB0 boost::asio::detail::win_iocp_io_service::timer_thread_function::operator()+30 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 54 000000014009558F 0000000008CFFEF0 boost::asio::detail::win_thread_function+2F c:\local\boost_1_61_0\boost\asio\detail\impl\win_thread.ipp line 120 00007FFE44544F7F 0000000008CFFF20 _beginthreadex+107 00007FFE44545126 0000000008CFFF50 _endthreadex+192 00007FFE52978102 0000000008CFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000008CFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5204 0000000008DFFC90 ZwRemoveIoCompletion+14 00007FFE51F517A2 0000000008DFFCF0 GetQueuedCompletionStatus+52 000000014007BC02 0000000008DFFDD0 boost::asio::detail::win_iocp_io_service::do_one+1C2 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 368 000000014007DABD 0000000008DFFE30 boost::asio::detail::win_iocp_io_service::run+AD c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 164 0000000140076729 0000000008DFFE70 ::operator()+29 j:\cmangos\mangos-classic\src\shared\network\listener.hpp line 82 0000000140078D1D 0000000008DFFEB0 std::_LaunchPadstd::_Bind<0,void, >::_Go+1D c:\program files (x86)\microsoft visual studio 12.0\vc\include\thr\xthread line 187 00007FFE444AD24C 0000000008DFFEF0 ?_Release@_Pad@std@@QEAAXXZ+6C 00007FFE44544F7F 0000000008DFFF20 _beginthreadex+107 00007FFE44545126 0000000008DFFF50 _endthreadex+192 00007FFE52978102 0000000008DFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000008DFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 0000000008EFFB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 0000000008EFFF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 0000000008EFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000008EFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 0000000008FFFB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 0000000008FFFF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 0000000008FFFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 0000000008FFFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000090FFDE0 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000090FFE80 WaitForSingleObjectEx+8F 0000000140090410 00000000090FFEB0 boost::asio::detail::win_iocp_io_service::timer_thread_function::operator()+30 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 54 000000014009558F 00000000090FFEF0 boost::asio::detail::win_thread_function+2F c:\local\boost_1_61_0\boost\asio\detail\impl\win_thread.ipp line 120 00007FFE44544F7F 00000000090FFF20 _beginthreadex+107 00007FFE44545126 00000000090FFF50 _endthreadex+192 00007FFE52978102 00000000090FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000090FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 00000000093FFB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 00000000093FFF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 00000000093FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000093FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 00000000094FFB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 00000000094FFF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 00000000094FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000094FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000096FFDE0 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000096FFE80 WaitForSingleObjectEx+8F 0000000140090410 00000000096FFEB0 boost::asio::detail::win_iocp_io_service::timer_thread_function::operator()+30 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 54 000000014009558F 00000000096FFEF0 boost::asio::detail::win_thread_function+2F c:\local\boost_1_61_0\boost\asio\detail\impl\win_thread.ipp line 120 00007FFE44544F7F 00000000096FFF20 _beginthreadex+107 00007FFE44545126 00000000096FFF50 _endthreadex+192 00007FFE52978102 00000000096FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000096FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B5164 00000000097FFDE0 ZwWaitForSingleObject+14 00007FFE51F1AADF 00000000097FFE80 WaitForSingleObjectEx+8F 0000000140090410 00000000097FFEB0 boost::asio::detail::win_iocp_io_service::timer_thread_function::operator()+30 c:\local\boost_1_61_0\boost\asio\detail\impl\win_iocp_io_service.ipp line 54 000000014009558F 00000000097FFEF0 boost::asio::detail::win_thread_function+2F c:\local\boost_1_61_0\boost\asio\detail\impl\win_thread.ipp line 120 00007FFE44544F7F 00000000097FFF20 _beginthreadex+107 00007FFE44545126 00000000097FFF50 _endthreadex+192 00007FFE52978102 00000000097FFF80 BaseThreadInitThunk+22 00007FFE5516C5B4 00000000097FFFD0 RtlUserThreadStart+34

Call stack: Address Frame Function SourceFile 00007FFE551B87F4 00000000098FFB40 NtWaitForWorkViaWorkerFactory+14 00007FFE5513B5E8 00000000098FFF50 RtlAcquireSRWLockShared+3E28 00007FFE52978102 00000000098FFF80 BaseThreadInitThunk+22

00007FFE5516C5B4 00000000098FFFD0 RtlUserThreadStart+34

Local Variables And Parameters

Call stack: Address Frame Function SourceFile 000000014039E740 0000000007AFFAF0 Spell::~Spell+40 j:\cmangos\mangos-classic\src\game\spell.cpp line 346 Local 'this' = 0

0000000140416908 0000000007AFFC40 PetAI::UpdateAI+908 j:\cmangos\mangos-classic\src\game\petai.cpp line 323 Local 'this' = 7FF5F4AFE4E0 Parameter unsigned int 'diff' = 0

Phatcat commented 8 years ago

I'm on it.

lduguid commented 8 years ago

I have also seen this crash, the stack trace was very similar. If I notice anything else that would potentially assist in the root cause, I will add an additional comment later with the details.

Phatcat commented 8 years ago

Could I get you guys to try this one out https://github.com/Phatcat/mangos-classic/commit/3f1453d1cb71f919af520a6b593e8c11eca1b12d ?

yyhhrr commented 8 years ago

Thanks for reply.I tested it. But it was not work.Phatcat.

lduguid commented 8 years ago

After applying above modification the server is still crashing under similar circumstances. i.e. warlock pet (Imp in my case) casting a pet spell while the warlock is in a party group. Without trying to complicate matters and perhaps a red herring, previously it seemed to happen when the imp cast a 'group buff' such as fire shield, however the last crash was when the imp used phase shift.

Before Phatcat/mangos-classic@3f1453d stack trace was;

0E0B683 00000000 std::list<SpellEntry const ,std::allocator<SpellEntry const > >::clear+D3 c:\program files (x86)\microsoft visual studio 14.0\vc\include\list line 1513 00E09E36 00000000 std::list<SpellEntry const ,std::allocator<SpellEntry const > >::_Tidy+16 c:\program files (x86)\microsoft visual studio 14.0\vc\include\list line 1891 00DEBEB5 00000000 std::list<SpellEntry const ,std::allocator<SpellEntry const > >::~list<SpellEntry const ,std::allocator<SpellEntry const > >+35 c:\program files (x86)\microsoft visual studio 14.0\vc\include\list line 1101 00DEC05C 00000000 Spell::~Spell+1C e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\spell.cpp line 346 0084D4B6 00000000 Spell::`scalar deleting destructor'+16 00EE553E 00000000 PetAI::UpdateAI+AAE e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\petai.cpp line 323 00776AB2 00000000 Creature::Update+462 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\creature.cpp line 587 007D306B 00000000 Pet::Update+25B e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\pet.cpp line 664 00537BB7 00000000 WorldObject::UpdateHelper::Update+37 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\object.h line 429 007AF504 00000000 MaNGOS::ObjectUpdater::Visit+A4 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\gridnotifiersimpl.h line 47 00792ABF 00000000 VisitorHelperMaNGOS::ObjectUpdater,Creature+F e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 51 00792AE0 00000000 VisitorHelperMaNGOS::ObjectUpdater,Creature,TypeList<Corpse,TypeList<Camera,TypeNull > >+10 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 57 00792C53 00000000 VisitorHelperMaNGOS::ObjectUpdater,Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > >+23 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 58 00792995 00000000 VisitorHelperMaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > >+15 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 65 007AF3BD 00000000 TypeContainerVisitorMaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > > >::Visit+1D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 80 0079048D 00000000 Grid<Player,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull> > > >,TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > >::VisitMaNGOS::ObjectUpdater+1D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\grid.h line 89 00790529 00000000 NGrid<16,Player,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull> > > >,TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > >::VisitMaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > >+29 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\ngrid.h line 157 00790735 00000000 Map::VisitMaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > > >+A5 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\map.h line 460 007AE9E5 00000000 Map::Update+365 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\map.cpp line 510 00B095DD 00000000 MapManager::Update+10D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\mapmanager.cpp line 176 0065F55E 00000000 World::Update+1FE e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\world.cpp line 1376 005DA4D9 00000000 WorldRunnable::run+89 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\mangosd\worldrunnable.cpp line 60 0062AB81 00000000 MaNGOS::Thread::ThreadTask+21 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\shared\threading.cpp line 84

After applying Phatcat/mangos-classic@3f1453d stack trace;

0052DA31 00000000 Object::GetTypeId+11 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\object.h line 158 0074F64F 00000000 Unit::isTargetableForAttack+1F e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\unit.cpp line 6371 00EE6C8E 00000000 PetAI::_needToStop+5E e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\petai.cpp line 101 00EE55AD 00000000 PetAI::UpdateAI+B1D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\petai.cpp line 332 00776AB2 00000000 Creature::Update+462 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\creature.cpp line 587 007D306B 00000000 Pet::Update+25B e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\pet.cpp line 664 00537BB7 00000000 WorldObject::UpdateHelper::Update+37 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\object.h line 429 007AF504 00000000 MaNGOS::ObjectUpdater::Visit+A4 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\gridnotifiersimpl.h line 47 00792ABF 00000000 VisitorHelperMaNGOS::ObjectUpdater,Creature+F e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 51 00792AE0 00000000 VisitorHelperMaNGOS::ObjectUpdater,Creature,TypeList<Corpse,TypeList<Camera,TypeNull > >+10 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 57 00792C53 00000000 VisitorHelperMaNGOS::ObjectUpdater,Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > >+23 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 58 00792995 00000000 VisitorHelperMaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > >+15 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 65 007AF3BD 00000000 TypeContainerVisitorMaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > > >::Visit+1D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\typecontainervisitor.h line 80 0079048D 00000000 Grid<Player,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull> > > >,TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > >::VisitMaNGOS::ObjectUpdater+1D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\grid.h line 89 00790529 00000000 NGrid<16,Player,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull> > > >,TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > >::VisitMaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > >+29 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\framework\gamesystem\ngrid.h line 157 00790735 00000000 Map::VisitMaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeList<Camera,TypeNull > > > > >+A5 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\map.h line 460 007AE9E5 00000000 Map::Update+365 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\map.cpp line 510 00B095DD 00000000 MapManager::Update+10D e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\mapmanager.cpp line 176 0065F55E 00000000 World::Update+1FE e:\home\cmangos_forked_src\playerbots\mangos-classic\src\game\world.cpp line 1376 005DA4D9 00000000 WorldRunnable::run+89 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\mangosd\worldrunnable.cpp line 60 0062AB81 00000000 MaNGOS::Thread::ThreadTask+21 e:\home\cmangos_forked_src\playerbots\mangos-classic\src\shared\threading.cpp line 84

Phatcat commented 8 years ago

Looks like I'm gonna have to actually put in a bit of effort with this issue.... Meeeh.

lduguid commented 8 years ago

As an FYI that may assist in testing/debugging it, you can also duplicate the problem by using playerbots as party members. It may make it easier to debug rather than having multiple clients open to simulate a party scenario.

Phatcat commented 8 years ago

Unable to reproduce:

unavngivet

Phatcat commented 8 years ago

If party member >=2 without warlock.When imp autocast fire shield on >=2 players the server crash.

Wait, are you trying to have a non-warlock have an imp pet and that is causing issues?

Phatcat commented 8 years ago

Cala strangly reported this during my pet patch work as well:

Warlock

After unlearning talents, the warlock I used for tests was able to make his pet casts a spell on a target without crash. Relearning the exact same talents did not make the crash reappears. Strange

Could you guys possibly try that?

Muehe commented 8 years ago

If party member >=2 without warlock.When imp autocast fire shield on >=2 players the server crash.

Wait, are you trying to have a non-warlock have an imp pet and that is causing issues?

From what I understand the group has to have 3+ members for the crash to appear.

Phatcat commented 8 years ago

Ah... So that's what he meant by 'without warlock'... Back in a jiffy.

lduguid commented 8 years ago

As muehe posted, it appears to happen when 2 or more additional party members are added.

Also, I unlearned the warlock talents, server still crashing.

Phatcat commented 8 years ago

unavngivet2

lduguid commented 8 years ago

I cannot speak for yyhhrr's configuration, but after some more testing on my end, I can only reproduce this crash if I am using the latest cmangos (classic) and I have merged the latest playerbots (classic) with it.

I apologize that I forgot to mention that my 'test' server was running with a merged in playerbots (classic), this is how I was creating multiple party members (via .bot add ...). After seeing that you were unable to reproduce it, I created a clean cmangos (classic) build with NO playerbots, created 4 accounts, one with a warlock and and logged into the server via 4 separate clients on each account. I then created a party with four members with a warlock and I was unable to make it to crash. Similar conditions on the other test server with playerbots as party members would have caused a server crash as detailed.

So it would seem that the bug is particular to the latest cmangos merged with the latest playerbots only and not something directly related to the new pet work. Probably something the could be looked into at some stage but I think it makes it much less of a priority.

On that note, your work with pets to date is much appreciated, thanking you for your efforts.

Phatcat commented 8 years ago

@cala bots is your thing as far as I'm aware ^^

cala commented 8 years ago

So, if I understand correctly, this only happens when merging with Playerbot ? If so, the issue should be opened in Playerbot repo, not here.

I'll try to handle it there.

Phatcat commented 8 years ago

@cala You did have a very quick mention of maybe merging the playerbots into the core... I'm into the idea of doing that somewhere down the line when some of the WIPs are done and stabalized.

lduguid commented 8 years ago

As it stands after some investigation, for me at least, I am unable to reproduce the problem with the latest mangos (classic) it is only after merging playerbots and using the bots as party members that this particular server crash happens. Having said that, it makes sense to move it over to the playerbot repo, however @yyhhrr was the creator of this bug it would be prudent if he is able to verify if he was also using a merged playerbots when he was getting the crashes.

cala commented 8 years ago

You did have a very quick mention of maybe merging the playerbots into the core... I'm into the idea of doing that somewhere down the line when some of the WIPs are done and stabalized.

I did mention that maybe we will merge it. But this is still in discussion, to be more accurate, we will discuss this once the things are more stable core-side. There are already many questions associated with such a merging and not only technical ones.

yyhhrr commented 8 years ago

Sorry for my bad english and description .By the way I used the clean cmangos build.To reproduce the issues is some complicate.Can anyone reproduce the issues with the step below. 1.login player warlock Do not summon imp. 2.login other two player and join the party.Confirm the player do not have fire shield buff. 3.player warlock summon imp. then server crash.

Phatcat commented 8 years ago

I'm on it.

And I am able to reproduce... Expect my return! *crawls off to the darkness*

Phatcat commented 8 years ago

Okay, so this is the stack trace I get on this issue;

00DB0F03 00000000 std::list<SpellEntry const ,std::allocator<SpellEntry const > >::clear+D3 c:\program files (x86)\microsoft visual studio 14.0\vc\include\list line 1513 00DAF6B6 00000000 std::list<SpellEntry const ,std::allocator<SpellEntry const > >::_Tidy+16 c:\program files (x86)\microsoft visual studio 14.0\vc\include\list line 1891 00D91185 00000000 std::list<SpellEntry const ,std::allocator<SpellEntry const > >::~list<SpellEntry const ,std::allocator<SpellEntry const > >+35 c:\program files (x86)\microsoft visual studio 14.0\vc\include\list line 1101 00D9132C 00000000 Spell::~Spell+1C c:\mangos\mangos-classic\src\game\spell.cpp line 346 00D937A6 00000000 Spell::scalar deleting destructor'+16 00D91461 00000000 SpellEvent::~SpellEvent+91 c:\mangos\mangos-classic\src\game\spell.cpp line 6070 00D93806 00000000 SpellEvent::scalar deleting destructor'+16 0101710F 00000000 EventProcessor::Update+1FF c:\mangos\mangos-classic\src\framework\utilities\eventprocessor.cpp line 50 007139F1 00000000 Unit::Update+41 c:\mangos\mangos-classic\src\game\unit.cpp line 290 007588FB 00000000 Creature::Update+40B c:\mangos\mangos-classic\src\game\creature.cpp line 578 007B98BB 00000000 Pet::Update+25B c:\mangos\mangos-classic\src\game\pet.cpp line 563

so I wrote a patch, and now I get this stack trace instead;

051C279 00000000 Object::GetUInt64Value+19 c:\mangos\mangos-classic\src\game\object.h line 191 00518D5B 00000000 Object::GetGuidValue+1B c:\mangos\mangos-classic\src\game\object.h line 215 0051A238 00000000 Object::GetObjectGuid+18 c:\mangos\mangos-classic\src\game\object.h line 142 00DAAD3E 00000000 Spell::UpdateOriginalCasterPointer+2E c:\mangos\mangos-classic\src\game\spell.cpp line 5883 00DAAEC6 00000000 Spell::UpdatePointers+16 c:\mangos\mangos-classic\src\game\spell.cpp line 5901 00DB4208 00000000 Spell::update+48 c:\mangos\mangos-classic\src\game\spell.cpp line 2932 00D9E3A5 00000000 SpellEvent::Execute+45 c:\mangos\mangos-classic\src\game\spell.cpp line 6086 010170CF 00000000 EventProcessor::Update+1CF c:\mangos\mangos-classic\src\framework\utilities\eventprocessor.cpp line 47 007139F1 00000000 Unit::Update+41 c:\mangos\mangos-classic\src\game\unit.cpp line 290 007588FB 00000000 Creature::Update+40B c:\mangos\mangos-classic\src\game\creature.cpp line 577 007B98AB 00000000 Pet::Update+25B c:\mangos\mangos-classic\src\game\pet.cpp line 563

Which is just lovely... It tells me I can't use the stack trace for shit with this issue. The server log did contain something interesting, though; (always the last message in the server log with this crash):

2016-06-13 12:47:19 HandlePetNameQuery. CMSG_PET_NAME_QUERY

And.... I do not know jack shit about our message system or client-server communication, I'm pretty sure I did not touch any sort of thing doing the pet patch.

Phatcat commented 8 years ago

Fix is real. Will get pushed in a moment when I've cleaned up.