AI crashes

Bug #1330070 reported by SirVer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Critical
Unassigned

Bug Description

I started an AI only game with 1 barbarian, 1 empire, 1 atlantean on 'The Thaw'. I set the speed to x25 and the game crashed nearly immediately with this error:

Process: widelands [52586]
Path: /Users/USER/Desktop/*/widelands
Identifier: widelands
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [34264]
Responsible: iTerm [1220]
User ID: 501

Date/Time: 2014-06-14 15:50:36.484 +0200
OS Version: Mac OS X 10.9.3 (13D65)
Report Version: 11
Anonymous UUID: B474EE40-A99F-4E8D-D5E5-A357DAA3C2D3

Sleep/Wake UUID: 2676A5C3-1157-40AF-833D-4C13D6E433F9

Crashed Thread: 1 Dispatch queue: com.apple.libdispatch-manager

Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Thread 0:: Dispatch queue: com.apple.main-thread
0 widelands 0x000000010643e7bb DefaultAI::check_productionsites(int) + 2827
1 widelands 0x0000000106436041 DefaultAI::think() + 401
2 widelands 0x000000010690c6e3 NetHost::think() + 643
3 widelands 0x00000001066c4100 Widelands::Game::think() + 112
4 widelands 0x0000000106c7b551 Interactive_Base::think() + 673
5 widelands 0x0000000106a5d223 UI::Panel::do_think() + 51
6 widelands 0x0000000106a5cd6d UI::Panel::run() + 925
7 widelands 0x00000001066c07a9 Widelands::Game::run(UI::ProgressWindow*, Widelands::Game::Start_Game_Type, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 5193
8 widelands 0x0000000106908bf7 NetHost::run(bool) + 12775
9 widelands 0x0000000106b9b6b0 WLApplication::mainmenu_multiplayer() + 1824
10 widelands 0x0000000106b92533 WLApplication::mainmenu() + 3283
11 widelands 0x0000000106b9026a WLApplication::run() + 9578
12 widelands 0x0000000106430edc SDL_main + 1804
13 widelands 0x0000000106d5b2b8 -[SDLMain applicationDidFinishLaunching:] + 49
14 com.apple.CoreFoundation 0x00007fff8fc79e0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
15 com.apple.CoreFoundation 0x00007fff8fb6d8dd _CFXNotificationPost + 2893
16 com.apple.Foundation 0x00007fff91f807ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
17 com.apple.AppKit 0x00007fff8ef53b89 -[NSApplication _postDidFinishNotification] + 289
18 com.apple.AppKit 0x00007fff8ef538bc -[NSApplication _sendFinishLaunchingNotification] + 195
19 com.apple.AppKit 0x00007fff8ef507a6 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 570
20 com.apple.AppKit 0x00007fff8ef501fb -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 242
21 com.apple.Foundation 0x00007fff91f9ef0a -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 294
22 com.apple.Foundation 0x00007fff91f9ed7d _NSAppleEventManagerGenericHandler + 106
23 com.apple.AE 0x00007fff90c6ee1f aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 381
24 com.apple.AE 0x00007fff90c6ec32 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31
25 com.apple.AE 0x00007fff90c6eb36 aeProcessAppleEvent + 315
26 com.apple.HIToolbox 0x00007fff90833161 AEProcessAppleEvent + 56
27 com.apple.AppKit 0x00007fff8ef4c0d6 _DPSNextEvent + 1026
28 com.apple.AppKit 0x00007fff8ef4b8bb -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
29 com.apple.AppKit 0x00007fff8ef3f9bc -[NSApplication run] + 553
30 widelands 0x0000000106d5b8dc main + 1305
31 libdyld.dylib 0x00007fff977355fd start + 1

Thread 1 Crashed:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff92700662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8a91a421 _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff8a91a136 _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x00007fff926fba1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff926fad18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff8fbcdfc5 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff8fbcd5e9 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff8fbccf25 CFRunLoopRunSpecific + 309
5 com.apple.AppKit 0x00007fff8f0ec05e _NSEventThread + 144
6 libsystem_pthread.dylib 0x00007fff9238e899 _pthread_body + 138
7 libsystem_pthread.dylib 0x00007fff9238e72a _pthread_start + 137
8 libsystem_pthread.dylib 0x00007fff92392fc9 thread_start + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff926ffe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9238ff08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff92392fb9 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff926ffe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9238ff08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff92392fb9 start_wqthread + 13

Thread 1 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000004 rbx: 0x00007fff7a418900 rcx: 0x00000001078a55c8 rdx: 0x0000000000000001
  rdi: 0x0000000000000003 rsi: 0x00007fff7a419130 rbp: 0x00000001078a5650 rsp: 0x00000001078a55c8
   r8: 0x0000000000000001 r9: 0x0000000000000000 r10: 0x00000001078a55e0 r11: 0x0000000000000246
  r12: 0x00007fff7a4189c0 r13: 0x00000001078a5610 r14: 0x00000001078a55e0 r15: 0x00007fff8a92cc10
  rip: 0x00007fff92700662 rfl: 0x0000000000000247 cr2: 0x000000010386f000

Logical CPU: 0
Error Code: 0x02000171
Trap Number: 133

Binary Images:
       0x10642a000 - 0x106e54fff +widelands (0) <E4EE0A98-9DC6-3323-B45E-3B28635D0E7A> /Users/USER/Desktop/*/widelands
       0x107377000 - 0x1073b1ff7 +libSDL-1.2.0.dylib (0) <E36FC1B1-A913-373D-AC5D-65E26D4E5972> /usr/local/lib/libSDL-1.2.0.dylib
       0x1073c6000 - 0x1073cefff +libSDL_image-1.2.0.dylib (0) <3B0785BE-DD1B-3A85-92C6-DAE393ED0F1F> /usr/local/lib/libSDL_image-1.2.0.dylib
       0x1073e8000 - 0x1073fffff +libSDL_mixer-1.2.0.dylib (0) <AB226660-3A5C-3A35-90C5-63AA8270711D> /usr/local/lib/libSDL_mixer-1.2.0.dylib
       0x107431000 - 0x107433fff +libSDL_net-1.2.0.dylib (0) <0B2B8F3D-6BD4-3491-8316-248A9D124501> /usr/local/Cellar/sdl_net/1.2.8/lib/libSDL_net-1.2.0.dylib
       0x10743c000 - 0x10743ffff +libSDL_ttf-2.0.0.dylib (0) <E7FADC8D-008A-3FC8-869B-04AB142AE23F> /usr/local/lib/libSDL_ttf-2.0.0.dylib
       0x107449000 - 0x107457fff +libSDL_gfx.13.dylib (0) <54926D5D-A658-3389-A769-D0F539760CD0> /usr/local/lib/libSDL_gfx.13.dylib
       0x10745f000 - 0x10747bff7 +libpng15.15.dylib (0) <034BD618-6BE8-3F1A-8E54-17574993EF33> /usr/local/lib/libpng15.15.dylib
       0x107483000 - 0x1074acfff +libGLEW.1.9.0.dylib (0) <D12E2FC7-E96F-3977-A8C1-C9ACA06BF27E> /usr/local/lib/libGLEW.1.9.0.dylib
       0x1074da000 - 0x10756efff +libboost_regex-mt.dylib (0) <0777B883-6486-3CF8-BAE9-9D6CF53D6BE6> /usr/local/lib/libboost_regex-mt.dylib
       0x10760f000 - 0x107617fff +libintl.8.dylib (0) <6F98D6B0-01F9-3FDC-BADF-462349031CC9> /usr/local/opt/gettext/lib/libintl.8.dylib
       0x10761d000 - 0x107687ff7 +libfreetype.6.dylib (0) <12DACCDC-0894-3FC7-9B7A-2115F321D3A8> /usr/local/lib/libfreetype.6.dylib
       0x1076a3000 - 0x1076a7fff com.apple.agl (3.2.3 - AGL-3.2.3) <9851E4CC-DA6B-3AF4-9B06-61BAC289572D> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
       0x1076b2000 - 0x1077a9fff +libiconv.2.dylib (0) <0EA295CD-909B-3977-BE72-EAA991807295> /usr/local/opt/libiconv/lib/libiconv.2.dylib
       0x10a277000 - 0x10a27affa libCGXType.A.dylib (599.23.13) <E459DD26-592F-3DBD-8C47-B342ECE8FFD3> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
       0x10a293000 - 0x10a29bff3 libCGCMS.A.dylib (599.23.13) <59F7AEED-90EB-35C2-85A6-5BC44CC9B3FA> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS.A.dylib
       0x10a2e4000 - 0x10a30cffb libRIP.A.dylib (599.23.13) <FFE421E6-CB15-3F9D-ADF4-679E26B09892> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
       0x10a35c000 - 0x10a385fff GLRendererFloat (9.6.1) <23A2C705-F932-335D-B27B-565A30333460> /System/Library/Frameworks/OpenGL.framework/Resources/GLRendererFloat.bundle/GLRendererFloat
       0x10b897000 - 0x10ba37ff7 GLEngine (9.6.1) <28300FBD-E3B2-35D2-BB54-77DCE62FC371> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
       0x10ec11000 - 0x10ede2fff com.apple.audio.units.Components (1.10 - 1.10) <F74A9407-DDB5-3C4F-A051-47643871ED93> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
       0x10ee8d000 - 0x10ee91ffd com.apple.audio.AppleHDAHALPlugIn (2.6.1 - 2.6.1f2) <E5405175-7735-3F30-97ED-F44645033DC7> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
       0x10ef66000 - 0x10ef6afff +libvorbisfile.dylib (0) <E8B6C532-6CF6-3352-BF56-CFEA2D7FFBD1> /usr/local/lib/libvorbisfile.dylib
       0x10ef6e000 - 0x10ef92ff7 +libvorbis.0.dylib (0) <FD6554A8-1701-3EAB-B6A8-922BEF71634F> /usr/local/Cellar/libvorbis/1.3.3/lib/libvorbis.0.dylib
       0x10ef97000 - 0x10ef9aff7 +libogg.0.dylib (0) <ECA8A5EF-E4BE-3325-A858-913973BA1AB4> /usr/local/lib/libogg.0.dylib
       0x10f165000 - 0x10f194ff7 +libjpeg.dylib (0) <9EC07360-CF18-3529-AE54-E60DBF1313DC> /usr/local/lib/libjpeg.dylib
    0x123400000000 - 0x12340047bff7 com.apple.driver.AppleIntelHD4000GraphicsGLDriver (8.26.34 - 8.2.6) <2CE55DC0-8526-319A-A8C2-02076F2A926B> /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver
    0x123440000000 - 0x123440882ff7 com.apple.GeForceGLDriver (8.26.21 - 8.2.6) <0E68237A-C5FF-32D6-A178-80E932C34CF3> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
    0x7fff69bd6000 - 0x7fff69c09817 dyld (239.4) <042C4CED-6FB2-3B1C-948B-CAF2EE3B9F7A> /usr/lib/dyld
    0x7fff89a80000 - 0x7fff89a8dff4 com.apple.Librarian (1.2 - 1) <F1A2744D-8536-32C7-8218-9972C6300DAE> /System/Library/PrivateFrameworks/Librarian.framework/Versions/A/Librarian
    0x7fff89a8e000 - 0x7fff89afbfff com.apple.SearchKit (1.4.0 - 1.4.0) <B9B8D510-A27E-36B0-93E9-17146D9E9045> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff89b63000 - 0x7fff89b7eff7 libCRFSuite.dylib (34) <FFAE75FA-C54E-398B-AA97-18164CD9789D> /usr/lib/libCRFSuite.dylib
    0x7fff89b7f000 - 0x7fff89b90ff7 libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
    0x7fff89b91000 - 0x7fff89beafff libTIFF.dylib (1043) <D7CAE68F-6087-3B40-9CB8-EC6DB47BF877> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff89bff000 - 0x7fff89bffffd libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff89c0d000 - 0x7fff89c15fff libsystem_dnssd.dylib (522.90.2) <A0B7CF19-D9F2-33D4-8107-A62184C9066E> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff89c5c000 - 0x7fff89cbfffb com.apple.SystemConfiguration (1.13.1 - 1.13.1) <2C8E1A73-5AD6-3A7D-8ED8-D6755555A993> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff89cc0000 - 0x7fff89cecfff com.apple.CoreServicesInternal (184.9 - 184.9) <4DEA54F9-81D6-3EDB-AA3C-1F9C497B3379> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff89d59000 - 0x7fff89d5afff libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
    0x7fff89d5b000 - 0x7fff89d9cfff com.apple.PerformanceAnalysis (1.47 - 47) <7B73DFF4-75DB-3403-80D2-0F3FE48764C3> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff89e80000 - 0x7fff89f6ffff libFontParser.dylib (111.1) <835A8253-6AB9-3AAB-9CBF-171440DEC486> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff89f7a000 - 0x7fff89f7cfff com.apple.EFILogin (2.0 - 2) <C360E8AF-E9BB-3BBA-9DF0-57A92CEF00D4> /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
    0x7fff89f7d000 - 0x7fff8a041ff7 com.apple.backup.framework (1.5.3 - 1.5.3) <088FEDED-BF5C-33F4-A51A-646C8149BDAA> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff8a042000 - 0x7fff8a052ffb libsasl2.2.dylib (170) <C8E25710-68B6-368A-BF3E-48EC7273177B> /usr/lib/libsasl2.2.dylib
    0x7fff8a917000 - 0x7fff8a931fff libdispatch.dylib (339.92.1) <C4E4A18D-3C3B-3C9C-8709-A4270D998DE7> /usr/lib/system/libdispatch.dylib
    0x7fff8a932000 - 0x7fff8a970ff7 libGLImage.dylib (9.6.1) <5E02B38C-9F36-39BE-8746-724F0D8BBFC0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff8a971000 - 0x7fff8a996ff7 com.apple.ChunkingLibrary (2.0 - 155.1) <B845DC7A-D1EA-31E2-967C-D1FE0C628036> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff8add2000 - 0x7fff8adf6fff libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
    0x7fff8ae20000 - 0x7fff8ae73fff com.apple.ScalableUserInterface (1.0 - 1) <CF745298-7373-38D2-B3B1-727D5A569E48> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
    0x7fff8ae74000 - 0x7fff8afdafff libGLProgrammability.dylib (9.6.1) <07700B99-8542-32D7-BB96-29472EFE75EF> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
    0x7fff8afdb000 - 0x7fff8afe8fff com.apple.Sharing (132.2 - 132.2) <F983394A-226D-3244-B511-FA51FDB6ADDA> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
    0x7fff8afe9000 - 0x7fff8b075ff7 com.apple.ink.framework (10.9 - 207) <8A50B893-AD03-3826-8555-A54FEAF08F47> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff8b171000 - 0x7fff8b255fff com.apple.coreui (2.1 - 231) <432DB40C-6B7E-39C8-9FB5-B95917930056> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff8b34b000 - 0x7fff8b370ff7 com.apple.CoreVideo (1.8 - 117.2) <4674339E-26D0-35FA-9958-422832B39B12> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff8b371000 - 0x7fff8b371fff com.apple.ApplicationServices (48 - 48) <3E3F01A8-314D-378F-835E-9CC4F8820031> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff8b372000 - 0x7fff8b37bffd com.apple.CommonAuth (4.0 - 2.0) <32BA436F-6319-3A0B-B5D2-2EB75FF36B5B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff8b37c000 - 0x7fff8b37cfff com.apple.Accelerate (1.9 - Accelerate 1.9) <509BB27A-AE62-366D-86D8-0B06D217CF56> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff8b585000 - 0x7fff8b855ffc com.apple.CoreImage (9.2.8) <1509987F-5671-3AE3-91C7-18E952ED90C7> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff8b856000 - 0x7fff8b857fff com.apple.TrustEvaluationAgent (2.0 - 25) <334A82F4-4AE4-3719-A511-86D0B0723E2B> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff8b858000 - 0x7fff8b8a9ff3 com.apple.audio.CoreAudio (4.2.0 - 4.2.0) <BF4C2FE3-8BC8-30D1-8347-2A7221268794> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff8b99e000 - 0x7fff8b9b0fff com.apple.ImageCapture (9.0 - 9.0) <BE0B65DA-3031-359B-8BBA-B9803D4ADBF4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff8b9cf000 - 0x7fff8b9d1ff7 libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
    0x7fff8b9d2000 - 0x7fff8b9eaff7 com.apple.openscripting (1.4 - 157) <B3B037D7-1019-31E6-9D17-08E699AF3701> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff8b9eb000 - 0x7fff8ba50ffb com.apple.Heimdal (4.0 - 2.0) <F34D6627-9F80-3823-8B57-DB629307DF87> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff8ba51000 - 0x7fff8ba53fff libRadiance.dylib (1043) <9813995C-DEAA-3992-8DF8-320E4E4E288B> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff8ba59000 - 0x7fff8babdfff com.apple.datadetectorscore (5.0 - 354.4) <37093186-6019-3071-8D67-F3EF429F8F08> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff8bacc000 - 0x7fff8bad5ff7 libcldcpuengine.dylib (2.3.58) <E3A84FEC-4060-39C2-A469-159A443D2B6D> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
    0x7fff8bad6000 - 0x7fff8bb06fff com.apple.IconServices (25 - 25.17) <4751127E-FBD5-3ED5-8510-08D4E4166EFE> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff8bb07000 - 0x7fff8bb09ffb libutil.dylib (34) <DAC4A6CF-A1BB-3874-9569-A919316D30E8> /usr/lib/libutil.dylib
    0x7fff8bb90000 - 0x7fff8bb97fff com.apple.NetFS (6.0 - 4.0) <8E26C099-CE9D-3819-91A2-64EA929C6137> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff8c01d000 - 0x7fff8c10eff9 libiconv.2.dylib (41) <BB44B115-AC32-3877-A0ED-AEC6232A4563> /usr/lib/libiconv.2.dylib
    0x7fff8c10f000 - 0x7fff8c119ff7 libcsfde.dylib (380) <A5CF6F85-0537-399F-968B-1536B1235E65> /usr/lib/libcsfde.dylib
    0x7fff8c11a000 - 0x7fff8c1dcff5 com.apple.CoreText (367.20 - 367.20) <B80D086D-93A9-3C35-860E-9C3FDD027F3B> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff8c203000 - 0x7fff8c207ff7 libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
    0x7fff8c208000 - 0x7fff8c241ff7 com.apple.QD (3.50 - 298) <C1F20764-DEF0-34CF-B3AB-AB5480D64E66> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff8c24a000 - 0x7fff8c285fff com.apple.bom (14.0 - 193.1) <EF24A562-6D3C-379E-8B9B-FAE0E4A0EF7C> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x7fff8c286000 - 0x7fff8c38cff7 com.apple.ImageIO.framework (3.3.0 - 1043) <C4ADE5B1-A540-34E1-A043-118185489C9D> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff8c3b1000 - 0x7fff8c3b4ffc com.apple.IOSurface (91.1 - 91.1) <D00EEB0C-8AA8-3986-90C1-C97B2486E8FA> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff8c3b5000 - 0x7fff8c3b7ff3 libsystem_configuration.dylib (596.15) <4998CB6A-9D54-390A-9F57-5D1AC53C135C> /usr/lib/system/libsystem_configuration.dylib
    0x7fff8c440000 - 0x7fff8c487ff7 libcups.2.dylib (372.4) <36EA4350-43B4-3A5C-9904-10685BFDA7D4> /usr/lib/libcups.2.dylib
    0x7fff8c488000 - 0x7fff8c518ff7 com.apple.Metadata (10.7.0 - 800.28) <E85AEB1B-CB17-38BC-B5C6-AAB50B47AF05> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff8c519000 - 0x7fff8c5c9ff7 libvMisc.dylib (423.32) <049C0735-1808-39B9-943F-76CB8021744F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff8c5ca000 - 0x7fff8c5d8fff com.apple.opengl (9.6.1 - 9.6.1) <B22FA400-5824-36AF-9945-5FEC31995A0E> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff8c5d9000 - 0x7fff8c749ff4 com.apple.CFNetwork (673.4 - 673.4) <F3BF6020-99BE-3844-A7B8-352B93AD02F3> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff8c8d4000 - 0x7fff8c8d5ff7 libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8c8d6000 - 0x7fff8cd09ffb com.apple.vision.FaceCore (3.0.0 - 3.0.0) <F42BFC9C-0B16-35EF-9A07-91B7FDAB7FC5> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff8cddb000 - 0x7fff8cde0ff7 libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
    0x7fff8cde1000 - 0x7fff8cf7dff3 com.apple.QuartzCore (1.8 - 332.3) <72003E51-1287-395B-BCBC-331597D45C5E> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff8d4c5000 - 0x7fff8d54efff com.apple.ColorSync (4.9.0 - 4.9.0) <B756B908-9AD1-3F5D-83F9-7A0B068387D2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff8d8f5000 - 0x7fff8d906ff7 libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
    0x7fff8e06a000 - 0x7fff8e06aff7 libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
    0x7fff8e2f8000 - 0x7fff8e308fff libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
    0x7fff8e309000 - 0x7fff8e30dff7 libGIF.dylib (1043) <AF0FE71A-27AB-31E0-8CEA-BC0BF2091FA8> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff8e30e000 - 0x7fff8e337fff com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff8e3a4000 - 0x7fff8e475ff1 com.apple.DiskImagesFramework (10.9 - 371.1) <B26C8237-52E0-3E93-A2E2-147B57B3292E> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
    0x7fff8e476000 - 0x7fff8e478fff libCVMSPluginSupport.dylib (9.6.1) <FB37F4C4-1E84-3349-BB03-92CA0A5F6837> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff8e479000 - 0x7fff8e484fff libGPUSupportMercury.dylib (9.6.1) <A34D5C51-28E0-398A-881D-552B47D2DD3C> /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib
    0x7fff8e488000 - 0x7fff8e488fff com.apple.Carbon (154 - 157) <45A9A40A-78FF-3EA0-8FAB-A4F81052FA55> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff8e4d0000 - 0x7fff8e5bafff libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
    0x7fff8e5db000 - 0x7fff8e5eaff8 com.apple.LangAnalysis (1.7.0 - 1.7.0) <8FE131B6-1180-3892-98F5-C9C9B79072D4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff8e5ef000 - 0x7fff8e62efff libGLU.dylib (9.6.1) <AE032555-3E2F-3DBF-A26D-EA4576061605> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff8e62f000 - 0x7fff8e6b8ff7 libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
    0x7fff8e6b9000 - 0x7fff8e901ff7 com.apple.CoreData (107 - 481.3) <E78734AA-E3D0-33CB-A014-620BBCAB2E96> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff8ec0f000 - 0x7fff8eceefff libcrypto.0.9.8.dylib (50) <B95B9DBA-39D3-3EEF-AF43-44608B28894E> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff8eead000 - 0x7fff8eedcfd2 libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
    0x7fff8eedd000 - 0x7fff8ef04ffb libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
    0x7fff8ef28000 - 0x7fff8fa9eff7 com.apple.AppKit (6.9 - 1265.20) <D2A7AF23-0FEA-3D7D-9CF5-B4E262224577> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff8fb59000 - 0x7fff8fb5cfff libCoreVMClient.dylib (58.1) <EBC36C69-C896-3C3D-8589-3E9023E7E56F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8fb5d000 - 0x7fff8fd42fff com.apple.CoreFoundation (6.9 - 855.16) <A63E680E-E4B2-368B-8564-9DBE0D8DDB91> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8fdc8000 - 0x7fff8fdfdffc com.apple.LDAPFramework (2.4.28 - 194.5) <4ADD0595-25B9-3F09-897E-3FB790AD2C5A> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x7fff8fdfe000 - 0x7fff900d2fc7 com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff90134000 - 0x7fff901a7fff com.apple.securityfoundation (6.0 - 55122.1) <D5AA4461-7406-3054-875D-0EDA3A6030EA> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff90237000 - 0x7fff9023fffc libGFXShared.dylib (9.6.1) <25BBF325-AC57-3BAA-9427-2D14CC243AE6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff9025a000 - 0x7fff9029fff6 com.apple.HIServices (1.23 - 468) <5970AF5C-F5BD-3B6A-97C9-95B2CA98D71D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff902a0000 - 0x7fff902edff2 com.apple.print.framework.PrintCore (9.0 - 428) <8D8253E3-302F-3DB2-9C5C-572CB974E8B3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff9069e000 - 0x7fff906a2fff com.apple.IOAccelerator (98.20 - 98.20) <D62AE4C8-E4BD-3924-826D-7D8D07F9EDEB> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x7fff906a3000 - 0x7fff907f7ff3 com.apple.audio.toolbox.AudioToolbox (1.10 - 1.10) <69B273E8-5A8E-3FC7-B807-C16B657662FE> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff907f8000 - 0x7fff90aa2ff5 com.apple.HIToolbox (2.1.1 - 698) <A388E773-AE7B-3FD1-8662-A98E6E24EA16> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff90aa3000 - 0x7fff90c11ff7 libBLAS.dylib (1094.5) <DE93A590-5FA5-32A2-A16C-5D7D7361769F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff90c61000 - 0x7fff90cbcffb com.apple.AE (665.5 - 665.5) <BBA230F9-144C-3CAB-A77A-0621719244CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff90cbd000 - 0x7fff9140cfff libclh.dylib (4.0.3 - 4.0.3) <2638412A-FB15-3BA8-9E11-5A1D778AB52E> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
    0x7fff9140d000 - 0x7fff91431ff7 libJPEG.dylib (1043) <25723F3F-48A6-3AC5-A7A3-58E418FEBF3F> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff91432000 - 0x7fff91480ff7 com.apple.opencl (2.3.59 - 2.3.59) <044485A4-A50C-34CE-A1F9-35A50CC68313> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff914bf000 - 0x7fff914d7ff7 com.apple.GenerationalStorage (2.0 - 160.3) <64749B08-0212-3AC8-9B49-73D662B09304> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff9177a000 - 0x7fff91861ff7 libxml2.2.dylib (26) <A1DADD11-89E5-3DE4-8802-07186225967F> /usr/lib/libxml2.2.dylib
    0x7fff91bc9000 - 0x7fff91bf0ff7 libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
    0x7fff91bf1000 - 0x7fff91ca9ff7 com.apple.DiscRecording (8.0 - 8000.4.6) <CDAAAD04-A1D0-3C67-ABCC-EFC9E8D44E7E> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
    0x7fff91caa000 - 0x7fff91cabff7 libsystem_sandbox.dylib (278.11) <B46E4040-A8C6-3EBC-91F8-F1CB01106614> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff91f7e000 - 0x7fff9227cfff com.apple.Foundation (6.9 - 1056.13) <2EE9AB07-3EA0-37D3-B407-4A520F2CB497> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff9227d000 - 0x7fff922c2fff libcurl.4.dylib (78.92.2) <FE790105-B56B-3972-96F4-E133764FF735> /usr/lib/libcurl.4.dylib
    0x7fff9235a000 - 0x7fff92373ff7 com.apple.Ubiquity (1.3 - 289) <C7F1B734-CE81-334D-BE41-8B20D95A1F9B> /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
    0x7fff9238d000 - 0x7fff92394ff7 libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
    0x7fff92395000 - 0x7fff92542f27 libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
    0x7fff92543000 - 0x7fff92543fff com.apple.Accelerate.vecLib (3.9 - vecLib 3.9) <F8D0CC77-98AC-3B58-9FE6-0C25421827B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff926ea000 - 0x7fff92706ff7 libsystem_kernel.dylib (2422.100.13) <498AEBD7-4194-3CF2-AA16-D5D03FFBD8C0> /usr/lib/system/libsystem_kernel.dylib
    0x7fff92709000 - 0x7fff9271bff7 com.apple.MultitouchSupport.framework (245.13 - 245.13) <E51DE5CA-9859-3C13-A24F-37EF4385C1D6> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff9273a000 - 0x7fff92745ff7 com.apple.NetAuth (5.0 - 5.0) <C811E662-9EC3-3B74-808A-A75D624F326B> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff92746000 - 0x7fff92876ff7 com.apple.desktopservices (1.8.3 - 1.8.3) <225BEC20-F8E0-3F22-9560-890A1A5B9050> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff928ac000 - 0x7fff928b3ff8 liblaunch.dylib (842.90.1) <38D1AB2C-A476-385F-8EA8-7AB604CA1F89> /usr/lib/system/liblaunch.dylib
    0x7fff928b4000 - 0x7fff928b4ffd com.apple.audio.units.AudioUnit (1.10 - 1.10) <68B21135-55A6-3563-A3D6-3E692A7DEB7F> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff928b5000 - 0x7fff928d1fff libresolv.9.dylib (54) <11C2C826-F1C6-39C6-B4E8-6E0C41D4FA95> /usr/lib/libresolv.9.dylib
    0x7fff928d2000 - 0x7fff92cb3ffe libLAPACK.dylib (1094.5) <7E7A9B8D-1638-3914-BAE0-663B69865986> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff92cb4000 - 0x7fff92d7ffff libvDSP.dylib (423.32) <3BF732BE-DDE0-38EB-8C54-E4E3C64F77A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff92d80000 - 0x7fff92d8cff3 com.apple.AppleFSCompression (56 - 1.0) <5652B0D0-EB08-381F-B23A-6DCF96991FB5> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff92d8d000 - 0x7fff92dc1fff libssl.0.9.8.dylib (50) <B15F967C-B002-36C2-9621-3456D8509F50> /usr/lib/libssl.0.9.8.dylib
    0x7fff92dc2000 - 0x7fff92f7affb libicucore.A.dylib (511.32) <A7CE7DAD-D3AD-36A2-BE4F-25C5F21FADBB> /usr/lib/libicucore.A.dylib
    0x7fff92f7b000 - 0x7fff92f86fff libkxld.dylib (2422.100.13) <67D079F8-6C48-3F42-9FBE-26F1ADA03DC4> /usr/lib/system/libkxld.dylib
    0x7fff930b7000 - 0x7fff930b8ffb libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
    0x7fff930f9000 - 0x7fff930fdff7 libsystem_stats.dylib (93.90.3) <4E51D5B0-92A0-3D0D-B90E-495A1ED3E391> /usr/lib/system/libsystem_stats.dylib
    0x7fff930fe000 - 0x7fff9310bff7 libxar.1.dylib (202) <5572AA71-E98D-3FE1-9402-BB4A84E0E71E> /usr/lib/libxar.1.dylib
    0x7fff93152000 - 0x7fff93156ff7 libheimdal-asn1.dylib (323.92.1) <CAE21FFF-5763-399C-B7C5-EEBFFEEF2242> /usr/lib/libheimdal-asn1.dylib
    0x7fff93184000 - 0x7fff9318bff3 libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
    0x7fff931f7000 - 0x7fff9322fff7 com.apple.RemoteViewServices (2.0 - 94) <3F34D630-3DDB-3411-BC28-A56A9B55EBDA> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff9328c000 - 0x7fff93296ff7 com.apple.CrashReporterSupport (10.9 - 539) <B25A09EC-A021-32EC-86F8-05B4837E0EDE> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff93297000 - 0x7fff9329afff com.apple.help (1.3.3 - 46) <AE763646-D07A-3F9A-ACD4-F5CBD734EE36> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff93314000 - 0x7fff93343ff9 com.apple.GSS (4.0 - 2.0) <44E914BE-B0D0-3E05-9451-CA9E539AFA52> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff93344000 - 0x7fff93350ff7 com.apple.OpenDirectory (10.9 - 173.90.1) <256C265B-7FA6-326D-9F60-18DADF5F3A0E> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff936e7000 - 0x7fff9373fff7 com.apple.Symbolication (1.4 - 129.0.2) <B1F008C4-184D-36A2-922F-4A67A075D512> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff93aa3000 - 0x7fff93aabff7 com.apple.speech.recognition.framework (4.2.4 - 4.2.4) <98BBB3E4-6239-3EF1-90B2-84EA0D3B8D61> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff93aed000 - 0x7fff93b08ff7 libPng.dylib (1043) <23D2DAB7-C9A9-392F-989A-871E89E7751D> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff93b09000 - 0x7fff93b8afff com.apple.CoreSymbolication (3.0.1 - 141.0.5) <20E484C4-9F0E-3DF6-BB27-D509859FF57A> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff93b8b000 - 0x7fff93bb4ff7 libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
    0x7fff93bbe000 - 0x7fff93c10fff libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
    0x7fff93c64000 - 0x7fff93c95fff com.apple.MediaKit (15 - 709) <23E33409-5C39-3F93-9E73-2B0E9EE8883E> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
    0x7fff94215000 - 0x7fff9421cfff libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
    0x7fff94240000 - 0x7fff94268ffb libxslt.1.dylib (13) <C9794936-633C-3F0C-9E71-30190B9B41C1> /usr/lib/libxslt.1.dylib
    0x7fff942e9000 - 0x7fff945d3fff com.apple.CoreServices.CarbonCore (1077.17 - 1077.17) <3A2E92FD-DEE2-3D45-9619-11500801A61C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff945d4000 - 0x7fff945d9fff libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
    0x7fff9467e000 - 0x7fff9468bff0 libbz2.1.0.dylib (29) <0B98AC35-B138-349C-8063-2B987A75D24C> /usr/lib/libbz2.1.0.dylib
    0x7fff9468c000 - 0x7fff946a3ff7 com.apple.CFOpenDirectory (10.9 - 173.90.1) <EBC0A1F2-9054-3D39-99AE-A3F655E55D6A> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff946a4000 - 0x7fff946aeff7 com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff946af000 - 0x7fff94726fff com.apple.CoreServices.OSServices (600.4 - 600.4) <C63562F5-6DF5-3EE9-8897-FF61A44C8251> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff94994000 - 0x7fff9499efff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
    0x7fff957f2000 - 0x7fff957f3ff7 libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
    0x7fff957f4000 - 0x7fff95823fff com.apple.DebugSymbols (106 - 106) <E1BDED08-523A-36F4-B2DA-9D5C712F0AC7> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff95824000 - 0x7fff95866ff7 libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
    0x7fff9587f000 - 0x7fff9589aff7 libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
    0x7fff9589b000 - 0x7fff961baf43 com.apple.CoreGraphics (1.600.0 - 599.23.13) <3A1952C7-1D67-3DEC-A5AB-5399FF4F2A92> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff96556000 - 0x7fff965e1fff libCoreStorage.dylib (380) <DE9B3F8C-045C-3010-9A25-C8CD72F1066B> /usr/lib/libCoreStorage.dylib
    0x7fff965e2000 - 0x7fff965e7fff com.apple.DiskArbitration (2.6 - 2.6) <A4165553-770E-3D27-B217-01FC1F852B87> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff96a5c000 - 0x7fff96b4afff libJP2.dylib (1043) <C4031D64-6C57-3FB4-9D87-874D387381DB> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff96b4b000 - 0x7fff96b4cff7 libSystem.B.dylib (1197.1.1) <E303F2F8-A8CF-3DF3-84B3-F2D0EE41CCF6> /usr/lib/libSystem.B.dylib
    0x7fff96ba9000 - 0x7fff96badfff com.apple.CommonPanels (1.2.6 - 96) <6B434AFD-50F8-37C7-9A56-162C17E375B3> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
    0x7fff96c0a000 - 0x7fff96c0bfff liblangid.dylib (117) <9546E641-F730-3AB0-B3CD-E0E2FDD173D9> /usr/lib/liblangid.dylib
    0x7fff96c0c000 - 0x7fff96c5afff libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
    0x7fff96cbe000 - 0x7fff96cbfff7 com.apple.print.framework.Print (9.0 - 260) <EE00FAE1-DA03-3EC2-8571-562518C46994> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fff96cc0000 - 0x7fff96cc6fff com.apple.AOSNotification (1.7.0 - 760.3) <7901B867-60F7-3645-BB3E-18C51A6FBCC6> /System/Library/PrivateFrameworks/AOSNotification.framework/Versions/A/AOSNotification
    0x7fff96cc7000 - 0x7fff96cc7fff com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff96e96000 - 0x7fff96f02fff com.apple.framework.IOKit (2.0.1 - 907.100.13) <057FDBA3-56D6-3903-8C0B-849214BF1985> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff96fa8000 - 0x7fff96fb1fff com.apple.speech.synthesis.framework (4.7.1 - 4.7.1) <383FB557-E88E-3239-82B8-15F9F885B702> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff97072000 - 0x7fff972ccffd com.apple.security (7.0 - 55471.14.4) <1D5DA20E-DB48-3E1D-9BF5-BAA694192B25> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff9738c000 - 0x7fff97390fff libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
    0x7fff97391000 - 0x7fff97391fff com.apple.Cocoa (6.8 - 20) <E90E99D7-A425-3301-A025-D9E0CD11918E> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff973c5000 - 0x7fff973ceff3 libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
    0x7fff973cf000 - 0x7fff97416fff libFontRegistry.dylib (127) <A77A0480-AA5D-3CC8-8B68-69985CD546DC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff97417000 - 0x7fff974e0fff com.apple.LaunchServices (572.26 - 572.26) <EF8A4A15-0861-35C5-9744-5E1BC5C26DD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff974e3000 - 0x7fff974eefff libGL.dylib (9.6.1) <4B65BF9F-F34A-3CD1-94E8-DB26DAA0A59D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff974ef000 - 0x7fff9755eff1 com.apple.ApplicationServices.ATS (360 - 363.3) <546E89D9-2AE7-3111-B2B8-2366650D22F0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff975ed000 - 0x7fff975f0fff com.apple.TCC (1.0 - 1) <32A075D9-47FD-3E71-95BC-BFB0D583F41C> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff976c8000 - 0x7fff976ceff7 libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
    0x7fff976cf000 - 0x7fff976d1ff7 com.apple.securityhi (9.0 - 55005) <18C42525-688C-3D47-B9C9-1E0F8F58FA64> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff97732000 - 0x7fff97735ff7 libdyld.dylib (239.4) <7C9EC3B7-DDE3-33FF-953F-4067C743951D> /usr/lib/system/libdyld.dylib
    0x7fff97736000 - 0x7fff9774fff7 com.apple.Kerberos (3.0 - 1) <F108AFEB-198A-3BAF-BCA5-9DFCE55EFF92> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 118340
    thread_create: 1
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=204.9M resident=204.9M(100%) swapped_out_or_unallocated=0K(0%)
Writable regions: Total=510.7M written=469.3M(92%) resident=510.7M(100%) swapped_out=0K(0%) unallocated=0K(0%)

