Jump to content

Crashes MapInstanced::RemoveGridMapReference


Guest Voldemmort

Recommended Posts

I'm having the following crash every 2 ~ 6 hours on my server.

Any idea why?

Thanks in advance.

Revision: * * 9182 ac7ef53cde5b960f3bc31ad87f6db38bba8c998d
Date 15:1:2010. Time 9:8 
//=====================================================
*** Hardware ***
Processor: Intel(R) Xeon(R) CPU           X3220  @ 2.40GHz
Number Of Processors: 4
Physical Memory: 8386128 KB (Available: 5609140 KB)
Commit Charge Limit: 16824544 KB

*** Operation System ***
Windows Vista or Windows Server 2008 Server 4.0 Service Pack 2 (Version 6.0, Build 6002)

//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address:  00000001400D34FE 01:00000000000D24FE D:\\Servidores WoW\\MaNGOS 3.3.0a\\mangosd.exe

Registers:
RAX:0000000000000008
RBX:0000000009745370
RCX:95A39505732B0000
RDX:0000000000000000
RSI:000007FFECF75300
RDI:00000001402C7A20
R8: 000000000002F8B3
R9: 0000000000000000
R10:000007FFEAD04018
R11:0000000000000000
R12:0000000000000000
R13:0000000000000000
R14:0000000000000000
R15:000000000D1C6F30
CS:RIP:0033:00000001400D34FE
SS:RSP:002B:000000000D1C74D0  RBP:00000000
DS:002B  ES:002B  FS:0053  GS:002B
Flags:00010246

