Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault after Main Menu #17714

Closed
OneManEquipe opened this issue Jul 16, 2016 · 36 comments
Closed

Segfault after Main Menu #17714

OneManEquipe opened this issue Jul 16, 2016 · 36 comments
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes.

Comments

@OneManEquipe
Copy link

In the latest experimental builds the game crashes with a SIGSEGV as soon as I enter character creation or load a game.
The issue is only present in latest builds, I currently play build 5194 which is version 0.C-16370-g75a3362 with no crashes.

I've been using the tiles version on OS X 10.11 (El Capitan), both from the Jenkins build, homebrew install and building from source myself.

Here is a screenshot of the last thing I see before the crash.

screen shot 2016-07-16 at 12 16 11

Here is the debug log from the game:
debug.log.txt

And here is the crash report from the OS:
Crash Report.txt

@OneManEquipe OneManEquipe changed the title Segfault after data load Segfault after Main Menu Jul 17, 2016
@OneManEquipe
Copy link
Author

OneManEquipe commented Jul 17, 2016

Small update: the problem occurs on other Macs too, I tried the latest Jenkins build (5254) on another Mac (El Capitan) and the same crash happened.

I also tried the Curses build, with the same results.

@pollodigomma
Copy link

pollodigomma commented Jul 17, 2016

Process: cataclysm-tiles [19017]
Path: /usr/local/Cellar/cataclysm/HEAD/libexec/cataclysm-tiles
Identifier: cataclysm-tiles
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [57638]
Responsible: Terminal [472]
User ID: 503

Date/Time: 2016-07-17 16:56:53.443 +0200
OS Version: Mac OS X 10.11.5 (15F34)
Report Version: 11
Anonymous UUID: B1A18AFA-9F93-289E-BD5F-037DE2174C94

Sleep/Wake UUID: 9E3B02B6-7A60-463B-B813-386F293976AE

Time Awake Since Boot: 54000 seconds
Time Since Wake: 350 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 cataclysm-tiles 0x00000001034f3288 0x103025000 + 5038728
1 cataclysm-tiles 0x00000001034f2b1a 0x103025000 + 5036826
2 cataclysm-tiles 0x00000001034f26e8 0x103025000 + 5035752
3 cataclysm-tiles 0x00000001034f1f65 0x103025000 + 5033829
4 cataclysm-tiles 0x00000001034f1276 0x103025000 + 5030518
5 cataclysm-tiles 0x00000001031f29d9 0x103025000 + 1890777
6 cataclysm-tiles 0x00000001031f35a3 0x103025000 + 1893795
7 cataclysm-tiles 0x00000001031f310c 0x103025000 + 1892620
8 cataclysm-tiles 0x000000010315fad0 0x103025000 + 1288912
9 cataclysm-tiles 0x000000010315fa22 0x103025000 + 1288738
10 cataclysm-tiles 0x0000000103160dce 0x103025000 + 1293774
11 cataclysm-tiles 0x00000001031609d2 0x103025000 + 1292754
12 cataclysm-tiles 0x0000000103307085 0x103025000 + 3022981
13 cataclysm-tiles 0x00000001033009da 0x103025000 + 2996698
14 libdyld.dylib 0x00007fff912d95ad start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff979925e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8c4ce578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff8c4cc341 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff97992efa kevent_qos + 10
1 libdispatch.dylib 0x00007fff9c00a165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff9c009dcd _dispatch_mgr_thread + 52

Thread 3:
0 libsystem_kernel.dylib 0x00007fff979925e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8c4ce578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff8c4cc341 start_wqthread + 13

Thread 4:: SDLTimer
0 libsystem_kernel.dylib 0x00007fff97991db6 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff8c4cf728 _pthread_cond_wait + 767
2 libSDL2-2.0.0.dylib 0x0000000103a6d4de SDL_CondWaitTimeout_REAL + 141
3 libSDL2-2.0.0.dylib 0x0000000103a6d13c SDL_SemWaitTimeout_REAL + 75
4 libSDL2-2.0.0.dylib 0x0000000103a33260 SDL_TimerThread + 79
5 libSDL2-2.0.0.dylib 0x0000000103a32eae SDL_RunThread + 60
6 libSDL2-2.0.0.dylib 0x0000000103a6cebe RunThread + 9
7 libsystem_pthread.dylib 0x00007fff8c4ce99d _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff8c4ce91a _pthread_start + 168
9 libsystem_pthread.dylib 0x00007fff8c4cc351 thread_start + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff979925e2 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8c4ce578 _pthread_wqthread + 1283
2 libsystem_pthread.dylib 0x00007fff8c4cc341 start_wqthread + 13

Thread 6:

Thread 7:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff9798bf72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff9798b3b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff87ed31c4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff87ed268c __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff87ed1ed8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff90847d95 _NSEventThread + 149
6 libsystem_pthread.dylib 0x00007fff8c4ce99d _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff8c4ce91a _pthread_start + 168
8 libsystem_pthread.dylib 0x00007fff8c4cc351 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007fcf0c9f7c18 rbx: 0x00007fcf0c9f7be0 rcx: 0x00007fcf0c9f8050 rdx: 0x0000000000000001
rdi: 0x00007fcf0c9f7be0 rsi: 0x00007fcf0c9fa760 rbp: 0x00007fff5cbd24c0 rsp: 0x00007fff5cbd2490
r8: 0x0000000000000006 r9: 0x00000000ffffffe0 r10: 0x0000000000000008 r11: 0x00007fcf0c900000
r12: 0xffff8030f36084f0 r13: 0x00007fcf0c9fa800 r14: 0xfffffffffffffe90 r15: 0x00007fff5cbd24d0
rip: 0x00000001034f3288 rfl: 0x0000000000010202 cr2: 0x0000000143177000

Logical CPU: 0
Error Code: 0x00000000
Trap Number: 13