REGION TYPE VIRTUAL
=========== =======
CG backing stores 8780K
CG image 272K
CG raster data 96K
CG shared images 212K
CoreServices 2496K
Dispatch continuations 16.0M
IOKit 8204K
IOKit (reserved) 4K reserved VM address space (unallocated)
Kernel Alloc Once 8K
MALLOC 389.2M
Memory Tag 242 12K
Memory Tag 249 156K
Stack 65.6M
VM_ALLOCATE 53.3M
__DATA 40.1M
__IMAGE 528K
__LINKEDIT 74.6M
__TEXT 130.3M
__UNICODE 544K
mapped file 22.5M
shared memory 68K
=========== =======
TOTAL 812.5M
TOTAL, minus reserved VM space 812.5M

Model: MacBookPro10,1, BootROM MBP101.00EE.B03, 4 processors, Intel Core i7, 2.7 GHz, 16 GB, SMC 2.3f36
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.4f1 13674, 3 services, 15 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SD512E, 500,28 GB
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4

Tags: ai
SirVer (sirver)
Changed in widelands:
milestone: none → build19-rc1
Revision history for this message
SirVer (sirver) wrote :

Also related: You have a bunch of checks of this sort in your code:

 if (not best_building->type == BuildingObserver::MILITARYSITE)