Call stack:
Address   Frame     Function      SourceFile
00000001400D34FE  000000000D1C9540  MapInstanced::RemoveGridMapReference+12E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.h line 57
00000001400D3303  000000000D1CF6A0  Map::UnloadGrid+333  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 1114
00000001400D36FE  000000000D1CF750  Map::UnloadAll+16E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 1129
00000001400CCDB7  000000000D1CF950  Map::~Map+57  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 66
00000001400D89C1  000000000D1CF9A0  InstanceMap::~InstanceMap+91  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 2347
00000001400EB245  000000000D1CF9D0  InstanceMap::`vector deleting destructor'+65
0000000140590EB3  000000000D1CFAE0  MapInstanced::DestroyInstance+133  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.cpp line 252
000000014058F955  000000000D1CFB60  MapInstanced::Update+145  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.cpp line 60
000000014032603F  000000000D1CFC50  MapManager::Update+19F  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapmanager.cpp line 266
00000001402A1455  000000000D1CFE00  World::Update+725  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\world.cpp line 1675
000000014003E715  000000000D1CFE40  WorldRunnable::run+A5  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\worldrunnable.cpp line 61
00000001402C7A43  000000000D1CFEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000D1CFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000D1CFF20  _endthreadex+47
0000000074E53080  000000000D1CFF50  _endthreadex+E8
00000000778FBE3D  000000000D1CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000D1CFFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A56D5A  000000000082FA70  NtWaitForSingleObject+A
000000007790C0B0  000000000082FB30  WaitForSingleObjectEx+A0
000007FEF661B64A  000000000082FB60  ?__ace_assert@@YAXPEBDH0@Z+38A
000007FEF669E8E3  000000000082FBE0  ?wait_task@ACE_Thread_Manager@@QEAAHPEAVACE_Task_Base@@@Z+243
00000001402C9523  000000000082FC20  WorldSocketMgr::Wait+63  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\worldsocketmgr.cpp line 313
0000000140038F76  000000000082FEE0  Master::Run+776  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\master.cpp line 322
00000001400387CD  000000000082FF20  main+42D  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\main.cpp line 180
000000014003F0EA  000000000082FF50  __tmainCRTStartup+11A  f:\\dd\\vctools\\crt_bld\\self_64_amd64\\crt\\src\\crtexe.c line 582
00000000778FBE3D  000000000082FF80  BaseThreadInitThunk+D
0000000077A36A51  000000000082FFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A5705A  000000000445FCB0  ZwDelayExecution+A
000000007790C1B8  000000000445FD30  SleepEx+88
00000001402C7CA9  000000000445FD80  ACE_Based::Thread::Sleep+39  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 232
000000014058A975  000000000445FE40  SqlDelayThread::run+35  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\database\\sqldelaythread.cpp line 39
00000001402C7A43  000000000445FEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000445FEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000445FF20  _endthreadex+47
0000000074E53080  000000000445FF50  _endthreadex+E8
00000000778FBE3D  000000000445FF80  BaseThreadInitThunk+D
0000000077A36A51  000000000445FFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A5705A  0000000004C5FCB0  ZwDelayExecution+A
000000007790C1B8  0000000004C5FD30  SleepEx+88
00000001402C7CA9  0000000004C5FD80  ACE_Based::Thread::Sleep+39  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 232
000000014058A975  0000000004C5FE40  SqlDelayThread::run+35  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\database\\sqldelaythread.cpp line 39
00000001402C7A43  0000000004C5FEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  0000000004C5FEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  0000000004C5FF20  _endthreadex+47
0000000074E53080  0000000004C5FF50  _endthreadex+E8
00000000778FBE3D  0000000004C5FF80  BaseThreadInitThunk+D
0000000077A36A51  0000000004C5FFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A5705A  000000000545FCB0  ZwDelayExecution+A
000000007790C1B8  000000000545FD30  SleepEx+88
00000001402C7CA9  000000000545FD80  ACE_Based::Thread::Sleep+39  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 232
000000014058A975  000000000545FE40  SqlDelayThread::run+35  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\database\\sqldelaythread.cpp line 39
00000001402C7A43  000000000545FEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000545FEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000545FF20  _endthreadex+47
0000000074E53080  000000000545FF50  _endthreadex+E8
00000000778FBE3D  000000000545FF80  BaseThreadInitThunk+D
0000000077A36A51  000000000545FFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A579BA  000000000D1C4E40  NtGetContextThread+A
00000000778E2E3A  000000000D1C4E70  GetThreadContext+A
000000014003CFB9  000000000D1C53B0  WheatyExceptionReport::PrintTracesForAllThreads+C9  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\wheatyexceptionreport.cpp line 370
000000014003D386  000000000D1C6420  WheatyExceptionReport::GenerateExceptionReport+396  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\wheatyexceptionreport.cpp line 468
000000014003C61A  000000000D1C66D0  WheatyExceptionReport::WheatyUnhandledExceptionFilter+18A  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\wheatyexceptionreport.cpp line 109
000000007799C9CF  000000000D1C67B0  UnhandledExceptionFilter+15F
0000000077A88120  000000000D1C67E0  RtlCharToInteger+E0
0000000077A495A4  000000000D1C6850  __C_specific_handler+8C
0000000077A45B4D  000000000D1C6880  RtlIntegerToChar+53D
0000000077A49947  000000000D1C6F20  __C_specific_handler+42F
0000000077A56C78  000000000D1C74C0  KiUserExceptionDispatcher+2E
00000001400D34FE  000000000D1C9540  MapInstanced::RemoveGridMapReference+12E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.h line 57
00000001400D3303  000000000D1CF6A0  Map::UnloadGrid+333  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 1114
00000001400D36FE  000000000D1CF750  Map::UnloadAll+16E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 1129
00000001400CCDB7  000000000D1CF950  Map::~Map+57  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 66
00000001400D89C1  000000000D1CF9A0  InstanceMap::~InstanceMap+91  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 2347
00000001400EB245  000000000D1CF9D0  InstanceMap::`vector deleting destructor'+65
0000000140590EB3  000000000D1CFAE0  MapInstanced::DestroyInstance+133  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.cpp line 252
000000014058F955  000000000D1CFB60  MapInstanced::Update+145  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.cpp line 60
000000014032603F  000000000D1CFC50  MapManager::Update+19F  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapmanager.cpp line 266
00000001402A1455  000000000D1CFE00  World::Update+725  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\world.cpp line 1675
000000014003E715  000000000D1CFE40  WorldRunnable::run+A5  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\worldrunnable.cpp line 61
00000001402C7A43  000000000D1CFEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000D1CFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000D1CFF20  _endthreadex+47
0000000074E53080  000000000D1CFF50  _endthreadex+E8
00000000778FBE3D  000000000D1CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000D1CFFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A56F3A  000000000D9CF790  ZwRequestWaitReplyPort+A
0000000077A5A4E9  000000000D9CF7C0  CsrClientCallServer+89
000000007794236C  000000000D9CF920  CloseConsoleHandle+2AC
0000000077966A64  000000000D9CF9F0  ReadConsoleA+64
0000000077919C74  000000000D9CFA80  GetProcAddress+C3D4
0000000074EA07AE  000000000D9CFB20  _wsopen_s+266
0000000074EA0E15  000000000D9CFB80  _read+10D
0000000074E5EB03  000000000D9CFBC0  _filbuf+8F
0000000074E5DF8C  000000000D9CFC30  fgets+198
0000000140013BDA  000000000D9CFE40  CliRunnable::run+BA  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\clirunnable.cpp line 321
00000001402C7A43  000000000D9CFEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000D9CFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000D9CFF20  _endthreadex+47
0000000074E53080  000000000D9CFF50  _endthreadex+E8
00000000778FBE3D  000000000D9CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000D9CFFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A5705A  000000000E1B7990  ZwDelayExecution+A
000000007790C1B8  000000000E1B7A10  SleepEx+88
00000001402C7CA9  000000000E1B7A60  ACE_Based::Thread::Sleep+39  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 232
000000014003982E  000000000E1CFE40  RARunnable::run+25E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\master.cpp line 185
00000001402C7A43  000000000E1CFEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000E1CFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000E1CFF20  _endthreadex+47
0000000074E53080  000000000E1CFF50  _endthreadex+E8
00000000778FBE3D  000000000E1CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000E1CFFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A5705A  000000000E9CFD30  ZwDelayExecution+A
000000007790C1B8  000000000E9CFDB0  SleepEx+88
00000001402C7CA9  000000000E9CFE00  ACE_Based::Thread::Sleep+39  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 232
00000001400393B1  000000000E9CFE40  FreezeDetectorRunnable::run+91  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\mangosd\\master.cpp line 83
00000001402C7A43  000000000E9CFEB0  ACE_Based::Thread::ThreadTask+23  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\shared\\threading.cpp line 186
000007FEF667170B  000000000E9CFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
0000000074E52FDF  000000000E9CFF20  _endthreadex+47
0000000074E53080  000000000E9CFF50  _endthreadex+E8
00000000778FBE3D  000000000E9CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000E9CFFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A56D5A  000000000F1CF880  NtWaitForSingleObject+A
000007FEFD543756  000000000F1CF900  0001:0000000000002756 C:\\Windows\\system32\\MSWSOCK.dll
000007FEFD54F375  000000000F1CFAA0  WSPStartup+6AE5
000007FEFF24668C  000000000F1CFAE0  select+15C
000007FEFF24660D  000000000F1CFBE0  select+DD
000007FEF6628252  000000000F1CFC60  ?wait_for_multiple_events@?$ACE_Select_Reactor_T@V?$ACE_Reactor_Token_T@VACE_Token@@@@@@MEAAHAEAVACE_Select_Reactor_Handle_Set@@PEAVACE_Time_Value@@@Z+132
000007FEF66A0DC0  000000000F1CFCD0  ?handle_events@ACE_TP_Reactor@@UEAAHPEAVACE_Time_Value@@@Z+A0
000007FEF667E55D  000000000F1CFD00  ?run_reactor_event_loop@ACE_Reactor@@QEAAHAEAVACE_Time_Value@@P6AHPEAV1@@Z@Z+4D
00000001402C8E07  000000000F1CFE40  ReactorRunnable::svc+77  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\worldsocketmgr.cpp line 167
000007FEF669A171  000000000F1CFE70  ?svc_run@ACE_Task_Base@@SAKPEAX@Z+41
000007FEF669A72B  000000000F1CFEB0  ?invoke_i@ACE_Thread_Adapter@@EEAAKXZ+4B
000007FEF669A851  000000000F1CFEF0  ?invoke@ACE_Thread_Adapter@@UEAAKXZ+71
0000000074E52FDF  000000000F1CFF20  _endthreadex+47
0000000074E53080  000000000F1CFF50  _endthreadex+E8
00000000778FBE3D  000000000F1CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000F1CFFD0  RtlUserThreadStart+21

