mangos-zero/server — pull request #15 by Psimage (2011-11-09 04:52:10+00:00)
Title: Fixed a crash on closing mangosd.exe

Crash log:

Revision: * * 1809 *
Date 8:11:2011. Time 17:11
//=====================================================
*** Hardware ***
Processor: Intel(R) Celeron(R) M CPU 520 @ 1.60GHz
Number Of Processors: 1
Physical Memory: 2087024 KB (Available: 1133052 KB)
Commit Charge Limit: 2701204 KB

*** Operation System ***
Microsoft Windows XP Professional Service Pack 3 (Version 5.1, Build 2600)

//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address: 0090F629 02:000BB629 D:\MaNGOS\zero_dev\Mangos_Server\bin\Win32_Debug\mangosd.exe

Registers:
EAX:E5E5E5E9
EBX:020EB150
ECX:E5E5E5E5
EDX:78CC5600
ESI:02F9FE70
EDI:02F9FD04
CS:EIP:001B:0090F629
SS:ESP:0023:02F9FCBC EBP:02F9FD10
DS:0023 ES:0023 FS:003B GS:0000
Flags:00010246

Call stack:
Address Frame Function SourceFile
0090F629 00000000

With some debug magic i found that BattleGroundMng tries to erase some not existing data.
New problem

After shutdown command (or restart), mangosd.exe proccess freezes (he still works but eats all CPU time) and not exiting by himself (if i click "close" button it closes process). Debug shows that it start freezing after "exit(code)" function (after executing main).