this will be interpreted as

 if ((not best_building->type) == BuildingObserver::MILITARYSITE)

by the compiler. This is surely not what you wanted - please fix those too. Also, switch to clang for getting warnings about stuff like that.

Revision history for this message
TiborB (tiborb95) wrote :

Well, I just compiled trunk and run couple of games including the Thaw - no problem, recompiled with clang - another test with Thaw (3 hours of gameplay, speed 40) - no crash. I will watch compilation notes (with clang) next time perhaps there will be something...

your dump points to:
0 widelands 0x000000010643e7bb DefaultAI::check_productionsites(int) + 2827

is it possible to get specific line where it crashed?

Revision history for this message
SirVer (sirver) wrote :

The specific line it crashes for me is this:

flags_to_be_removed.push_back(site.site->base_flag().get_position());

Ways to reproduce:

- Start a network game.
- first player AI passive, barbarians,
- second player AI normal, empire
- third player AI aggressive, atlanteans

all of them have as start condition: headquarters medium.

Start the game, increase the speed (I set it to x30). Crashes within minutes.

Revision history for this message
TiborB (tiborb95) wrote :

Well there are couple of such lines. In fact in older versions there was a bug, see lines:

  flags_to_be_removed.push_back(site.site->base_flag().get_position());
  game().send_player_dismantle(*site.site);