Call stack:
Address   Frame     Function      SourceFile
0000000077A56D5A  000000000F9CF880  NtWaitForSingleObject+A
000007FEFD543756  000000000F9CF900  0001:0000000000002756 C:\\Windows\\system32\\MSWSOCK.dll
000007FEFD54F375  000000000F9CFAA0  WSPStartup+6AE5
000007FEFF24668C  000000000F9CFAE0  select+15C
000007FEFF24660D  000000000F9CFBE0  select+DD
000007FEF6628252  000000000F9CFC60  ?wait_for_multiple_events@?$ACE_Select_Reactor_T@V?$ACE_Reactor_Token_T@VACE_Token@@@@@@MEAAHAEAVACE_Select_Reactor_Handle_Set@@PEAVACE_Time_Value@@@Z+132
000007FEF66A0DC0  000000000F9CFCD0  ?handle_events@ACE_TP_Reactor@@UEAAHPEAVACE_Time_Value@@@Z+A0
000007FEF667E55D  000000000F9CFD00  ?run_reactor_event_loop@ACE_Reactor@@QEAAHAEAVACE_Time_Value@@P6AHPEAV1@@Z@Z+4D
00000001402C8E07  000000000F9CFE40  ReactorRunnable::svc+77  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\worldsocketmgr.cpp line 167
000007FEF669A171  000000000F9CFE70  ?svc_run@ACE_Task_Base@@SAKPEAX@Z+41
000007FEF669A72B  000000000F9CFEB0  ?invoke_i@ACE_Thread_Adapter@@EEAAKXZ+4B
000007FEF669A851  000000000F9CFEF0  ?invoke@ACE_Thread_Adapter@@UEAAKXZ+71
0000000074E52FDF  000000000F9CFF20  _endthreadex+47
0000000074E53080  000000000F9CFF50  _endthreadex+E8
00000000778FBE3D  000000000F9CFF80  BaseThreadInitThunk+D
0000000077A36A51  000000000F9CFFD0  RtlUserThreadStart+21
========================
Local Variables And Parameters

