<#280 [macOS-13.4.1] `Segmentation fault: 11` star...
# openlane-development
g
#280 [macOS-13.4.1] `Segmentation fault: 11` starting `magic` Issue created by gnawhleinad I've installed
magic
following the instructions from `INSTALL_MacOS.md#with-brew`. I've validated that the `configure`1 ran successfully:
Copy code
Configuration Summary (principle requirements):

X11:          yes
Python3:      yes
OpenGL:       yes
Vector fonts: yes
Cairo:        yes
Tcl/Tk:       yes
I've also validated the
DISPLAY
is set and I'm running
magic
from the XQuartz window:
Copy code
$ echo $DISPLAY
/private/tmp/com.apple.launchd.2proAh9BYB/org.xquartz:0
Unfortunately,
magic
immediately exits with a `Segmentation fault: 11`: ``` Process: wish8.6 [96060] Path: /opt/homebrew/*/wish Identifier: wish8.6 Version: ??? Code Type: ARM-64 (Native) Parent Process: bash [72771] Responsible: X11.bin [72377] User ID: 501 Date/Time: 2023-11-19 100141.7780 -0800 OS Version: macOS 13.4.1 (22F770820d) Report Version: 12 Anonymous UUID: 82A0E882-AF1C-BA2F-79F6-AB9F63A53DB2 Sleep/Wake UUID: 4A5EA58B-8933-453A-B017-36BA26F99D95 Time Awake Since Boot: 2000000 seconds Time Since Wake: 1860 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000050 Exception Codes: 0x0000000000000001, 0x0000000000000050 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [96060] VM Region Info: 0x50 is not in any region. Bytes before following region: 105553518919600 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-/rwx SM=NUL ...(unallocated) Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libX11.6.dylib 0x10e57ee40 XDefaultColormap + 12 1 tclmagic.dylib 0x10d7be140 GrTkInit + 412 2 tclmagic.dylib 0x10d7c0b00 x11SetDisplay + 1004 3 tclmagic.dylib 0x10d7b0000 GrSetDisplay + 620 4 tclmagic.dylib 0x10d8413d8 mainInitAfterArgs + 564 5 tclmagic.dylib 0x10d93dea0 _magic_initialize + 652 6 libtcl8.6.dylib 0x1008bd91c TclInvokeStringCommand + 120 7 libtcl8.6.dylib 0x1008bf068 TclNRRunCallbacks + 80 8 libtcl8.6.dylib 0x10094c5a8 ChildEval + 132 9 libtcl8.6.dylib 0x10094a13c NRInterpCmd + 1692 10 libtcl8.6.dylib 0x1008bf068 TclNRRunCallbacks + 80 11 libtcl8.6.dylib 0x1008bfdcc TclEvalEx + 1640 12 libtcl8.6.dylib 0x100960788 Tcl_FSEvalFileEx + 512 13 libtk8.6.dylib 0x10075f3c8 Tk_MainEx + 1388 14 wish8.6 0x100572e3c main + 56 15 dyld 0x19687bf28 start + 2236 Thread 1: 0 libsystem_pthread.dylib 0x196bced8c start_wqthread + 0 Thread 2: 0 libsystem_pthread.dylib 0x196bced8c start_wqthread + 0 Thread 3:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x196b93f14 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x196ba6240 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x196b9cb78 mach_msg_overwrite + 604 3 libsystem_kernel.dylib 0x196b94290 mach_msg + 24 4 CoreFoundation 0x196cb27e4 __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x196cb10c4 __CFRunLoopRun + 1208 6 CoreFoundation 0x196cb04b8 CFRunLoopRunSpecific + 612 7 AppKit 0x199ffc334 _NSEventThread + 172 8 libsystem_pthread.dylib 0x196bd3fa8 _pthread_start + 148 9 libsystem_pthread.dylib 0x196bceda0 thread_start + 8 Thread 4: 0 libsystem_kernel.dylib 0x196b9eff0 __select + 8 1 libtcl8.6.dylib 0x1009b71f0 NotifierThreadProc + 628 2 libsystem_pthread.dylib 0x196bd3fa8 _pthread_start + 148 3 libsystem_pthread.dylib 0x196bceda0 thread_start + 8 Thread 5: 0 libsystem_pthread.dylib 0x196bced8c start_wqthread + 0 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000136071a10 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000036 x5: 0x0000000000000035 x6: 0x0000000000000035 x7: 0x000000016f892728 x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000000136326910 x12: 0x000000010e2420b8 x13: 0x0000000000000020 x14: 0x0000000000000001 x15: 0x0018000000000001 x16: 0x000000010e57ee34 x17: 0x0000000000000035 x18: 0x0000000000000000 x19: 0x0000000135b14610 x20: 0x0000000000000002 x21: 0x0000000135b5adc0 x22: 0x0000000135ac4090 x23: 0x000000013615b730 x24: 0x0000000000000000 x25: 0x0000000135b5add0 x26: 0x000000013601d290 x27: 0x000000013601d2f0 x28: 0x00000000000014cf fp: 0x000000016f892860 lr: 0x000000010d7be140 sp: 0x000000016f892670 pc: 0x000000010e57ee40 cpsr: 0x20001000 far: 0x0000000000000050 esr: 0x92000006 (Data Abort) byte read Translation fault Binary Images: 0x10056c000 - 0x100573fff wish8.6 (*) <e5231774-8b61-3d29-9f04-04a8688a8592> /opt/homebrew/*/wish8.6 0x100738000 - 0x10083ffff libtk8.6.dylib (*) <887d3269-6be3-3d4d-a7ed-327ef55e3f64> /opt/homebrew/*/libtk8.6.dylib 0x1008ac000 - 0x1009d7fff libtcl8.6.dylib (*) <d0dfb9ec-d5cb-3e77-8fd4-b72df97057be> /opt/homebrew/*/libtcl8.6.dylib 0x10c07c000 - 0x10c087fff libobjc-trampolines.dylib (*) <570c31f7-94c6-3b86-ae44-1694db0a4bcd> /usr/lib/libobjc-trampolines.dylib 0x10d6c4000 - 0x10d96bfff tclmagic.dylib (*) <bec49421-f089-3532-86b7-024723e96597> /usr/local/lib/magic/tcl/tclmagic.dylib 0x10e56c000 - 0x10e65bfff libX11.6.dylib (*) <85a7413a-7238-3ecb-af88-78deb37dc2bf> /opt/X11/*/libX11.6.dylib 0x10d4a0000 - 0x10d4e3fff libGL.1.dylib (*) <15e96a6a-55c1-3a51-a1ec-69340ca81d8d> /opt/X11/*/libGL.1.dylib 0x10d35c000 - 0x10d3bbfff libGLU.1.dylib (*) <b8b8a1bd-dc0d-3df8-b361-51db30a51045> /opt/X11/*/libGLU.1.dylib 0x10d514000 - 0x10d5e3fff libcairo.2.dylib (*) <3f554ab9-d686-307b-b383-ec34ea504ed9> /opt/X11/*/libcairo.2.dylib 0x10d3e8000 - 0x10d41bfff libfontconfig.1.dylib (*) <0ef5df10-dbec-3fa0-a6e9-19dde3252132> /opt/X11/*/libfontconfig.1.dylib 0x10e888000 - 0x10e90bfff libfreetype.6.dylib (*) <083cb0b5-37a3-346d-a77c-96c957aeeab6> /opt/X11/*/libfreetype.6.dylib 0x10d434000 - 0x10d447fff libxcb.1.dylib (*) <335e5b70-9435-366b-a17a-b980bcd5a4f2> /opt/X11/*/libxcb.1.dylib 0x10d62c000 - 0x10d62ffff libXau.6.dylib (*) <aa9a4a03-f4a3-3c9d-8e67-1cbc9682f841> /opt/X11/*/libXau.6.dylib 0x10d640000 - 0x10d677fff libglapi.0.dylib (*) <91fd2107-3155-3182-9a8c-edbb84bdb3f1> /opt/X11/*/libglapi.0.dylib 0x10d464000 - 0x10d46bfff libxcb-glx.0.dylib (*) <dc684108-4977-36bb-9e06-35f12b68912b> /opt/X11/*/libxcb-glx.0.dylib 0x10d488000 - 0x10d48bfff libX11-xcb.1.dylib (*) <1db0a4a4-8bab-3552-9395-145ec5b16d58> /opt/X11/*/libX11-xcb.1.dylib 0x10d6a0000 - 0x10d6abfff libXext.6.dylib (*) <3149eef3-7b2a-3472-b066-5a2a1a14f20e> /opt/X11/*/libXext… RTimothyEdwards/magic