this is in good order, but they were there in reversed order and this used to crash. But now in current trunk it is fixed.

So please make sure you are compiling latest trunk (you can just open defaultcc.ai and look up for specific line and check the order) or just send me the line (number) where it crashed.

Revision history for this message
SirVer (sirver) wrote :

I am sure that I ran trunk :)

The crashing line in current trunk is 2053.

Revision history for this message
TiborB (tiborb95) wrote :

Well it seems that my attempt to optimalize AI (reduce CPU time consumption) cause inconsistency in some stored information. Here in this example it probably tried to dismantle a quary that was orderd to dismantle short time ago.

Revision history for this message
Daniel Santos (daniel-santos) wrote :

yuppers, confirming:

(gdb) bt
0x000000000074e45b in DefaultAI::check_productionsites (this=this@entry=0x4267380, gametime=gametime@entry=127595) at /home/daniel/proj/games/widelands/widelands/src/ai/defaultai.cc:1963
0x0000000000750bf2 in DefaultAI::think (this=0x4267380) at /home/daniel/proj/games/widelands/widelands/src/ai/defaultai.cc:193
0x00000000005a3be2 in SinglePlayerGameController::think (this=0x185a320) at /home/daniel/proj/games/widelands/widelands/src/single_player_game_controller.cc:82
0x0000000000723991 in Widelands::Game::think (this=0x7fffffff9f10) at /home/daniel/proj/games/widelands/widelands/src/logic/game.cc:616
0x00000000005c5220 in Interactive_Base::think (this=this@entry=0x18b8660) at /home/daniel/proj/games/widelands/widelands/src/wui/interactive_base.cc:383
0x00000000005b1d15 in Interactive_Player::think (this=0x18b8660) at /home/daniel/proj/games/widelands/widelands/src/wui/interactive_player.cc:227
0x000000000059595e in UI::Panel::do_think (this=this@entry=0x18b8660) at /home/daniel/proj/games/widelands/widelands/src/ui_basic/panel.cc:587
0x000000000059668c in UI::Panel::run (this=0x18b8660) at /home/daniel/proj/games/widelands/widelands/src/ui_basic/panel.cc:212
0x0000000000724922 in Widelands::Game::run (this=this@entry=0x7fffffff9f10, loader_ui=loader_ui@entry=0x7fffffff9e40, start_game_type=<optimized out>, start_game_type@entry=Widelands::Game::Loaded, script_to_run=\"\", replay=replay@entry=false) at /home/daniel/proj/games/widelands/widelands/src/logic/game.cc:575
0x00000000007286f4 in Widelands::Game::run_load_game (this=this@entry=0x7fffffff9f10, filename=\"save/hello world.wgf\", script_to_run=\"\") at /home/daniel/proj/games/widelands/widelands/src/logic/game.cc:415
0x000000000056b61a in WLApplication::load_game (this=this@entry=0xbc4500) at /home/daniel/proj/games/widelands/widelands/src/wlapplication.cc:1598
0x000000000056c35e in WLApplication::mainmenu_singleplayer (this=this@entry=0xbc4500) at /home/daniel/proj/games/widelands/widelands/src/wlapplication.cc:1387
0x000000000056ccb0 in WLApplication::mainmenu (this=this@entry=0xbc4500) at /home/daniel/proj/games/widelands/widelands/src/wlapplication.cc:1303
0x000000000056d275 in WLApplication::run (this=this@entry=0xbc4500) at /home/daniel/proj/games/widelands/widelands/src/wlapplication.cc:465
0x000000000055f17b in main (argc=1, argv=0x7fffffffdc68) at /home/daniel/proj/games/widelands/widelands/src/main.cc:103

(gdb) info locals
radius = <optimized out>
workarea_info = <optimized out>
enbld = <optimized out>
site = @0x8355350: {site = 0x0, built_time_ = 1701147252, stats_zero_ = 0 '\\000', bo = 0x866ec68}
changed = false
enhancements = std::set with 69628976 elements<error reading variable: Cannot access memory at address 0xed>
maxprio = <optimized out>
bestbld = <optimized out>

(gdb) print map
$3 = <optimized out>

I built this with -O2 and -g3

Revision history for this message
TiborB (tiborb95) wrote :

Well, my thoughts were that productionsites vector is not updated properly (=particular member deleted) when building is ordered to be dismantled. I did some test and this is not the problem per se. There is function:

/// called by Widelands game engine when an immovable changed
void DefaultAI::receive(const NoteImmovable& note) {

and whenever building is started to be dismantled it is called and productionsites are updated, the same when upgrading.

Is it possible that this function is sometimes not called at all? Under high speed?

Revision history for this message
SirVer (sirver) wrote :

> Is it possible that this function is sometimes not called at all? Under high speed?

no, all functions are always called. but the timing changes. For example on low speed you could have two frames separated by some time on which the quarry gets the dismantle signal and the dismantling starts. On high speed this could happen on the same frame.

The problem is that the AI should not keep pointers, but OPtrs to objects around. They offer the ability to check if an object is still there or has vanished in the last few frames.

Revision history for this message
TiborB (tiborb95) wrote :

In the meantime I had another idea, maybe it relates to the idea in last paragraph of your replay above.

in the code there are three lines on the begining of check_productionsites() :

 ProductionSiteObserver& site = productionsites.front();
 // Reorder and set new values; - better now because there are multiple returns in the function
 productionsites.push_back(productionsites.front());
 productionsites.pop_front();

Is it possible that site (that is pointer if I am right) just becames invalid during procesing of check_productionsites(). I mean even thought the game is singlethreaded, OS manipulates the productionsites vector independently of game run?

Can you explain bit more what OPtrs are?

Revision history for this message
SirVer (sirver) wrote :

Not sure why the code block you posted is at the beginning of the function (I do not know much about the AI code), but it seems safe to me.

> Is it possible that site (that is pointer if I am right) just becames invalid during procesing of check_productionsites().I mean even thought the game is singlethreaded, OS manipulates the productionsites vector independently of game run?

No, that is not possible. The OS never moves memory for the application except for a realloc() which is not happening there. No, the bug must be in our code.

> Can you explain bit more what OPtrs are?

Sure. It is a smart pointer living in src/logic/instances.h. It tracks the Serial number of a map object (like a building) instead of a pointer to it. And when you ask it for a pointer, it will ask the object manager (that knows about all objects currently alive) for a pointer. If the object has vanished in the meantime, you will get a nullptr. It is a save way of accessing map objects and should be prefered instead of keeping pointers around - you never know when the map object vanishes. Of course looking up the serial with the object manager costs time, so they are not as performant as using bare pointers.

Revision history for this message
TiborB (tiborb95) wrote :

In old version there was a bug, buildings in productionsites were not rotated properly so now I decided to put the rotation in the begining of function.

Yet I still think this can be a problem: reallocation can happen during push_back and pop_front operation, the solution could be chaning the orders to:

 productionsites.push_back(productionsites.front());
 productionsites.pop_front();
 ProductionSiteObserver& site = productionsites.front();

I just can not test it under linux because it just does not crash there.

So if you or whoever was willing to manualy edit the file and test it I would be thankfull :)

As for your OPtr, I would need some more help in regard to syntax - if the above solution does not work.

Revision history for this message
TiborB (tiborb95) wrote :

small note: the same syntax were used in check_mines_

Revision history for this message
SirVer (sirver) wrote :

> Yet I still think this can be a problem: reallocation can happen during push_back and pop_front operation, the solution could be chaning the orders to

no, I think you misunderstand. The vector contains pointers to objects. When you push back to the vector it might reallocate - but only the memory that will contain the pointers - the object pointed to will not be moved. So the pointers (i.e. the content of the vector) will always stay valid. However somebody else might delete the object pointed to - that is what happens here. But it does not in the few lines of code you posted.

Revision history for this message
TiborB (tiborb95) wrote :

>However somebody else might delete the object pointed to - that is what happens here.

I really can see where it could happen.

But I am preparing new branch (I have the code prepared) and will ask some volunteer to compile it. Perhaps it will help. If not, tomorrow I go on with seeking...

SirVer (sirver)
Changed in widelands:
status: Confirmed → Fix Committed
assignee: Tibor Bamhor (tiborb95) → nobody
Revision history for this message
SirVer (sirver) wrote :

I fixed this particular bug in r6989. Have a look and see how to use OPtr<> in there. The bug was in your branch and came from you always pushing the site to the back of the vector again. The fragile design has been there a long time. It must be fixed by using OPtr's throughout and never storing bare Pointers to Map Objects.

This is what happnes and how the bug was triggered:

productionsites vector: <quarry> <b1> <b2>

You take the front and push it at the back.

productionsites: <b1> <b2> <quarry>

Then you were working with the quarry. Maybe you decide to dismantle the quarry (in the same function even). The quarry is now gone - the entry in productionsites points to invalid memory.

The AI continues to call check_productionsites(). When calling it the third time, the vector looks like this:

productionsites: <quarry - no longer in existance> <b1> <b2>

your code did not check for the existance of the quarry and just worked with invalid memory. The old code only pushed the object to the back of the productionsites vector when it was sure that the building would not vanish through its actions.

Revision history for this message
TiborB (tiborb95) wrote :

SirVer

and what about lose_building() function - should not be this the purpose of it?

http://bazaar.launchpad.net/~widelands-dev/widelands/tibor-ai2/view/head:/src/ai/defaultai.cc#L2821

to find and delete particular item in productionsites once the core informs AI that building no longer exists?

I considered not "push_back" the building that was dismantled but I believed it is done automagically....

Revision history for this message
SirVer (sirver) wrote :

I do not know when lose_building is called. But apparently not for buildings that are dismantled. Nevertheless, raw pointers to map objects are always dangerous.

Revision history for this message
TiborB (tiborb95) wrote :

In fact I can confirm that everytime AI dismantles a building lose_building is called - I tested it today. Nevertheless, I am fine with your solution...

But I just wanted to test it and compilaton failed:

/var/widelands/BZR/trunk/src/graphic/graphic.h:114:58: note: passing argument to parameter 'texture_files' here
        uint32_t new_maptexture(const std::vector<std::string>& texture_files, uint32_t frametime);
                                                                ^
4 warnings and 5 errors generated.
src/CMakeFiles/widelands_all.dir/build.make:2725: recipe for target 'src/CMakeFiles/widelands_all.dir/logic/world.cc.o' failed
make[2]: *** [src/CMakeFiles/widelands_all.dir/logic/world.cc.o] Error 1
CMakeFiles/Makefile2:4935: recipe for target 'src/CMakeFiles/widelands_all.dir/all' failed
make[1]: *** [src/CMakeFiles/widelands_all.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

should I open new bug report?

Revision history for this message
SirVer (sirver) wrote :

> In fact I can confirm that everytime AI dismantles a building lose_building is called - I tested it today. Nevertheless, I am fine with your solution...

then maybe my analysis was (partly) wrong, but my solution is defensive and just checks for every site everytime so I think it is still better. However, it means that the underlying bug (that broke the assumptions of check_productionsites) is still in the AI code and might bite us again.

> should I open new bug report?

yes. that is in a totally different part of the code base. Please also attach the full compile output - I cannot deduce the error from the lines you posted.

Revision history for this message
TiborB (tiborb95) wrote :

Hi, it doesnt work properly

Just yesterday I merged trunk to my own branch tibor-ai2 (first time since you "fixed" AI crashes) and AI began to misbehave.

(!productionsite) is ALLWAYS evaluated as 'site vanished' and member is deleted from productionsites. This breaks the AI.

To verify I modified the code (added printfs only):

// Get link to productionsite that should be checked
 printf (" Productionsites: %2d \n",productionsites.size());
 ProductionSiteObserver& productionsite_observer = productionsites.front();
 productionsites.pop_front();

 ProductionSite* productionsite = productionsite_observer.site.get(game());
 if (!productionsite) {
  // Site has vanished.
  printf ("site vanished \n");
  return false;
 }
 printf ("site not vanished \n");
 productionsites.push_back(productionsite_observer);

and I never get 'site not vanished'

My old (miraculously working only on linux) design was:

 productionsites.push_back(productionsites.front());
 productionsites.pop_front();
 ProductionSiteObserver& site = productionsites.front();

I just can note that it first does push_back and afterwards pop_front.

Please look at it.

Tibor

Revision history for this message
TiborB (tiborb95) wrote :

I did some memory analysis with valgrind, for results see here:

http://tny.cz/9f48983b

Revision history for this message
TiborB (tiborb95) wrote :

BTW, I tested with valgrind also last pre-merge revision of tibor-ai2: http://bazaar.launchpad.net/~widelands-dev/widelands/tibor-ai2/revision/6987, and valgrind reported no problems.

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Uhm, this is a pretty old one Ill check this again (with different FPS settigs) on current bzr7943[trunk] and then will close it.

Changed in widelands:
assignee: nobody → Klaus Halfmann (klaus-halfmann)
Revision history for this message
GunChleoc (gunchleoc) wrote :

This bug has already been closed on 2014-06-17 - you do not need to test "Fix Commited" bugs.

Changed in widelands:
assignee: Klaus Halfmann (klaus-halfmann) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.