Call stack:
Address   Frame     Function      SourceFile
00000001400D34FE  000000000D1C9540  MapInstanced::RemoveGridMapReference+12E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.h line 57
   Local  <user defined> 'this' = D1CB5DC
   Parameter  <user defined> 'p' = 1404815DD

00000001400D3303  000000000D1CF6A0  Map::UnloadGrid+333  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 1114
punting on symbol this
punting on symbol x
punting on symbol y
punting on symbol pForce
   Local  int 'gx' = 0
   Local  int 'gy' = D1CF701
   Local  <user defined> 'grid' = D1CF6E8

00000001400D36FE  000000000D1CF750  Map::UnloadAll+16E  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 1129
punting on symbol i
   Local  <user defined> 'this' = 0
   Parameter  bool 'pForce' = C0

00000001400CCDB7  000000000D1CF950  Map::~Map+57  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 66
   Local  <user defined> 'this' = 100000000

00000001400D89C1  000000000D1CF9A0  InstanceMap::~InstanceMap+91  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\map.cpp line 2347
   Local  <user defined> 'this' = 7FFEE3249A0

00000001400EB245  000000000D1CF9D0  InstanceMap::`vector deleting destructor'+65
   Local  <user defined> 'this' = 7FFFF084000

0000000140590EB3  000000000D1CFAE0  MapInstanced::DestroyInstance+133  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.cpp line 252
   Local  <user defined> 'this' = 7FFECF73BF0
   Parameter  <user defined> 'itr' = 140326205

000000014058F955  000000000D1CFB60  MapInstanced::Update+145  c:\\servidores\\wow\\trabajo actual\\mangos\\src\\game\\mapinstanced.cpp line 60
   Local  <user defined> 'this' = 8C
   Parameter  unsigned int 't' = 7FF00000000

Link to comment
Share on other sites

  • 2 weeks later...

I found how to reproduce this crash.

Go to Obsidian, start Killing the Dragon, when it is about to die disarm the Raid, the countdown will start, kill the boss, loot it, and you are going to be teleported out of the instance, when you are being teleported the server crash.

People do this to Bug the instance and dont have Cooldown in the instances.

Link to comment
Share on other sites

this is the output of some print's and backtrace put when reproducing this crash:

--- RemoveGridMapReference: p(25,30) value = 1
--- getNGrid(38,33,0) = 4a10e00
--- RemoveGridMapReference: p(26,30) value = 1
--- getNGrid(37,33,0) = 49ecda0
--- RemoveGridMapReference: p(26,31) value = 1
--- getNGrid(37,32,0) = 49caf70
--- getNGrid(38,33,1) = 4a10e00
0 GameObjects, 59 Creatures, and 0 Corpses/Bones loaded for grid 2465 on map 615
--- getNGrid(37,32,1) = 49caf70
0 GameObjects, 35 Creatures, and 0 Corpses/Bones loaded for grid 2400 on map 615
WORLD: Send SMSG_THREAT_CLEAR Message
WORLD: Send SMSG_THREAT_CLEAR Message
--- RemoveGridMapReference: p(25,31) value = 1
--- getNGrid(38,32,0) = 4ab3660
--- RemoveGridMapReference: p(26,31) value = 1
--- getNGrid(37,32,0) = 0

Program received signal SIGSEGV, Segmentation fault.
[switching to Thread 0x7ffff17f8910 (LWP 10618)]
0x000000000060422f in Map::SetUnloadReferenceLock(CoordPair<64u> const&, bool)
   ()
(gdb) bt full
#0  0x000000000060422f in Map::SetUnloadReferenceLock(CoordPair<64u> const&, bool) ()
No symbol table info available.
#1  0x00000000005eefaf in MapInstanced::RemoveGridMapReference (
   this=0x4b153e0, x=@0x7ffff17f7eec, y=@0x7ffff17f7ee8, 
   pForce=<value optimized out>) at ../../../src/game/MapInstanced.h:58
No locals.
#2  Map::UnloadGrid (this=0x4b153e0, x=@0x7ffff17f7eec, y=@0x7ffff17f7ee8, 
   pForce=<value optimized out>) at ../../../src/game/Map.cpp:1187
       grid = <value optimized out>
       gx = 26
       __PRETTY_FUNCTION__ = "bool Map::UnloadGrid(const uint32&, const uint32&, bool)"
#3  0x00000000005ef10b in Map::UnloadAll (this=0x4b153e0, 
   pForce=<value optimized out>) at ../../../src/game/Map.cpp:1204
       grid = <value optimized out>
#4  0x00000000005efc76 in ~Map (this=0x4b153e0, 
   __in_chrg=<value optimized out>) at ../../../src/game/Map.cpp:65
No locals.
#5  0x00000000005f00bd in ~InstanceMap (this=0x4b153e0, 
   __in_chrg=<value optimized out>) at ../../../src/game/Map.cpp:2417
No locals.
#6  0x00000000007c517e in MapInstanced::DestroyInstance (this=0x4969250,

looks like a null pointer bug. probabily a check would do, but really dont know what this piece of code does

edit: this seems to solve it:

diff --git a/src/game/Map.h b/src/game/Map.h
index 6e68529..46dcc7d 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -477,7 +477,7 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
        void SendObjectUpdates();
        std::set<Object *> i_objectsToClientUpdate;
    protected:
-        void SetUnloadReferenceLock(const GridPair &p, bool on) { getNGrid(p.x_coord, p.y_coord)->setUnloadReferenceLock(on); }
+        void SetUnloadReferenceLock(const GridPair &p, bool on) { if (getNGrid(p.x_coord, p.y_coord)) getNGrid(p.x_coord, p.y_coord)->setUnloadReferenceLock(on); }

        typedef MaNGOS::ObjectLevelLockable<Map, ACE_Thread_Mutex>::Lock Guard;

Link to comment
Share on other sites

  • 1 month later...
I found how to reproduce this crash.

Go to Obsidian, start Killing the Dragon, when it is about to die disarm the Raid, the countdown will start, kill the boss, loot it, and you are going to be teleported out of the instance, when you are being teleported the server crash.

People do this to Bug the instance and dont have Cooldown in the instances.

Confirmed, bug with cooldown still exists in 9556. But it doesn't crashes for me. Bug is easy to reproduce... we need to make a fix :/

Link to comment
Share on other sites

  • 7 months later...
this is the output of some print's and backtrace put when reproducing this crash:

[code=diff]diff --git a/src/game/Map.h b/src/game/Map.h
index 6e68529..46dcc7d 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -477,7 +477,7 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
        void SendObjectUpdates();
        std::set<Object *> i_objectsToClientUpdate;
    protected:
-        void SetUnloadReferenceLock(const GridPair &p, bool on) { getNGrid(p.x_coord, p.y_coord)->setUnloadReferenceLock(on); }
+        void SetUnloadReferenceLock(const GridPair &p, bool on) { if (getNGrid(p.x_coord, p.y_coord)) getNGrid(p.x_coord, p.y_coord)->setUnloadReferenceLock(on); }

        typedef MaNGOS::ObjectLevelLockable<Map, ACE_Thread_Mutex>::Lock Guard;

I know that this post is quite old, but with this patch, UnloadGrid crashes would be fixed?

Thank you

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use