Binary Images:
0x103025000 - 0x10388cff3 +cataclysm-tiles (0) <19FFAA8C-B813-3DC5-92E5-F56D146B340F> /usr/local/Cellar/cataclysm/HEAD/libexec/cataclysm-tiles
0x1039c9000 - 0x1039d1ff3 +libintl.8.dylib (0) <89A49B65-40E2-340A-A6B3-B344F7AEEB32> /usr/local/opt/gettext/lib/libintl.8.dylib
0x1039d8000 - 0x103a81fff +libSDL2-2.0.0.dylib (0) <2F1FFFE7-4554-3F00-8DFA-3DDB90B5CFFC> /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib
0x103aba000 - 0x103abefff +libSDL2_ttf-2.0.0.dylib (0) <5AD55348-E82B-3242-97E8-97B7D9AD4C6D> /usr/local/opt/sdl2_ttf/lib/libSDL2_ttf-2.0.0.dylib
0x103ac4000 - 0x103ad1fff +libSDL2_image-2.0.0.dylib (0) <82ED5109-65C0-3CFD-AF6C-41B62A9689D3> /usr/local/opt/sdl2_image/lib/libSDL2_image-2.0.0.dylib
0x103aea000 - 0x103aecfff com.apple.ForceFeedback (1.0.6 - 1.0.6) <2CCA0B39-2B72-3B89-B698-42A57FE59E27> /System/Library/Frameworks/ForceFeedback.framework/Versions/A/ForceFeedback
0x103af9000 - 0x103b6affb +libfreetype.6.dylib (0) <3020391F-1CB8-3447-9E77-96C536C4EAAB> /usr/local/opt/freetype/lib/libfreetype.6.dylib
0x103b82000 - 0x103ba5ff3 +libpng16.16.dylib (0) <5D38EFF0-E5EB-3722-83AD-C5EBF002D0CB> /usr/local/opt/libpng/lib/libpng16.16.dylib
0x107929000 - 0x107929fe7 +cl_kernels (???) <11B7B285-2D5B-4700-BDDB-613A42228A39> cl_kernels
0x10925f000 - 0x109263fff com.apple.audio.AppleHDAHALPlugIn (274.9 - 274.9) <4AD9D94F-0CCD-3590-9DEA-CED5706F096A> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x109275000 - 0x1095ffff7 com.apple.driver.AppleIntelHD3000GraphicsGLDriver (10.0.48 - 10.0.0) <020DB3FB-66FF-332E-8B8F-4FE780EEDBF7> /System/Library/Extensions/AppleIntelHD3000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD3000GraphicsGLDriver
0x7fff6c7b0000 - 0x7fff6c7e725f dyld (360.22) /usr/lib/dyld
0x7fff874d9000 - 0x7fff874efff7 libLinearAlgebra.dylib (1162.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x7fff875d6000 - 0x7fff875fffff libc++abi.dylib (125) /usr/lib/libc++abi.dylib
0x7fff876ea000 - 0x7fff876f2ffb libsystem_dnssd.dylib (625.50.5) <4D10E12B-59B5-386F-82DA-326F18028F0A> /usr/lib/system/libsystem_dnssd.dylib
0x7fff878ae000 - 0x7fff87919ff7 com.apple.framework.CoreWLAN (11.0 - 1101.20) <3B35C543-7FCE-333F-80C1-432FA41DDCDE> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x7fff8791e000 - 0x7fff87c72fff com.apple.Foundation (6.9 - 1259) <71A9D3A0-0B1F-3E3A-86F3-1486365A6EF2> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff87d27000 - 0x7fff87d37fff libSparseBLAS.dylib (1162.2) <6F591A0F-80D0-384D-8304-B035C4ED1BBD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
0x7fff87e49000 - 0x7fff882bffff com.apple.CoreFoundation (6.9 - 1258.1) <943A1383-DA6A-3DC0-ABCD-D9AEB3D0D34D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff887bb000 - 0x7fff887c7fff com.apple.SpeechRecognitionCore (2.2.7 - 2.2.7) <6BA06290-D4A3-351C-87F9-B61EF61FF055> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
0x7fff88903000 - 0x7fff88925fff com.apple.IconServices (68.1 - 68.1) /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x7fff88b34000 - 0x7fff88c7eff7 com.apple.coreui (2.1 - 366.1) <8138636F-A0A7-31C7-896C-5F5747FA1B2A> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff88cad000 - 0x7fff88cb6ff7 com.apple.CommonAuth (4.0 - 2.0) <4B8673E1-3697-3FE2-8D30-AC7AC5D4F8BF> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x7fff88cb7000 - 0x7fff88cdcff7 libPng.dylib (1450) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff89200000 - 0x7fff89229ffb libRIP.A.dylib (957) <5F18F20D-5921-3314-A9F8-F1B1CB62C83D> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x7fff8922a000 - 0x7fff89233fff com.apple.icloud.FindMyDevice (1.0 - 1) /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice
0x7fff89234000 - 0x7fff89236ff7 libsystem_configuration.dylib (802.40.13) <3DEB7DF9-6804-37E1-BC83-0166882FF0FF> /usr/lib/system/libsystem_configuration.dylib
0x7fff89422000 - 0x7fff89467ff3 libFontRegistry.dylib (155.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff89468000 - 0x7fff894dffeb libcorecrypto.dylib (335.50.1) /usr/lib/system/libcorecrypto.dylib
0x7fff89544000 - 0x7fff8962aff7 libcrypto.0.9.8.dylib (59.40.2) <2486D801-C756-3488-B519-1AA6807E8948> /usr/lib/libcrypto.0.9.8.dylib
0x7fff8962b000 - 0x7fff89642fff libmarisa.dylib (4) /usr/lib/libmarisa.dylib
0x7fff896d6000 - 0x7fff896d8ff7 libRadiance.dylib (1450) <0C0DACDA-2040-3D22-A8E7-7035AB624E4A> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff896d9000 - 0x7fff896ebfff libsasl2.2.dylib (209) <11C7D200-0CA5-30F4-A19A-178CA81D48FE> /usr/lib/libsasl2.2.dylib
0x7fff896ec000 - 0x7fff89715fff libsystem_info.dylib (477.50.4) /usr/lib/system/libsystem_info.dylib
0x7fff89716000 - 0x7fff89718ffb libutil.dylib (43) <4C9BFE8B-563B-3EEA-A323-8F4F14E0A46C> /usr/lib/libutil.dylib
0x7fff8971e000 - 0x7fff89722fff libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
0x7fff89a20000 - 0x7fff89a21ff3 com.apple.print.framework.Print (10.0 - 266) <3E85F70C-D7D4-34E1-B88A-C1F503F99CDA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x7fff89a22000 - 0x7fff89a2cfff com.apple.NetAuth (6.0 - 6.0) /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff89b99000 - 0x7fff89c00fff com.apple.framework.CoreWiFi (11.0 - 1101.20) <993592F1-B3F1-3FAD-87BD-EA83C361BCCF> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x7fff8a390000 - 0x7fff8a390fff com.apple.audio.units.AudioUnit (1.13 - 1.13) <93C1D642-37D4-3692-AD35-DCAD04F9610B> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff8abf0000 - 0x7fff8ac3fff7 com.apple.opencl (2.7.0 - 2.7.0) /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff8ac40000 - 0x7fff8ac40ff7 libunc.dylib (29) /usr/lib/system/libunc.dylib
0x7fff8ac80000 - 0x7fff8ac82fff libCGXType.A.dylib (957) /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x7fff8ac83000 - 0x7fff8acb6ff7 com.apple.MediaKit (16 - 809) /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
0x7fff8acb7000 - 0x7fff8acb7fff com.apple.CoreServices (728.12 - 728.12) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff8ad25000 - 0x7fff8ad25fff com.apple.ApplicationServices (48 - 48) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x7fff8ad26000 - 0x7fff8bf8eff7 com.apple.CoreGraphics (1.600.0 - 957) <0AD5EC17-569E-3864-A637-AD720F5AE0BE> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff8bfa5000 - 0x7fff8bfd4ffb libsystem_m.dylib (3105) <08E1A4B2-6448-3DFE-A58C-ACC7335BE7E4> /usr/lib/system/libsystem_m.dylib
0x7fff8bfd5000 - 0x7fff8bfd6fff libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff8bfe4000 - 0x7fff8c035fff com.apple.audio.CoreAudio (4.3.0 - 4.3.0) /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff8c036000 - 0x7fff8c04ffe7 libcompression.dylib (28) /usr/lib/libcompression.dylib
0x7fff8c052000 - 0x7fff8c0c0ff7 com.apple.ApplicationServices.ATS (377 - 394.4) <9779E916-0788-3CAC-B1EC-F68BCB12A2B6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x7fff8c0c1000 - 0x7fff8c156fff com.apple.ink.framework (10.9 - 214) <1F76CF36-3F79-36B8-BC37-C540AF34B338> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x7fff8c157000 - 0x7fff8c159fff libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
0x7fff8c15a000 - 0x7fff8c1fafff com.apple.Metadata (10.7.0 - 972.34) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff8c4cb000 - 0x7fff8c4d4ff7 libsystem_pthread.dylib (138.10.4) <3DD1EF4C-1D1B-3ABF-8CC6-B3B1CEEE9559> /usr/lib/system/libsystem_pthread.dylib
0x7fff8c4e0000 - 0x7fff8c50eff7 com.apple.CoreServicesInternal (248.2 - 248.2) <6E111F0A-D7F1-3738-ADE7-CF983BD4EC8B> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x7fff8c517000 - 0x7fff8c6c2ffb GLEngine (12.1) <299D9296-2984-3967-9049-A842B99E5D43> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
0x7fff8c6c3000 - 0x7fff8c6fdff7 com.apple.DebugSymbols (132 - 132) <23A42C53-B941-3871-9EE2-4C87A46005B5> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x7fff8c700000 - 0x7fff8c99aff3 com.apple.security (7.0 - 57337.50.23) <8B6CF71D-A63E-34C9-9227-0AACAB643584> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff8c99b000 - 0x7fff8c9f0fff com.apple.AE (701 - 701) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff8caeb000 - 0x7fff8cc10fff com.apple.LaunchServices (728.12 - 728.12) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff8cc68000 - 0x7fff8cc71ff3 libsystem_notify.dylib (150.40.1) /usr/lib/system/libsystem_notify.dylib
0x7fff8cc99000 - 0x7fff8cc99fff libOpenScriptingUtil.dylib (169.1) /usr/lib/libOpenScriptingUtil.dylib
0x7fff8ccaf000 - 0x7fff8ccb7fff com.apple.NetFS (6.0 - 4.0) <842A5346-24C3-3F22-9ECF-E586A10EA1F2> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff8ccb8000 - 0x7fff8cfadfff com.apple.HIToolbox (2.1.1 - 807.2) <36413C45-36AF-34EF-9C0E-F18B31D1E565> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff8cfc1000 - 0x7fff8cfddff3 libresolv.9.dylib (60) /usr/lib/libresolv.9.dylib
0x7fff8d00c000 - 0x7fff8d017ff7 libcommonCrypto.dylib (60075.50.1) <93732261-34B4-3914-B7A2-90A81A182DBA> /usr/lib/system/libcommonCrypto.dylib
0x7fff8d2b8000 - 0x7fff8d4d9ff7 com.apple.CoreImage (11.4.0 - 366.4.19) /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x7fff8d60f000 - 0x7fff8d617fef libcldcpuengine.dylib (2.7.3) <511DF05F-B3A1-3810-9901-1F5C1EA278C4> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
0x7fff8d618000 - 0x7fff8d796fff com.apple.UIFoundation (1.0 - 436.1) /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff8ef23000 - 0x7fff8ef3fff7 libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
0x7fff8ef40000 - 0x7fff8ef62ff7 com.apple.Sharing (442.13.6 - 442.13.6) /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x7fff8f0a5000 - 0x7fff8f194fff libxml2.2.dylib (29.7) <32BBF51E-B084-3FC2-AE9C-C008BE84102B> /usr/lib/libxml2.2.dylib
0x7fff8f19d000 - 0x7fff8f36bff3 com.apple.QuartzCore (1.11 - 410.14) <076BDE58-8AED-3D47-84FD-548CF8E8EDB9> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff8f3ff000 - 0x7fff8f400ffb libSystem.B.dylib (1226.10.1) /usr/lib/libSystem.B.dylib
0x7fff8f4c9000 - 0x7fff8f4c9fff com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <848125D3-AF14-3526-8745-FFCDB200CD76> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff8f4f9000 - 0x7fff8f523ff7 GLRendererFloat (12.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x7fff8fd2d000 - 0x7fff8fd6fff7 com.apple.Metal (56.6 - 56.6) <2B2C0F78-20B8-3878-B9B1-DE18BB92919D> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x7fff9035a000 - 0x7fff90362fff libGFXShared.dylib (12.1) <5A0C2493-200C-30BE-97D5-8E8C0B8E604D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x7fff90363000 - 0x7fff90367fff com.apple.CommonPanels (1.2.6 - 96) <4AE7E5AE-55B3-37FA-9BDE-B23147ADA2E9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x7fff90368000 - 0x7fff90422fff com.apple.DiscRecording (9.0.1 - 9010.4.3) <540853B2-B123-3560-8023-C92EE229051A> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
0x7fff90423000 - 0x7fff9042bfff com.apple.CoreServices.FSEvents (1223.10.1 - 1223.10.1) <7F5B7A23-BC1D-3FA9-A9B8-D534F1E1979A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x7fff904dd000 - 0x7fff904e0ffb libScreenReader.dylib (426.42) <16FC79D1-4573-3E90-945F-CBA22D5185FD> /usr/lib/libScreenReader.dylib
0x7fff904e1000 - 0x7fff904e4ff7 com.apple.help (1.3.3 - 46) <35DA4D48-0BC2-35A1-8D7C-40905CDF4F64> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x7fff904e5000 - 0x7fff90543fff com.apple.CoreServices.OSServices (728.12 - 728.12) <776EBD4F-7052-377F-A70D-E2FDBD465A5E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x7fff90559000 - 0x7fff905effff com.apple.ColorSync (4.9.0 - 4.9.0) <8FC37E20-6579-3CB2-9D49-BC39FC38DF87> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff90677000 - 0x7fff906a8fff com.apple.GSS (4.0 - 2.0) /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x7fff906a9000 - 0x7fff912d2ff7 com.apple.AppKit (6.9 - 1404.47) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff912d6000 - 0x7fff912d9ffb libdyld.dylib (360.22) /usr/lib/system/libdyld.dylib
0x7fff912da000 - 0x7fff912f3fff com.apple.openscripting (1.7.1 - 169.1) <36EBF6A7-334A-3197-838F-E8C7B27FCDBB> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x7fff913ed000 - 0x7fff9149dfff com.apple.backup.framework (1.7.4 - 1.7.4) /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x7fff9149e000 - 0x7fff914c7fff com.apple.ProtectedCloudStorage (1.0 - 1) <7436B2B3-943A-3500-B099-80F133B3E002> /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage
0x7fff91540000 - 0x7fff91551ff7 libz.1.dylib (61.20.1) /usr/lib/libz.1.dylib
0x7fff91557000 - 0x7fff9157bff7 libJPEG.dylib (1450) <33C07EEE-95CB-33F7-87C1-09CE82F1E478> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff9157c000 - 0x7fff9168efef libvDSP.dylib (563.5) <5702650E-DF08-3D58-B16F-9EF0A28702B3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff92792000 - 0x7fff927d3ff7 libGLU.dylib (12.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff927d4000 - 0x7fff92878fff com.apple.Bluetooth (4.4.5 - 4.4.5f3) <141F2C36-70B6-32D3-A556-7A605832CDB3> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x7fff92879000 - 0x7fff9287bff7 com.apple.xpc.ServiceManagement (1.0 - 1) /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x7fff92e0d000 - 0x7fff92fcdffb libBLAS.dylib (1162.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff930db000 - 0x7fff930ebfff libbsm.0.dylib (34) <7E14504C-A8B0-3574-B6EB-5D5FABC72926> /usr/lib/libbsm.0.dylib
0x7fff94027000 - 0x7fff94096fff com.apple.datadetectorscore (7.0 - 460) /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x7fff940a7000 - 0x7fff940abfff libGIF.dylib (1450) <49D45D41-11AD-38DC-BDC5-9EC57E3B8E30> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff940ac000 - 0x7fff940b7ff7 libChineseTokenizer.dylib (16) <79B8C67A-3061-3C78-92CD-4650719E68D4> /usr/lib/libChineseTokenizer.dylib
0x7fff940e2000 - 0x7fff940eafef libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
0x7fff9414b000 - 0x7fff94314ff7 com.apple.ImageIO.framework (3.3.0 - 1450) <14333D7C-1DB1-3928-AF9C-9470235ED2CF> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x7fff94315000 - 0x7fff94323fff libxar.1.dylib (302) <03207F66-2C4A-3DBD-8D81-70F4C85903C4> /usr/lib/libxar.1.dylib
0x7fff943ac000 - 0x7fff943adfff libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib
0x7fff943ae000 - 0x7fff943d7ff7 libxslt.1.dylib (14.2) <6E8D0F06-9086-32D3-9D87-3870A1CE9E99> /usr/lib/libxslt.1.dylib
0x7fff943d8000 - 0x7fff9444cff3 com.apple.securityfoundation (6.0 - 55126) <130656AE-2711-3914-8736-D8B021C93FE0> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x7fff9444d000 - 0x7fff946f3ff7 com.apple.CoreData (120 - 641.3) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff946f4000 - 0x7fff94a5f657 libobjc.A.dylib (680) /usr/lib/libobjc.A.dylib
0x7fff94a60000 - 0x7fff94b8dff3 com.apple.CoreText (352.0 - 494.11) <08E8640E-6602-3A00-BC28-94235FD311B4> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff94d7c000 - 0x7fff94d8aff7 libbz2.1.0.dylib (38) <28E54258-C0FE-38D4-AB76-1734CACCB344> /usr/lib/libbz2.1.0.dylib
0x7fff951b6000 - 0x7fff9549bffb com.apple.CoreServices.CarbonCore (1136.2 - 1136.2) <2DBAFC9A-6CD6-351D-B1F4-87D81AA6D640> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff95506000 - 0x7fff959c4fcf com.apple.vImage (8.0 - 8.0) <85FB412E-EB30-3433-A79B-B3970FC83580> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff95dd6000 - 0x7fff95ddbff3 libunwind.dylib (35.3) /usr/lib/system/libunwind.dylib
0x7fff9615f000 - 0x7fff96165fff com.apple.IOAccelerator (205.10 - 205.10) /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7fff96192000 - 0x7fff96278fef unorm8_bgra.dylib (2.7.3) /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
0x7fff9627a000 - 0x7fff96321fff com.apple.LanguageModeling (1.0 - 1) <58C18A47-BDE7-3CBE-81C0-797029D170A1> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff96aff000 - 0x7fff96c0dff3 com.apple.desktopservices (1.10.3 - 1.10.3) <3A6906D4-C0B8-30D1-B589-0466E5E42B69> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff96c24000 - 0x7fff96cb3ff7 libCoreStorage.dylib (517.50.1) /usr/lib/libCoreStorage.dylib
0x7fff97395000 - 0x7fff973b2ff7 com.apple.AppleVPAFramework (2.1.2 - 2.1.2) <41378C0B-B56A-3A73-9BD0-E06FA1F87B8C> /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
0x7fff9743e000 - 0x7fff97451fff com.apple.CoreBluetooth (1.0 - 1) /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x7fff975a4000 - 0x7fff97619fff com.apple.framework.IOKit (2.0.2 - 1179.50.2) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff9762d000 - 0x7fff97632ff7 libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
0x7fff97633000 - 0x7fff9765effb libarchive.2.dylib (33.20.2) <6C370A21-63FD-3A68-B4B3-5333F24B770B> /usr/lib/libarchive.2.dylib
0x7fff978f8000 - 0x7fff97911fff com.apple.CFOpenDirectory (10.11 - 194) <11F95672-55E0-3F9D-9171-5E8C56AEE948> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x7fff9797b000 - 0x7fff97999ff7 libsystem_kernel.dylib (3248.50.21) <78E54D59-D2B0-3F54-9A4A-0A68D671F253> /usr/lib/system/libsystem_kernel.dylib
0x7fff979b1000 - 0x7fff97aadff7 libFontParser.dylib (158.6) <267A9AE4-4138-3112-8D73-BDFDC96568FF> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff982fa000 - 0x7fff983ecff7 libJP2.dylib (1450) <8337298A-7911-3B56-85C7-BBA2D8D844EE> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x7fff983f0000 - 0x7fff98435ff7 com.apple.coreservices.SharedFileList (24.4 - 24.5) <1D2AD77B-778F-3253-A295-3D0A32A8121C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x7fff98441000 - 0x7fff98441fff libmetal_timestamp.dylib (600.0.44.1) <6576F284-BACA-332A-A6E7-FA1C347636E3> /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
0x7fff98611000 - 0x7fff98612ffb libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
0x7fff986d7000 - 0x7fff98735fff com.apple.SystemConfiguration (1.14 - 1.14) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff98736000 - 0x7fff9873bff7 libheimdal-asn1.dylib (453.40.10) <981DE40B-FA16-36F7-BE92-8C8A115D6CD9> /usr/lib/libheimdal-asn1.dylib
0x7fff98747000 - 0x7fff98770ff7 libxpc.dylib (765.50.8) <54D1328E-054E-3DAA-89E2-375722F9D18F> /usr/lib/system/libxpc.dylib
0x7fff98771000 - 0x7fff98777ff7 com.apple.speech.recognition.framework (5.1.1 - 5.1.1) <9E5A980A-F455-32D5-BBEE-3BD6018CC45E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x7fff987ea000 - 0x7fff98811fff com.apple.ChunkingLibrary (167 - 167) /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
0x7fff98abc000 - 0x7fff98ad8fff com.apple.GenerationalStorage (2.0 - 239.1) <8C821448-4294-3736-9CEF-467C93785CB9> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
0x7fff98ad9000 - 0x7fff98ad9fff com.apple.Accelerate (1.10 - Accelerate 1.10) <5831771A-C1C3-3625-9FE9-2CCB6B2E7EE1> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff98b2d000 - 0x7fff98d38fff libFosl_dynamic.dylib (16.24) <5F9DB82D-FD4B-3952-8531-CE020F93ED49> /usr/lib/libFosl_dynamic.dylib
0x7fff99212000 - 0x7fff99215fff libsystem_sandbox.dylib (460.50.4) <150A9D3D-F69E-32F7-8C7B-8E72CAAFF7E4> /usr/lib/system/libsystem_sandbox.dylib
0x7fff99373000 - 0x7fff99375fff libCVMSPluginSupport.dylib (12.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x7fff993e5000 - 0x7fff993e6fff com.apple.TrustEvaluationAgent (2.0 - 25) <0239494E-FEFE-39BC-9FC7-E251BA5128F1> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff995e1000 - 0x7fff99619ff7 com.apple.RemoteViewServices (2.0 - 101) /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x7fff99650000 - 0x7fff996d9ff7 com.apple.PerformanceAnalysis (1.0 - 1) <2064F7E8-5C3D-3E18-8029-2D832D13E2A2> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x7fff996da000 - 0x7fff996dbfff libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
0x7fff996eb000 - 0x7fff997c1ffb com.apple.DiskImagesFramework (10.11.4 - 417.4) <6D26E255-D7BB-3A9D-8B6F-E07D2DBB68AE> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
0x7fff99962000 - 0x7fff99996ff7 com.apple.CoreVideo (1.8 - 191.3) <1AA24A1B-CB84-3F6B-B6DE-11494542649C> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff999b4000 - 0x7fff999f2ff7 libGLImage.dylib (12.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff999f3000 - 0x7fff99a41fff libcurl.4.dylib (90) <12E01E4B-24C9-394C-9D2C-85CF85D5F459> /usr/lib/libcurl.4.dylib
0x7fff99a42000 - 0x7fff99a5cfff com.apple.Kerberos (3.0 - 1) <1B4744BF-E5AE-38E2-AA56-E22D3270F2E8> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff99b8b000 - 0x7fff99b96fff libcsfde.dylib (517.50.1) <52F0DB6A-13B8-355E-ADFD-72834D3CA183> /usr/lib/libcsfde.dylib
0x7fff99e07000 - 0x7fff9a209fff libLAPACK.dylib (1162.2) <42238ED4-6B7A-39D0-BFF2-304A0C287213> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff9a215000 - 0x7fff9a22cff7 libsystem_asl.dylib (323.50.1) <41F8E11F-1BD0-3F1D-BA3A-AA1577ED98A9> /usr/lib/system/libsystem_asl.dylib
0x7fff9a273000 - 0x7fff9a282ffb com.apple.LangAnalysis (1.7.0 - 1.7.0) <18D21123-A3E7-3851-974A-08E5D4540475> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff9a283000 - 0x7fff9a28bfff libcopyfile.dylib (127) /usr/lib/system/libcopyfile.dylib
0x7fff9b081000 - 0x7fff9b088ff7 libcompiler_rt.dylib (62) /usr/lib/system/libcompiler_rt.dylib
0x7fff9b098000 - 0x7fff9b09dfff com.apple.ImageCapture (9.0 - 9.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x7fff9b09e000 - 0x7fff9b0efff7 libcups.2.dylib (435.2) <91584A40-214D-33E8-A613-CE22289037C8> /usr/lib/libcups.2.dylib
0x7fff9b1dd000 - 0x7fff9b214ff7 com.apple.LDAPFramework (2.4.28 - 194.5) <9AE33BF2-FB17-342D-8F1E-5F83C6E6EB69> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x7fff9b215000 - 0x7fff9b643fff com.apple.vision.FaceCore (3.3.1 - 3.3.1) /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x7fff9b644000 - 0x7fff9b645fff liblangid.dylib (122) <9CC4F0D1-5C51-3B69-BC8F-EE3A51FD0822> /usr/lib/liblangid.dylib
0x7fff9b646000 - 0x7fff9b64afff libpam.2.dylib (20) /usr/lib/libpam.2.dylib
0x7fff9b6d8000 - 0x7fff9b6dafff com.apple.loginsupport (1.0 - 1) <9B2F5F9B-ED38-313F-B798-D2B667BCD6B5> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x7fff9b717000 - 0x7fff9b728ff7 libsystem_trace.dylib (201.10.3) /usr/lib/system/libsystem_trace.dylib
0x7fff9b729000 - 0x7fff9b936fff libicucore.A.dylib (551.51.3) <5BC80F94-C90D-3175-BD96-FF1DC222EC9C> /usr/lib/libicucore.A.dylib
0x7fff9b93d000 - 0x7fff9b954ff7 libsystem_coretls.dylib (83.40.5) /usr/lib/system/libsystem_coretls.dylib
0x7fff9b955000 - 0x7fff9b958fff com.apple.IOSurface (108.2.1 - 108.2.1) /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff9baa3000 - 0x7fff9bb12fff com.apple.SearchKit (1.4.0 - 1.4.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x7fff9bb13000 - 0x7fff9bb16fff libCoreVMClient.dylib (119.5) <560D70FB-709F-3030-96C9-F249FCB7DA6D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x7fff9bb84000 - 0x7fff9bb9fff7 libCRFSuite.dylib (34) <078B4CD8-6A8C-3067-B2BA-0C2A0BAB8AC3> /usr/lib/libCRFSuite.dylib
0x7fff9bbce000 - 0x7fff9bbd0ff7 libquarantine.dylib (80) <0F4169F0-0C84-3A25-B3AE-E47B3586D908> /usr/lib/system/libquarantine.dylib
0x7fff9bbd1000 - 0x7fff9bc59fff com.apple.CoreSymbolication (3.1 - 58048.1) <4730422E-4178-34F9-8550-BB92F2A4F44B> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x7fff9bff9000 - 0x7fff9c001fff com.apple.frameworks.CoreDaemon (1.3 - 1.3) /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
0x7fff9c002000 - 0x7fff9c02ffff libdispatch.dylib (501.40.12) /usr/lib/system/libdispatch.dylib
0x7fff9c049000 - 0x7fff9c04bfff com.apple.EFILogin (2.0 - 2) <38150198-DD7F-3C73-BCAA-C74BB376393A> /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
0x7fff9c04c000 - 0x7fff9c169fff libsqlite3.dylib (216.4) /usr/lib/libsqlite3.dylib
0x7fff9c16a000 - 0x7fff9c16ffff com.apple.TCC (1.0 - 1) /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff9c170000 - 0x7fff9c1e4ff7 com.apple.Heimdal (4.0 - 2.0) <5D365381-8B5E-3259-8867-FC4A7D307BDE> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x7fff9c1e5000 - 0x7fff9c272fff libsystem_c.dylib (1082.50.1) /usr/lib/system/libsystem_c.dylib
0x7fff9c273000 - 0x7fff9c273fff libenergytrace.dylib (10.40.1) <0A491CA7-3451-3FD5-999A-58AB4362682B> /usr/lib/libenergytrace.dylib
0x7fff9c274000 - 0x7fff9c298fff com.apple.MultitouchSupport.framework (304.12 - 304.12) <65CB7653-EACD-3ADB-ABB6-2E0671708301> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x7fff9c299000 - 0x7fff9c2d3fff com.apple.QD (3.12 - 302) <0FE53180-2895-3D14-A1E7-F82DE1D106E1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x7fff9c2d4000 - 0x7fff9c2d4ff7 liblaunch.dylib (765.50.8) <834ED605-5114-3641-AA4D-ECF31B801C50> /usr/lib/system/liblaunch.dylib
0x7fff9c2d5000 - 0x7fff9c2e3fff com.apple.opengl (12.1.0 - 12.1.0) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff9c2e4000 - 0x7fff9c2f9ff3 libCGInterfaces.dylib (317.9) <473434E1-5269-3077-A047-D05E024AE631> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib
0x7fff9c2fa000 - 0x7fff9c2fdff7 libCoreFSCache.dylib (119.5) <2389D7DA-B8EF-3EB4-AAAF-FBEDE01CDECA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
0x7fff9c58a000 - 0x7fff9c5a4ff3 liblzma.5.dylib (10) /usr/lib/liblzma.5.dylib
0x7fff9c5bc000 - 0x7fff9c5cdfff libcmph.dylib (6) /usr/lib/libcmph.dylib
0x7fff9c5ce000 - 0x7fff9c6aeff7 unorm8_rgba.dylib (2.7.3) <9EB6C346-CFF6-32D7-B4A1-2409DFBCB216> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib
0x7fff9c6af000 - 0x7fff9c6fbfff com.apple.print.framework.PrintCore (11.2 - 472.2) <5AE8AA6B-CE09-397D-B0D4-0F9CCBF1F77D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x7fff9c6fc000 - 0x7fff9c6fcff7 libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
0x7fff9c6fd000 - 0x7fff9c709fff com.apple.speech.synthesis.framework (5.4.12 - 5.4.12) <71DA00B8-5EA2-326B-8814-59DB25512F65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff9c749000 - 0x7fff9c765ff7 libextension.dylib (78) /usr/lib/libextension.dylib
0x7fff9c7a9000 - 0x7fff9c836dd7 com.apple.AppleJPEG (1.0 - 1) <558ACADA-C41F-3EEF-82A0-C2D7B13C5428> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x7fff9c837000 - 0x7fff9c83ffff libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
0x7fff9c845000 - 0x7fff9c8a0ff7 libTIFF.dylib (1450) <5BB63D48-B807-31FB-B13F-05C60584707E> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff9c8ee000 - 0x7fff9c941ff7 libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
0x7fff9c942000 - 0x7fff9ca34ff7 libiconv.2.dylib (44) /usr/lib/libiconv.2.dylib
0x7fff9ca3c000 - 0x7fff9caf5ff7 libvMisc.dylib (563.5) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff9cb31000 - 0x7fff9cb3dff7 com.apple.OpenDirectory (10.11 - 194) <31A67AD5-5CC2-350A-96D7-821DF4BC4196> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff9cb3f000 - 0x7fff9cba5ff7 libsystem_network.dylib (583.50.1) /usr/lib/system/libsystem_network.dylib
0x7fff9cbb8000 - 0x7fff9cc04ffb com.apple.HIServices (1.22 - 550) <6B76B41C-CF5A-34C4-89F4-EFD7CA3D1C9D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff9cc79000 - 0x7fff9ccbfff7 libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
0x7fff9ccc0000 - 0x7fff9ccefff7 com.apple.DictionaryServices (1.2 - 250.3) <30250542-CBAA-39C1-91AA-B57A5DE17594> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff9d12e000 - 0x7fff9d2baff7 libGLProgrammability.dylib (12.1) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x7fff9d328000 - 0x7fff9d5afff3 com.apple.CFNetwork (760.5.1 - 760.5.1) /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff9d5b0000 - 0x7fff9d5b2ff7 com.apple.securityhi (9.0 - 55006) <1E7BE52B-97EA-371A-AECA-1EE2AD246D8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x7fff9d5cd000 - 0x7fff9d773ff7 com.apple.audio.toolbox.AudioToolbox (1.13 - 1.13) <082319FC-59F2-3D36-AC9B-94759724E302> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff9d7ea000 - 0x7fff9d7eafff com.apple.Cocoa (6.11 - 22) <807787AB-D231-3F51-A99B-A9314623C571> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff9d7eb000 - 0x7fff9da81fff libmecabra.dylib (696.5) /usr/lib/libmecabra.dylib
0x7fff9db04000 - 0x7fff9db0ffff libGL.dylib (12.1) <70D51643-04AC-3400-8F11-A6FC25985289> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff9db10000 - 0x7fff9db1bfff com.apple.CrashReporterSupport (10.11 - 718) <05892B57-F2CD-3C84-B984-0417F6B361DB> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x7fff9db1f000 - 0x7fff9db24fff com.apple.DiskArbitration (2.7 - 2.7) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff9db25000 - 0x7fff9db30fff libkxld.dylib (3248.50.21) <99195052-038E-3490-ACF8-76F9AC43897E> /usr/lib/system/libkxld.dylib
0x7fff9db47000 - 0x7fff9db66ff7 com.apple.framework.Apple80211 (11.0 - 1121.34.2) <90477FAE-B835-3931-80FB-FDFF02B21D9D> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x7fff9dbf4000 - 0x7fff9dbffff7 libGPUSupport.dylib (12.1) <69BE6E5B-789E-38A5-8BEA-5AEDCEDDB8B1> /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupport.dylib
0x7fff9dc08000 - 0x7fff9dc08fff com.apple.Carbon (154 - 157) <8F6ED602-5943-3E29-A793-BC331E2C183D> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff9dc12000 - 0x7fff9dc1afff com.apple.AppleSRP (5.0 - 1) <840A5C20-6452-36BB-ACF7-29BA6CBF7C48> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
0x7fff9dc2e000 - 0x7fff9dc7eff7 com.apple.Symbolication (1.4 - 58044) /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 21
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: 14006533
thread_create: 0
thread_set_state: 0

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

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate.framework 128K 2
Activity Tracing 2048K 2
CG backing stores 4980K 4
CG image 36K 8
CG shared images 240K 6
CoreAnimation 100K 13
CoreUI image data 840K 10
CoreUI image file 320K 5
Dispatch continuations 8192K 2
IOKit 290.3M 28
Kernel Alloc Once 8K 3
MALLOC 214.0M 46
MALLOC guard page 32K 7
Memory Tag 242 12K 2
OpenCL 8K 2
OpenGL GLSL 256K 4
STACK GUARD 56.0M 8
Stack 10.6M 10
Stack (reserved) 520K 2 reserved VM address space (unallocated)
Stack Guard 4K 2
VM_ALLOCATE 52K 7
__DATA 18.3M 218
__GLSLBUILTINS 2588K 2
__IMAGE 528K 2
__LINKEDIT 92.6M 14
__TEXT 143.4M 223
__UNICODE 552K 2
mapped file 46.9M 14
shared memory 26.0M 21
=========== ======= =======
TOTAL 919.1M 640
TOTAL, minus reserved VM space 918.6M 640

Model: MacBookAir4,2, BootROM MBA41.0077.B14, 2 processors, Intel Core i5, 1,7 GHz, 4 GB, SMC 1.73f66
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353737334448302D4348392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353737334448302D4348392020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE9), Broadcom BCM43xx 1.0 (5.106.98.100.24)
Bluetooth: Version 4.4.5f3 17904, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM128C, 121,33 GB
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: Card Reader
USB Device: USB 2.0 Bus
USB Device: FaceTime Camera (Built-in)
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Air, Apple Inc., 8.1

@illi-kun illi-kun added the <Crash / Freeze> Fatal bug that results in hangs or crashes. label Jul 17, 2016
@OneManEquipe
Copy link
Author

Another update: I've done a few builds and the culprit seems to be commit 65ccc57 .
I'm not expert enough to be sure, but I found that commit to be the first one where the crash occurs.
Its parent 67d8e1f seems to work perfectly fine.

Also, commit 65ccc57 is the one that introduces a call to npc_class::finalize_all() in the init.cpp file, which a comment describes as "Horrible - can't be done better?".

@ghost
Copy link

ghost commented Jul 25, 2016

Could you please compile a debug version, so everybody could see the call stack and know which place causes the crash.

@OneManEquipe
Copy link
Author

Uhm.. Can you help me with that?
I just tried compiling with
make app NATIVE=osx OSX_MIN=10.11 TILES=1 CLANG=1 USE_HOME_DIR=1 LOCALIZE=0
and this is the debug.log file, and it looks identical to the one I already posted.

Where do I find the call stack?

@OneManEquipe
Copy link
Author

Sorry, I closed it by mistake..

@ghost
Copy link

ghost commented Jul 25, 2016

Launch cataclysm within the debugger by lldb ./cataclysm commmand, then when see (lldb) prompt press r and enter.

@OneManEquipe
Copy link
Author

This is all I got: lldb output.txt (I'm uploading it as a file because it displays wrong if I paste it here directly).

As before, I compiled with:
make app NATIVE=osx OSX_MIN=10.11 TILES=1 CLANG=1 USE_HOME_DIR=1 LOCALIZE=0

@ghost
Copy link

ghost commented Jul 25, 2016

Sorry forgot to tell you, you'd better compile with RELEASE=0 option. After Cataclysm crashes, in the terminal, type bt in the (lldb) prompt to see the call stack trace.

@OneManEquipe
Copy link
Author

It still doesn't know function names, for some reason.
This is what I got from lldb lldb output.txt, while this is what I've done to get there, including build output: longer version.txt (I had deleted all files just to be sure I'd get a clean build, hence the git reset --hard HEAD).

Am I doing something wrong?

@ghost
Copy link

ghost commented Jul 25, 2016

Weird. How about building in this way:

make clean
make NATIVE=osx OSX_MIN=10.11 RELEASE=0 CLANG=1 LOCALIZE=0 TILES=1 -j4

If you see -g option in the build output, then that's going right. But if it is still -Os, there must be some bugs in Makefile.

@OneManEquipe
Copy link
Author

With the RELEASE=0 it still gives -Os (and still crashes and has no function names).

Now I have tried omitting that and compiled it with
make NATIVE=osx OSX_MIN=10.11 CLANG=1 LOCALIZE=0 TILES=1 -j4
and it showed the -g option instead during build.

And..

It works T_T no segfault this time.

Here is the build output, I don't know if it can be useful: debug build output.txt

@ghost
Copy link

ghost commented Jul 25, 2016

Oh it is weird, crash on release builds, no problem on debug builds. A compiler optimization bug?

@OneManEquipe
Copy link
Author

Yeah, that seems likely. But I'm not a C++ developer, so I have no idea how to look for a solution.

But if you, or anyone else, needs somebody with a Mac to test potential solutions, I'm available.

@ghost
Copy link

ghost commented Jul 27, 2016

Tried with CXXFLAGS='-O2' make CLANG=1 NATIVE=osx OSX_MIN=10.11 LOCALIZE=1 TILES=1 LUA=1 -j4, finally debug information is available, and also the crash reproduces. Here's the call stack.

* thread #1: tid = 0x198b8, 0x00000001006268ea cataclysm-tiles`npc_class::npc_class(npc_class&&) [inlined] std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >::__tree(std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >&&) + 75 at __tree:1302, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00000001006268ea cataclysm-tiles`npc_class::npc_class(npc_class&&) [inlined] std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >::__tree(std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >&&) + 75 at __tree:1302
    frame #1: 0x000000010062689f cataclysm-tiles`npc_class::npc_class(npc_class&&) [inlined] std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >::__tree(std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >&&) at __tree:1294
    frame #2: 0x000000010062689f cataclysm-tiles`npc_class::npc_class(npc_class&&) [inlined] std::__1::map<string_id<Skill>, distribution, std::__1::less<string_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >::map(std::__1::map<string_id<Skill>, distribution, std::__1::less<string_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >&&) at map:951
    frame #3: 0x000000010062689f cataclysm-tiles`npc_class::npc_class(npc_class&&) [inlined] std::__1::map<string_id<Skill>, distribution, std::__1::less<string_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >::map(std::__1::map<string_id<Skill>, distribution, std::__1::less<string_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >&&) at map:952
    frame #4: 0x000000010062689f cataclysm-tiles`npc_class::npc_class(this=0x000000010ddac8f0, (null)=0x000000010ddac470) + 431 at npc_class.h:43
    frame #5: 0x0000000100625ce9 cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] npc_class::npc_class(this=0x000000010ddac8f0, (null)=0x000000010ddac470) + 297 at npc_class.h:43
    frame #6: 0x0000000100625cde cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator<npc_class>::construct<npc_class, npc_class>(__p=0x000000010ddac8f0, __args=0x000000010ddac470) at memory:1731
    frame #7: 0x0000000100625cde cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator_traits<std::__1::allocator<npc_class> >::__construct<npc_class, npc_class>(__p=0x000000010ddac8f0, __args=0x000000010ddac470) at memory:1647
    frame #8: 0x0000000100625cde cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator_traits<std::__1::allocator<npc_class> >::construct<npc_class, npc_class>(__p=0x000000010ddac8f0, __args=0x000000010ddac470) at memory:1493
    frame #9: 0x0000000100625cde cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator_traits<std::__1::allocator<npc_class> >::__construct_backward<npc_class*>(__end1=0x000000010ddac470) + 49 at memory:1609
    frame #10: 0x0000000100625cad cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__swap_out_circular_buffer(this=<unavailable>) + 5 at vector:889
    frame #11: 0x0000000100625ca8 cataclysm-tiles`void std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(this=0x0000000100a7ded0 size=1, __x=<unavailable>) + 232 at vector:1575
    frame #12: 0x000000010062535c cataclysm-tiles`generic_factory<npc_class>::insert(npc_class const&) [inlined] std::__1::vector<npc_class, std::__1::allocator<npc_class> >::push_back(npc_class const&) + 156 at vector:1592
    frame #13: 0x0000000100625331 cataclysm-tiles`generic_factory<npc_class>::insert(this=0x0000000100a7ded0, obj=0x00007fff5fbf75f0) + 113 at generic_factory.h:254
    frame #14: 0x0000000100624bcf cataclysm-tiles`generic_factory<npc_class>::load_override(this=0x0000000100a7ded0, id=0x00007fff5fbf7908, jo=0x00007fff5fbf7a18) + 111 at generic_factory.h:132
    frame #15: 0x0000000100623ac7 cataclysm-tiles`generic_factory<npc_class>::load(this=0x0000000100a7ded0, jo=0x00007fff5fbf7a18) + 679 at generic_factory.h:232
    frame #16: 0x00000001002a4ffe cataclysm-tiles`DynamicDataLoader::load_object(JsonObject&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) [inlined] std::__1::function<void (JsonObject&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::operator()(JsonObject&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const + 254 at functional:1817
    frame #17: 0x00000001002a4fe5 cataclysm-tiles`DynamicDataLoader::load_object(this=<unavailable>, jo=<unavailable>, src=<unavailable>) + 229 at init.cpp:84
    frame #18: 0x00000001002a5df9 cataclysm-tiles`DynamicDataLoader::load_all_from_json(this=0x0000000100a8a6e8, jsin=0x00007fff5fbf7b90, src="core") + 249 at init.cpp:269
    frame #19: 0x00000001002a5876 cataclysm-tiles`DynamicDataLoader::load_data_from_path(this=0x0000000100a8a6e8, path=<unavailable>, src="core") + 1158 at init.cpp:245
    frame #20: 0x00000001002004b0 cataclysm-tiles`game::load_data_from_dir(this=<unavailable>, path="data/json/", src=<unavailable>) + 112 at game.cpp:339
    frame #21: 0x00000001002003ff cataclysm-tiles`game::load_core_data(this=<unavailable>) + 303 at game.cpp:328
    frame #22: 0x0000000100201b78 cataclysm-tiles`game::load_world_modfiles(this=<unavailable>, world=0x0000000123e51860) + 56 at game.cpp:3536
    frame #23: 0x0000000100201718 cataclysm-tiles`game::setup(this=0x0000000123d0fa50) + 40 at game.cpp:687
    frame #24: 0x00000001003f024c cataclysm-tiles`game::opening_screen(this=0x0000000123d0fa50) + 20812 at main_menu.cpp:727
    frame #25: 0x00000001003e76e9 cataclysm-tiles`main(argc=<unavailable>, argv=<unavailable>) + 5801 at main.cpp:466
    frame #26: 0x00007fff905445ad libdyld.dylib`start + 1

@OneManEquipe
Copy link
Author

For some reason I cannot compile with LOCALIZE=1 (I'm missing libintl.h, I'll look into it someday), and if I compile with the same options you used (but with LOCALIZE=0 instead) I don't get the crash.
Can you reproduce this @dlaboratory ?

@ghost
Copy link

ghost commented Jul 27, 2016

I installed Mac OS X 10.11.6 just a few hours ago, and I can reproduce this crash.

I'm missing libintl.h

That's easy to resolve, with Homebrew package manager, install it by brew install gettext and brew link --force gettext.

and if I compile with the same options you used (but with LOCALIZE=0 instead) I don't get the crash.

You mean with CXXFLAGS='-O2'?

@ghost
Copy link

ghost commented Jul 27, 2016

So terrible. The program executes perfectly in debug version, only crashes in release version. Although I tried to generate debug information inside the release version binary by that dirty hack, lots of important variable are optimized out, and a lot of functions are inlined....

error: Couldn't materialize: couldn't get the value of variable files: variable not available
Errored out in Execute, couldn't PrepareToExecuteJITExpression

@OneManEquipe
Copy link
Author

Thanks about the tip, now it compiles with your settings.
I copy-pasted what you wrote: CXXFLAGS='-O2' make CLANG=1 NATIVE=osx OSX_MIN=10.11 LOCALIZE=1 TILES=1 LUA=1 -j4.

I'm on OS X 10.11.5 and I get no crash even with localization (using the options above, I still crash with a release build). I'll update to 10.11.6 and see if I get your results.

Also it might be worth to check whether commit 67d8e1f is still the last working one and 65ccc57 still the first to crash.

@ghost
Copy link

ghost commented Jul 27, 2016

Thanks for your update. Now I give up debugging, begin to statically checking the code.

@ghost
Copy link

ghost commented Jul 27, 2016

I installed GCC 6.1.0 compiler, and the binary built by GCC has no problem, either debug or release.

@OneManEquipe
Copy link
Author

Cool! Does the Jenkins build work for you? If not, maybe it should be changed to build with GCC?

@OneManEquipe
Copy link
Author

Ok I tried on my Mac too, I can confirm that it works perfectly with make NATIVE=osx OSX_MIN=10.11 RELEASE=1 USE_HOME_DIR=1 CXX=g++-6 LOCALIZE=0 TILES=1 -j4.

@ghost
Copy link

ghost commented Jul 28, 2016

However, binary produced by GCC on Mac OS X since 4.9 is not debuggable.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61352

@ghost
Copy link

ghost commented Jul 28, 2016

GNU's compilers and debuggers aren't very acclimatized on OS X, I personally feel. When building tests, it produces massive Undefined symbols error messages, hundreds lines long. And when I use GDB to launch Cataclysm, another hundreds of lines of warning messages of can't open to read symbols scrolled my screen.

gdb.txt
link.txt

So there are two solutions for this issue:

  1. Investigate what causes binary compiled by clang++ crashes. This could be knotty, as the crash only happens in optimized builds, making it very hard to debug.
  2. Solve the compatible problem of GNU toolchains, so developers on Mac will have no problem compiling, linking, debugging Cataclysm with GCC and GDB in the future.

@Coolthulhu
Copy link
Contributor

It looks like the crash happens because of map addressing.
Map addressing should be solid, because it is provided by the compiler.
Meaning the most likely problem here is the key used. In this case it's string_id, which passes the underlying id when used as a key. This could mean that the id is uninitialized when used or something like that.

@ghost
Copy link

ghost commented Jul 28, 2016

Tried with LLVM/Clang 3.8.1. Also crashes.

Compiler Status
Apple LLVM 7.3.0 Crash
LLVM/Clang 3.8.1 Crash
GCC 6.1 No problem

@slater
Copy link
Contributor

slater commented Aug 1, 2016

Any update on this? I'd really like to play the binaries posted at http://dev.narc.ro/cataclysm/jenkins-latest/OSX/Tiles/ :/

@Coolthulhu
Copy link
Contributor

"Release debugging" is kinda hard to do...

I can only suggest tests, but I can't fix it myself since I don't have mac os anywhere nearby.

Since the crashing line seems to be

skills[ skill_id( sid ) ] = dis;

It could be tested by extracting the skill_id( sid ) into a variable and printing a debugmsg with it. Like this:

debugmsg( "the id should be: %s", sid.c_str() );
auto the_id = skill_id( sid );
debugmsg( "the id is: %s", the_id.c_str() );
skills[ the_id ] = dis;

The double debugmsg would help catch a possible crash with initialization.
Then, someone would have to compile this and go through all the debugmsgs to note if any of them are particularly weird and when does it crash - after which debugmsg.

@ghost
Copy link

ghost commented Aug 1, 2016

Two IDs are identical.

the id should be: ALL
the id is: ALL

@Coolthulhu
Copy link
Contributor

Options I see:

  • Clang and Apple LLVM not liking our string_id being used as a map key. Using unordered_map for skills and bonus_skills should make it not happen. Alternatively, replacing the keys with std::string and wrapping it in skill_id where needed.
  • Clang and Apple LLVM not liking std::function copy assignment. Explicitly declaring operator= for distribution then implementing it, preferably in a way that will prevent inlining.

@ghost
Copy link

ghost commented Aug 3, 2016

Oh you're right @Coolthulhu ! I printed the address of that std::function, found it pointing to 0x0000001.

@fubeca
Copy link

fubeca commented Aug 8, 2016

I can confirm that the bug is still present on my Macbook Pro running El Capitan 10.11. Compiling the lastest version with

"make NATIVE=osx OSX_MIN=10.11 TILES=1 SOUND=1 LOCALIZE=0 CLANG=1 LUA=1 FRAMEWORK=1 RELEASE=1 USE_HOME_DIR=1 DEBUGINFO=1"

It crashes at world gen with the following back trace:

* thread #1: tid = 0x11092c, 0x00000001006649fa cataclysm-tilesnpc_class::npc_class(npc_class&&) [inlined] std::__1::__treestd::__1::__value_type<string_id<Skill, distribution>, std::__1::__map_value_compare<string_id, std::__1::__value_type<string_id, distribution>, std::__1::less<string_id >, true>, std::__1::allocatorstd::__1::__value_type<string_id<Skill, distribution> > >::__tree(std::__1::__treestd::__1::__value_type<string_id<Skill, distribution>, std::__1::__map_value_compare<string_id, std::__1::__value_type<string_id, distribution>, std::__1::less<string_id >, true>, std::__1::allocatorstd::__1::__value_type<string_id<Skill, distribution> > >&&) + 75 at __tree:1302, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

  • frame #0: 0x00000001006649fa cataclysm-tilesnpc_class::npc_class(npc_class&&) [inlined] std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >::__tree(std::__1::__tree<std::__1::__value_type<string_id<Skill>, distribution>, std::__1::__map_value_compare<string_id<Skill>, std::__1::__value_type<string_id<Skill>, distribution>, std::__1::less<string_id<Skill> >, true>, std::__1::allocator<std::__1::__value_type<string_id<Skill>, distribution> > >&&) + 75 at __tree:1302 frame #1: 0x00000001006649af cataclysm-tilesnpc_class::npc_class(npc_class&&) [inlined] std::__1::__treestd::__1::__value_type<string_id<Skill, distribution>, std::__1::__map_value_compare<string_id, std::__1::__value_type<string_id, distribution>, std::__1::less<string_id >, true>, std::__1::allocatorstd::__1::__value_type<string_id<Skill, distribution> > >::__tree(std::__1::__treestd::__1::__value_type<string_id<Skill, distribution>, std::__1::__map_value_compare<string_id, std::__1::__value_type<string_id, distribution>, std::__1::less<string_id >, true>, std::__1::allocatorstd::__1::__value_type<string_id<Skill, distribution> > >&&) at __tree:1294
    frame Mutated flowers concept #2: 0x00000001006649af cataclysm-tilesnpc_class::npc_class(npc_class&&) [inlined] std::__1::map<string_id<Skill>, distribution, std::__1::less<string_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >::map(std::__1::map<string_id<Skill>, distribution, std::__1::less<string_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >&&) at map:951 frame #3: 0x00000001006649af cataclysm-tilesnpc_class::npc_class(npc_class&&) [inlined] std::__1::map<string_id, distribution, std::__1::less<string_id >, std::__1::allocatorstd::__1::pair<string_id<Skill const, distribution> > >::map(std::__1::map<string_id, distribution, std::__1::less<string_id >, std::__1::allocatorstd::__1::pair<string_id<Skill const, distribution> > >&&) at map:952
    frame Fix compile issues with g++4.2 #4: 0x00000001006649af cataclysm-tilesnpc_class::npc_class(this=0x000000011055a7a0, (null)=0x000000011055a390) + 431 at npc_class.h:43 g_id<Skill> >, std::__1::allocator<std::__1::pair<string_id<Skill> const, distribution> > >&&) at map:952 frame #4: 0x00000001006649af cataclysm-tilesnpc_class::npc_class(this=0x000000011055a7a0, (null)=0x000000011055a390) + 431 at npc_class.h:43
    frame Friendly NPCs will now move out of the way #5: 0x0000000100663e99 cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] npc_class::npc_class(this=0x000000011055a7a0, (null)=0x000000011055a390) + 297 at npc_class.h:43 frame #6: 0x0000000100663e8e cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator<npc_class>::construct<npc_class, npc_class>(__p=0x000000011055a7a0, __args=0x000000011055a390) at memory:1731
    frame Configurable difficulty level, groundwork for a severe rewrite of how names are handled. #7: 0x0000000100663e8e cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator_traits<std::__1::allocator<npc_class> >::__construct<npc_class, npc_class>(__p=0x000000011055a7a0, __args=0x000000011055a390) at memory:1647 frame #8: 0x0000000100663e8e cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator_traitsstd::__1::allocator<npc_class >::construct<npc_class, npc_class>(__p=0x000000011055a7a0, __args=0x000000011055a390) at memory:1493
    frame Improved autosave semantics #9: 0x0000000100663e8e cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] void std::__1::allocator_traits<std::__1::allocator<npc_class> >::__construct_backward<npc_class*>(__end1=0x000000011055a390) + 49 at memory:1609 frame #10: 0x0000000100663e5d cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(npc_class const&&&) [inlined] std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__swap_out_circular_buffer(this=) + 5 at vector:889
    frame Fix for wildnerness overspawning #11: 0x0000000100663e58 cataclysm-tilesvoid std::__1::vector<npc_class, std::__1::allocator<npc_class> >::__push_back_slow_path<npc_class const&>(this=0x0000000100af5120 size=1, __x=<unavailable>) + 232 at vector:1575 frame #12: 0x000000010066359c cataclysm-tilesgeneric_factory<npc_class>::insert(npc_class const&) [inlined] std::__1::vector<npc_class, std::__1::allocator<npc_class> >::push_back(npc_class const&) + 156 at vector:1592
    frame Autosave: The bane of my existence! #13: 0x0000000100663571 cataclysm-tilesgeneric_factory<npc_class>::insert(this=0x0000000100af5120, obj=0x00007fff5fbf7590) + 113 at generic_factory.h:254 frame #14: 0x0000000100662d0e cataclysm-tilesgeneric_factory<npc_class>::load_override(this=0x0000000100af5120, id=0x00007fff5fbf78a8, jo=0x00007fff5fbf79b8) + 110 at generic_factory.h:132
    frame Working towards a unified Makefile #15: 0x00000001006619a3 cataclysm-tilesgeneric_factory<npc_class>::load(this=0x0000000100af5120, jo=0x00007fff5fbf79b8) + 755 at generic_factory.h:232 frame #16: 0x00000001002b82ce cataclysm-tilesDynamicDataLoader::load_object(JsonObject&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) [inlined] std::__1::function<void (JsonObject&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)>::operator()(JsonObject&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) const + 254 at functional:1817
    frame construction bugfixes and more build changes #17: 0x00000001002b82b5 cataclysm-tilesDynamicDataLoader::load_object(this=<unavailable>, jo=<unavailable>, src=<unavailable>) + 229 at init.cpp:84 frame #18: 0x00000001002b90c9 cataclysm-tilesDynamicDataLoader::load_all_from_json(this=0x0000000100b01938, jsin=0x00007fff5fbf7b30, src="core") + 249 at init.cpp:269
    frame Fix issue with bindist target on OS X #19: 0x00000001002b8b46 cataclysm-tilesDynamicDataLoader::load_data_from_path(this=0x0000000100b01938, path=<unavailable>, src="core") + 1158 at init.cpp:245 frame #20: 0x000000010020d930 cataclysm-tilesgame::load_data_from_dir(this=, path="data/json/", src=) + 112 at game.cpp:342
    frame segfault on going downstairs #21: 0x000000010020d87f cataclysm-tilesgame::load_core_data(this=<unavailable>) + 303 at game.cpp:331 frame #22: 0x000000010020f0b8 cataclysm-tilesgame::load_world_modfiles(this=, world=0x000000010182fd40) + 56 at game.cpp:3566
    frame fixed toolless constructions #23: 0x000000010020ec58 cataclysm-tilesgame::setup(this=0x0000000121a66120) + 40 at game.cpp:690 frame #24: 0x00000001004125dd cataclysm-tilesgame::opening_screen(this=0x0000000121a66120) + 8589 at main_menu.cpp:463
    frame Loadable skills #25: 0x000000010040c729 cataclysm-tilesmain(argc=<unavailable>, argv=<unavailable>) + 5577 at main.cpp:466

Since we're suspicious of optimization by the compiler as the culprit, I compiled the source using the "-O3", "-O2", and "-O1" optimization flags, each in turn. The crash was present each time with the same backtrace.

Using "-O0" (optimizations off?) resulted in a functioning binary.

@ghost
Copy link

ghost commented Aug 8, 2016

Fixed in my #17898 , but hasn't been merged by core developers yet.

@SpencerMichaels
Copy link
Contributor

SpencerMichaels commented Aug 20, 2016

For some reason the person who fixed this closed #17898 and deleted their account, so the PR can't be merged. I've recreated the fix in #18092 (with a note that it isn't originally mine, of course).

@SpencerMichaels
Copy link
Contributor

This bug is now fixed via #18092 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes.
Projects
None yet
Development

No branches or pull requests

8 participants