Hangs & crashes with SIGTRAP (Pointer Authentication) on macOS 15.5 #1137

Closed
opened 2026-02-16 17:29:34 -05:00 by yindo · 17 comments
Owner

Originally created by @brittlewis12 on GitHub (Aug 6, 2025).

Originally assigned to: @thdxr on GitHub.

┃ >       fish: Job 1, 'opencode .' terminated by signal SIGTRAP (Trace or breakpoint trap)
Image

I can reproduce this by calling /models or attempting to send a message. more innocuous commands like /help or /themes seem to work ok.

I have configured Anthropic with an oauth token (opencode auth login) and I have an OpenAI api key that's being picked up from the environment.

I am running the latest opencode:

$ opencode --version
0.3.132

I originally had opencode installed by bun globally (bun 1.2.19 is installed via mise).
I then uninstalled that and installed via homebrew, to the same effect.

I experience this in and out of tmux; I briefly attempted with zsh to no avail.

not much of use comes up from opencode --log-level DEBUG:

full log output for ~/.local/share/opencode/log/2025-08-06T202446.log
INFO  2025-08-06T20:24:46 +46ms service=default version=0.3.132 args=["--log-level=DEBUG"] opencode
INFO  2025-08-06T20:24:46 +0ms service=app cwd=/Users/britt/code/eevee creating
INFO  2025-08-06T20:24:46 +1ms service=app git=/Users/britt/code/eevee git
INFO  2025-08-06T20:24:46 +2ms service=bus type=storage.write subscribing
INFO  2025-08-06T20:24:46 +0ms service=app name=bus registering service
INFO  2025-08-06T20:24:46 +1ms service=format init
INFO  2025-08-06T20:24:46 +0ms service=bus type=file.edited subscribing
INFO  2025-08-06T20:24:46 +0ms service=bus type=* subscribing
INFO  2025-08-06T20:24:46 +0ms service=config.hooks init
INFO  2025-08-06T20:24:46 +0ms service=bus type=file.edited subscribing
INFO  2025-08-06T20:24:46 +0ms service=bus type=session.idle subscribing
INFO  2025-08-06T20:24:46 +0ms service=app name=lsp registering service
INFO  2025-08-06T20:24:46 +0ms service=app name=config registering service
INFO  2025-08-06T20:24:46 +0ms service=app name=provider registering service
INFO  2025-08-06T20:24:46 +1ms service=config path=/Users/britt/.config/opencode/config.json loading
INFO  2025-08-06T20:24:46 +0ms service=config path=/Users/britt/.config/opencode/opencode.json loading
INFO  2025-08-06T20:24:46 +0ms service=config path=/Users/britt/.config/opencode/opencode.jsonc loading
INFO  2025-08-06T20:24:46 +1ms service=config agent={} mode={} plugin=[] username=britt loaded
INFO  2025-08-06T20:24:46 +1ms service=models.dev file={} refreshing
INFO  2025-08-06T20:24:46 +1ms service=provider init
INFO  2025-08-06T20:24:46 +1ms service=provider providerID=openai found
INFO  2025-08-06T20:24:46 +0ms service=provider providerID=anthropic found
INFO  2025-08-06T20:24:46 +3ms service=default cmd=["/Users/britt/.cache/opencode/tui/tui-wpsvhfv7."] tui
INFO  2025-08-06T20:24:46 +0ms service=app name=mode registering service
INFO  2025-08-06T20:24:47 +66ms service=server method=GET path=/config request
INFO  2025-08-06T20:24:47 +1ms service=server duration=1 response
DEBUG 2025-08-06T20:24:47 +1ms service=tui app={"hostname":"spectrier.local","time":{},"git":true,"path":{"config":"/Users/britt/.config/opencode","state":"/Users/britt/.local/state/opencode","data":"/Users/britt/.local/share/opencode/project/Users-britt-code-eevee","root":"/Users/britt/code/eevee","cwd":"/Users/britt/code/eevee"}} modes=[{"name":"build","tools":{}},{"name":"plan","tools":{"write":false,"edit":false,"patch":false}}] url=http://127.0.0.1:50277/ TUI launched
DEBUG 2025-08-06T20:24:47 +2ms service=tui config={"$schema":"","agent":{"general":{"description":"","disable":false,"model":"","prompt":"","temperature":0,"tools":{},"top_p":0}},"autoshare":false,"autoupdate":false,"disabled_providers":[],"experimental":{"hook":{"file_edited":{},"session_completed":[]}},"formatter":{},"instructions":[],"keybinds":{"app_exit":"","app_help":"","editor_open":"","file_close":"","file_diff_toggle":"","file_list":"","file_search":"","input_clear":"","input_newline":"","input_paste":"","input_submit":"","leader":"ctrl+x","messages_copy":"","messages_first":"","messages_half_page_down":"","messages_half_page_up":"","messages_last":"","messages_layout_toggle":"","messages_next":"","messages_page_down":"","messages_page_up":"","messages_previous":"","messages_redo":"","messages_revert":"","messages_undo":"","model_list":"","project_init":"","session_compact":"","session_export":"","session_interrupt":"","session_list":"","session_new":"","session_share":"","session_unshare":"","switch_mode":"","switch_mode_reverse":"","theme_list":"","tool_details":""},"layout":"","lsp":{},"mcp":{},"mode":{"build":{"disable":false,"model":"","prompt":"","temperature":0,"tools":{},"top_p":0},"plan":{"disable":false,"model":"","prompt":"","temperature":0,"tools":{},"top_p":0}},"model":"","permission":{"edit":""},"plugin":[],"provider":{},"share":"","small_model":"","theme":"","username":"britt"} Loaded config
INFO  2025-08-06T20:24:47 +0ms service=server method=GET path=/file/status request
INFO  2025-08-06T20:24:47 +1ms service=tui commands={"app_exit":{},"app_help":{},"editor_open":{},"file_close":{},"file_diff_toggle":{},"file_search":{},"input_clear":{},"input_newline":{},"input_paste":{},"input_submit":{},"messages_copy":{},"messages_first":{},"messages_half_page_down":{},"messages_half_page_up":{},"messages_last":{},"messages_layout_toggle":{},"messages_next":{},"messages_page_down":{},"messages_page_up":{},"messages_previous":{},"messages_redo":{},"messages_undo":{},"model_list":{},"project_init":{},"session_compact":{},"session_export":{},"session_interrupt":{},"session_list":{},"session_new":{},"session_share":{},"session_unshare":{},"switch_mode":{},"switch_mode_reverse":{},"theme_list":{},"tool_details":{}} Loaded commands
INFO  2025-08-06T20:24:47 +1ms service=server method=GET path=/event request
INFO  2025-08-06T20:24:47 +0ms service=server event connected
INFO  2025-08-06T20:24:47 +1ms service=bus type=* subscribing
INFO  2025-08-06T20:24:47 +0ms service=server duration=1 response
INFO  2025-08-06T20:24:47 +1ms service=server method=GET path=/tui/control/next request
INFO  2025-08-06T20:24:47 +4ms service=server method=GET path=/config/providers request
INFO  2025-08-06T20:24:47 +1ms service=server duration=1 response
DEBUG 2025-08-06T20:24:47 +1ms service=tui model=claude-opus-4-1-20250805 provider=anthropic Selected model from recent usage
DEBUG 2025-08-06T20:24:47 +11ms service=tui timeTakenMs=0 messages.renderView
DEBUG 2025-08-06T20:24:47 +3ms service=tui file=/Users/britt/.local/state/opencode/tui State saved to file
DEBUG 2025-08-06T20:24:47 +0ms service=tui color=#161617 isDark=true Background color
DEBUG 2025-08-06T20:24:47 +4ms service=tui timeTakenMs=0 messages.renderView
DEBUG 2025-08-06T20:24:47 +0ms service=tui file=/Users/britt/.local/state/opencode/tui State saved to file

Originally created by @brittlewis12 on GitHub (Aug 6, 2025). Originally assigned to: @thdxr on GitHub. ``` ┃ > fish: Job 1, 'opencode .' terminated by signal SIGTRAP (Trace or breakpoint trap) ``` <img width="1888" height="2368" alt="Image" src="https://github.com/user-attachments/assets/f86a75ce-da38-43c7-b225-4c152ddd256e" /> I can reproduce this by calling `/models` or attempting to send a message. more innocuous commands like `/help` or `/themes` seem to work ok. I have configured Anthropic with an oauth token (opencode auth login) and I have an OpenAI api key that's being picked up from the environment. I am running the latest opencode: ``` $ opencode --version 0.3.132 ``` I originally had opencode installed by bun globally (bun 1.2.19 is installed via mise). I then uninstalled that and installed via homebrew, to the same effect. I experience this in and out of tmux; I briefly attempted with zsh to no avail. not much of use comes up from `opencode --log-level DEBUG`: <details><summary>full log output for ~/.local/share/opencode/log/2025-08-06T202446.log</summary> ```log INFO 2025-08-06T20:24:46 +46ms service=default version=0.3.132 args=["--log-level=DEBUG"] opencode INFO 2025-08-06T20:24:46 +0ms service=app cwd=/Users/britt/code/eevee creating INFO 2025-08-06T20:24:46 +1ms service=app git=/Users/britt/code/eevee git INFO 2025-08-06T20:24:46 +2ms service=bus type=storage.write subscribing INFO 2025-08-06T20:24:46 +0ms service=app name=bus registering service INFO 2025-08-06T20:24:46 +1ms service=format init INFO 2025-08-06T20:24:46 +0ms service=bus type=file.edited subscribing INFO 2025-08-06T20:24:46 +0ms service=bus type=* subscribing INFO 2025-08-06T20:24:46 +0ms service=config.hooks init INFO 2025-08-06T20:24:46 +0ms service=bus type=file.edited subscribing INFO 2025-08-06T20:24:46 +0ms service=bus type=session.idle subscribing INFO 2025-08-06T20:24:46 +0ms service=app name=lsp registering service INFO 2025-08-06T20:24:46 +0ms service=app name=config registering service INFO 2025-08-06T20:24:46 +0ms service=app name=provider registering service INFO 2025-08-06T20:24:46 +1ms service=config path=/Users/britt/.config/opencode/config.json loading INFO 2025-08-06T20:24:46 +0ms service=config path=/Users/britt/.config/opencode/opencode.json loading INFO 2025-08-06T20:24:46 +0ms service=config path=/Users/britt/.config/opencode/opencode.jsonc loading INFO 2025-08-06T20:24:46 +1ms service=config agent={} mode={} plugin=[] username=britt loaded INFO 2025-08-06T20:24:46 +1ms service=models.dev file={} refreshing INFO 2025-08-06T20:24:46 +1ms service=provider init INFO 2025-08-06T20:24:46 +1ms service=provider providerID=openai found INFO 2025-08-06T20:24:46 +0ms service=provider providerID=anthropic found INFO 2025-08-06T20:24:46 +3ms service=default cmd=["/Users/britt/.cache/opencode/tui/tui-wpsvhfv7."] tui INFO 2025-08-06T20:24:46 +0ms service=app name=mode registering service INFO 2025-08-06T20:24:47 +66ms service=server method=GET path=/config request INFO 2025-08-06T20:24:47 +1ms service=server duration=1 response DEBUG 2025-08-06T20:24:47 +1ms service=tui app={"hostname":"spectrier.local","time":{},"git":true,"path":{"config":"/Users/britt/.config/opencode","state":"/Users/britt/.local/state/opencode","data":"/Users/britt/.local/share/opencode/project/Users-britt-code-eevee","root":"/Users/britt/code/eevee","cwd":"/Users/britt/code/eevee"}} modes=[{"name":"build","tools":{}},{"name":"plan","tools":{"write":false,"edit":false,"patch":false}}] url=http://127.0.0.1:50277/ TUI launched DEBUG 2025-08-06T20:24:47 +2ms service=tui config={"$schema":"","agent":{"general":{"description":"","disable":false,"model":"","prompt":"","temperature":0,"tools":{},"top_p":0}},"autoshare":false,"autoupdate":false,"disabled_providers":[],"experimental":{"hook":{"file_edited":{},"session_completed":[]}},"formatter":{},"instructions":[],"keybinds":{"app_exit":"","app_help":"","editor_open":"","file_close":"","file_diff_toggle":"","file_list":"","file_search":"","input_clear":"","input_newline":"","input_paste":"","input_submit":"","leader":"ctrl+x","messages_copy":"","messages_first":"","messages_half_page_down":"","messages_half_page_up":"","messages_last":"","messages_layout_toggle":"","messages_next":"","messages_page_down":"","messages_page_up":"","messages_previous":"","messages_redo":"","messages_revert":"","messages_undo":"","model_list":"","project_init":"","session_compact":"","session_export":"","session_interrupt":"","session_list":"","session_new":"","session_share":"","session_unshare":"","switch_mode":"","switch_mode_reverse":"","theme_list":"","tool_details":""},"layout":"","lsp":{},"mcp":{},"mode":{"build":{"disable":false,"model":"","prompt":"","temperature":0,"tools":{},"top_p":0},"plan":{"disable":false,"model":"","prompt":"","temperature":0,"tools":{},"top_p":0}},"model":"","permission":{"edit":""},"plugin":[],"provider":{},"share":"","small_model":"","theme":"","username":"britt"} Loaded config INFO 2025-08-06T20:24:47 +0ms service=server method=GET path=/file/status request INFO 2025-08-06T20:24:47 +1ms service=tui commands={"app_exit":{},"app_help":{},"editor_open":{},"file_close":{},"file_diff_toggle":{},"file_search":{},"input_clear":{},"input_newline":{},"input_paste":{},"input_submit":{},"messages_copy":{},"messages_first":{},"messages_half_page_down":{},"messages_half_page_up":{},"messages_last":{},"messages_layout_toggle":{},"messages_next":{},"messages_page_down":{},"messages_page_up":{},"messages_previous":{},"messages_redo":{},"messages_undo":{},"model_list":{},"project_init":{},"session_compact":{},"session_export":{},"session_interrupt":{},"session_list":{},"session_new":{},"session_share":{},"session_unshare":{},"switch_mode":{},"switch_mode_reverse":{},"theme_list":{},"tool_details":{}} Loaded commands INFO 2025-08-06T20:24:47 +1ms service=server method=GET path=/event request INFO 2025-08-06T20:24:47 +0ms service=server event connected INFO 2025-08-06T20:24:47 +1ms service=bus type=* subscribing INFO 2025-08-06T20:24:47 +0ms service=server duration=1 response INFO 2025-08-06T20:24:47 +1ms service=server method=GET path=/tui/control/next request INFO 2025-08-06T20:24:47 +4ms service=server method=GET path=/config/providers request INFO 2025-08-06T20:24:47 +1ms service=server duration=1 response DEBUG 2025-08-06T20:24:47 +1ms service=tui model=claude-opus-4-1-20250805 provider=anthropic Selected model from recent usage DEBUG 2025-08-06T20:24:47 +11ms service=tui timeTakenMs=0 messages.renderView DEBUG 2025-08-06T20:24:47 +3ms service=tui file=/Users/britt/.local/state/opencode/tui State saved to file DEBUG 2025-08-06T20:24:47 +0ms service=tui color=#161617 isDark=true Background color DEBUG 2025-08-06T20:24:47 +4ms service=tui timeTakenMs=0 messages.renderView DEBUG 2025-08-06T20:24:47 +0ms service=tui file=/Users/britt/.local/state/opencode/tui State saved to file ``` </details>
yindo closed this issue 2026-02-16 17:29:34 -05:00
Author
Owner

@brittlewis12 commented on GitHub (Aug 6, 2025):

Update: it would seem this may be pointer authentication-related for apple silicon:

"esr":{"value":4060136561,"description":"(Breakpoint) pointer authentication trap IB"}

all the distribution methods i've tried (bash via opencode.ai/install, homebrew, bun) have ad-hoc signed binaries without jit entitlements. on macOS 15.5, this seems to be causing SIGTRAP crashes when Bun's JSC tries to jit.

I tried manually signing it with jit entitlements to see if this can be worked around locally, but the child processes spawned do not seem to inherit the entitlements anyhow

full crash dump:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               opencode [3913]
Path:                  /Users/USER/*/opencode
Identifier:            opencode
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        fish [96960]
Responsible:           ghostty [1440]
User ID:               501

Date/Time:             2025-08-06 16:51:23.3954 -0400
OS Version:            macOS 15.5 (24F74)
Report Version:        12
Anonymous UUID:        B4743F7B-F5ED-E19E-DCF7-45531C7F060E

Sleep/Wake UUID:       6AC9F4D8-0611-424C-8E91-B990B56C2FA4

Time Awake Since Boot: 2400000 seconds
Time Since Wake:       197002 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001039989e8

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [3913]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   opencode                      	       0x1039989e8 0x1023f8000 + 22677992
1   opencode                      	       0x103466ce8 0x1023f8000 + 17231080
2   opencode                      	       0x102f256d8 0x1023f8000 + 11720408
3   opencode                      	       0x1034678ac 0x1023f8000 + 17234092
4   opencode                      	       0x102eafbb4 0x1023f8000 + 11238324
5   opencode                      	       0x102971580 0x1023f8000 + 5739904
6   opencode                      	       0x102743ef0 0x1023f8000 + 3456752
7   opencode                      	       0x1026a6dd4 0x1023f8000 + 2813396
8   opencode                      	       0x10268520c 0x1023f8000 + 2675212
9   opencode                      	       0x10346f5b8 0x1023f8000 + 17266104
10  opencode                      	       0x1026477a4 0x1023f8000 + 2422692
11  opencode                      	       0x1023fc858 0x1023f8000 + 18520
12  opencode                      	       0x1023fb5a8 0x1023f8000 + 13736
13  dyld                          	       0x196586b98 start + 6076

Thread 1:: Bun Pool 0
0   libsystem_kernel.dylib        	       0x1968f2a54 __ulock_wait2 + 8
1   opencode                      	       0x1051ac598 0x1023f8000 + 47924632
2   opencode                      	       0x1028e433c 0x1023f8000 + 5161788
3   opencode                      	       0x102c1b12c 0x1023f8000 + 8532268
4   opencode                      	       0x1028e3c38 0x1023f8000 + 5159992
5   libsystem_pthread.dylib       	       0x196926c0c _pthread_start + 136
6   libsystem_pthread.dylib       	       0x196921b80 thread_start + 8

Thread 2:: Bun Pool 1
0   libsystem_kernel.dylib        	       0x1968f2a54 __ulock_wait2 + 8
1   opencode                      	       0x1051ac598 0x1023f8000 + 47924632
2   opencode                      	       0x1028e433c 0x1023f8000 + 5161788
3   opencode                      	       0x102c1b12c 0x1023f8000 + 8532268
4   opencode                      	       0x1028e3c38 0x1023f8000 + 5159992
5   libsystem_pthread.dylib       	       0x196926c0c _pthread_start + 136
6   libsystem_pthread.dylib       	       0x196921b80 thread_start + 8

Thread 3:: Bun Pool 2
0   libsystem_kernel.dylib        	       0x1968f2a54 __ulock_wait2 + 8
1   opencode                      	       0x1051ac598 0x1023f8000 + 47924632
2   opencode                      	       0x1028e433c 0x1023f8000 + 5161788
3   opencode                      	       0x102c1b12c 0x1023f8000 + 8532268
4   opencode                      	       0x1028e3c38 0x1023f8000 + 5159992
5   libsystem_pthread.dylib       	       0x196926c0c _pthread_start + 136
6   libsystem_pthread.dylib       	       0x196921b80 thread_start + 8

Thread 4:: HTTP Client
0   libsystem_kernel.dylib        	       0x1968f095c kevent64 + 8
1   opencode                      	       0x10343fc20 0x1023f8000 + 17071136
2   opencode                      	       0x102d057a4 0x1023f8000 + 9492388
3   opencode                      	       0x102b41e90 0x1023f8000 + 7642768
4   libsystem_pthread.dylib       	       0x196926c0c _pthread_start + 136
5   libsystem_pthread.dylib       	       0x196921b80 thread_start + 8

Thread 5:
0   libsystem_pthread.dylib       	       0x196921b6c start_wqthread + 0

Thread 6:: JavaScriptCore libpas scavenger
0   opencode                      	       0x104ec69f4 0x1023f8000 + 44886516
1   opencode                      	       0x104ec5c68 0x1023f8000 + 44883048
2   opencode                      	       0x104eb393c 0x1023f8000 + 44808508
3   libsystem_pthread.dylib       	       0x196926c0c _pthread_start + 136
4   libsystem_pthread.dylib       	       0x196921b80 thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000353   x1: 0x0000000105983984   x2: 0x0000000105983a0d   x3: 0x0000000000000013
    x4: 0x00000001100d8080   x5: 0x00000000000000a1   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000001   x9: 0x9c81b5e6cb950046  x10: 0x0000000000003ff0  x11: 0x00000001100dbff0
   x12: 0x0000000000000020  x13: 0x0000000000003f54  x14: 0x0000000000003f54  x15: 0x5dfe913d836d80a2
   x16: 0x000000019695d824  x17: 0x0000000205a88228  x18: 0x0000000000000000  x19: 0x000000016d9e5d48
   x20: 0x0000000618010000  x21: 0x000000016d9e5d40  x22: 0x00000000bf979bdf  x23: 0x0000000618010000
   x24: 0x00000000ca1685e5  x25: 0x0000059f84680980  x26: 0x0000000000000000  x27: 0x000000016d9e62a0
   x28: 0x0000059f84632320   fp: 0x000000016d9e5d30   lr: 0x0000000103998988
    sp: 0x000000016d9e5d00   pc: 0x00000001039989e8 cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf200c471 (Breakpoint) pointer authentication trap IB

Binary Images:
       0x1023f8000 -        0x105a6ffff opencode (*) <a4eab6f8-52bf-36e6-89e5-0cb097902304> /Users/USER/*/opencode
       0x196580000 -        0x19661b4cf dyld (*) <9cf0401a-a938-389e-a77d-9e9608076ccf> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x19695d000 -        0x196964b4f libsystem_platform.dylib (*) <519f3220-7499-334a-96d6-ccf3dc28f986> /usr/lib/system/libsystem_platform.dylib
       0x1968e4000 -        0x19691f653 libsystem_kernel.dylib (*) <60485b6f-67e5-38c1-aec9-efd6031ff166> /usr/lib/system/libsystem_kernel.dylib
       0x196920000 -        0x19692ca47 libsystem_pthread.dylib (*) <647b91fc-96d3-3bbb-af08-970df45257c8> /usr/lib/system/libsystem_pthread.dylib
       0x19692d000 -        0x19695cba3 libdyld.dylib (*) <c62596fe-63c5-3502-bbd1-14147a7ca921> /usr/lib/system/libdyld.dylib

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

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
IOAccelerator                      9.4G       80 
IOAccelerator (reserved)           2.5G        2         reserved VM address space (unallocated)
JS JIT generated code            512.0M        3 
JS VM Gigacage                   420.4M        2 
JS VM Gigacage (reserved)         63.6G        2         reserved VM address space (unallocated)
Kernel Alloc Once                   32K        1 
MALLOC                             1.0G       23 
MALLOC guard page                   96K        6 
STACK GUARD                        112K        7 
Stack                             35.2M        7 
VM_ALLOCATE                      128.0M        1 
VM_ALLOCATE (reserved)             3.9G        2         reserved VM address space (unallocated)
WebKit Malloc                    274.8M       26 
__AUTH                             822K      161 
__AUTH_CONST                      12.8M      295 
__BUN                             24.2M        1 
__DATA                            4406K      276 
__DATA_CONST                      11.8M      296 
__DATA_DIRTY                       468K       89 
__FONT_DATA                        2352        1 
__LINKEDIT                       616.2M        3 
__OBJC_RO                         61.4M        1 
__OBJC_RW                         2396K        1 
__TEXT                           283.1M      305 
__TPRO_CONST                       128K        2 
mapped file                       32.7M        3 
page table in kernel              4899K        1 
shared memory                       48K        2 
===========                     =======  ======= 
TOTAL                             82.8G     1600 
TOTAL, minus reserved VM space    12.8G     1600 



-----------
Full Report
-----------

{"app_name":"opencode","timestamp":"2025-08-06 16:51:23.00 -0400","app_version":"","slice_uuid":"a4eab6f8-52bf-36e6-89e5-0cb097902304","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.5 (24F74)","roots_installed":0,"incident_id":"876A2181-ECEA-4E45-AA43-A1686082AFF4","name":"opencode"}
{
  "uptime" : 2400000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,6",
  "coalitionID" : 1096,
  "osVersion" : {
    "train" : "macOS 15.5",
    "build" : "24F74",
    "releaseType" : "User"
  },
  "captureTime" : "2025-08-06 16:51:23.3954 -0400",
  "codeSigningMonitor" : 1,
  "incident" : "876A2181-ECEA-4E45-AA43-A1686082AFF4",
  "pid" : 3913,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2025-08-06 16:50:55.0884 -0400",
  "procStartAbsTime" : 58708675556092,
  "procExitAbsTime" : 58709354909842,
  "procName" : "opencode",
  "procPath" : "\/Users\/USER\/*\/opencode",
  "parentProc" : "fish",
  "parentPid" : 96960,
  "coalitionName" : "com.mitchellh.ghostty",
  "crashReporterKey" : "B4743F7B-F5ED-E19E-DCF7-45531C7F060E",
  "appleIntelligenceStatus" : {"state":"available"},
  "responsiblePid" : 1440,
  "responsibleProc" : "ghostty",
  "codeSigningID" : "a.out",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570556929,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "codeSigningAuxiliaryInfo" : 0,
  "instructionByteStream" : {"beforePC":"9E9CqfZXQan4X8SowANf1kH\/APAhECaRQv8A8EI0KJFgaoBSYwKAUg==","atPC":"II441CAAINT2V72p9E8Bqf17Aqn9gwCR9QMBqvYDAKrzAwiqAAWAUg=="},
  "bootSessionUUID" : "2DC609DB-20FF-484F-A09D-AD06A86B8562",
  "wakeTime" : 197002,
  "sleepWakeUUID" : "6AC9F4D8-0611-424C-8E91-B990B56C2FA4",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001039989e8","rawCodes":[1,4355361256],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":3913},
  "os_fault" : {"process":"opencode"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":12,"task_for_pid":1},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":70431653,"threadState":{"x":[{"value":851},{"value":4388829572},{"value":4388829709},{"value":19},{"value":4564287616},{"value":161},{"value":0},{"value":0},{"value":1},{"value":11277494944775077958},{"value":16368},{"value":4564303856},{"value":32},{"value":16212},{"value":16212},{"value":6773010582995828898},{"value":6821369892,"symbolLocation":0,"symbol":"os_unfair_lock_unlock"},{"value":8684864040},{"value":0},{"value":6134062408},{"value":26172522496},{"value":6134062400},{"value":3214384095},{"value":26172522496},{"value":3390473701},{"value":6182679349632},{"value":0},{"value":6134063776},{"value":6182679028512}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4355361160},"cpsr":{"value":1610616832},"fp":{"value":6134062384},"sp":{"value":6134062336},"esr":{"value":4060136561,"description":"(Breakpoint) pointer authentication trap IB"},"pc":{"value":4355361256,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":22677992,"imageIndex":0},{"imageOffset":17231080,"imageIndex":0},{"imageOffset":11720408,"imageIndex":0},{"imageOffset":17234092,"imageIndex":0},{"imageOffset":11238324,"imageIndex":0},{"imageOffset":5739904,"imageIndex":0},{"imageOffset":3456752,"imageIndex":0},{"imageOffset":2813396,"imageIndex":0},{"imageOffset":2675212,"imageIndex":0},{"imageOffset":17266104,"imageIndex":0},{"imageOffset":2422692,"imageIndex":0},{"imageOffset":18520,"imageIndex":0},{"imageOffset":13736,"imageIndex":0},{"imageOffset":27544,"symbol":"start","symbolLocation":6076,"imageIndex":1}]},{"id":70431659,"name":"Bun Pool 0","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4395554476},{"value":0},{"value":49155},{"value":4395554472},{"value":2},{"value":0},{"value":2},{"value":252},{"value":544},{"value":5502959616},{"value":0},{"value":4395554476},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6141290216},{"value":6141290216}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4380607896},"cpsr":{"value":1073745920},"fp":{"value":6141289904},"sp":{"value":6141289904},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431660,"name":"Bun Pool 1","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4395554476},{"value":0},{"value":49153},{"value":4395554472},{"value":0},{"value":0},{"value":0},{"value":12},{"value":544},{"value":5637177344},{"value":0},{"value":4395554476},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6145533672},{"value":6145533672}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4380607896},"cpsr":{"value":1073745920},"fp":{"value":6145533360},"sp":{"value":6145533360},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431661,"name":"Bun Pool 2","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4395554476},{"value":0},{"value":49154},{"value":4395554472},{"value":3},{"value":0},{"value":3},{"value":4},{"value":544},{"value":5771395072},{"value":0},{"value":4395554476},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6149777128},{"value":6149777128}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4380607896},"cpsr":{"value":1073745920},"fp":{"value":6149776816},"sp":{"value":6149776816},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431665,"name":"HTTP Client","threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":5637374160},{"value":1024},{"value":0},{"value":0},{"value":18446744073709551125},{"value":49360},{"value":6155743456},{"value":9},{"value":1},{"value":2},{"value":6155738982},{"value":2025},{"value":51},{"value":369},{"value":5637505024},{"value":0},{"value":5637373952},{"value":5637374160},{"value":0},{"value":65535},{"value":12297829382473034410},{"value":6182806952960},{"value":0},{"value":6155742544},{"value":16646288086500911323},{"value":4394631896}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4349754400},"cpsr":{"value":1610616832},"fp":{"value":6155739888},"sp":{"value":6155739856},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820923740},"far":{"value":0}},"frames":[{"imageOffset":51548,"symbol":"kevent64","symbolLocation":8,"imageIndex":4},{"imageOffset":17071136,"imageIndex":0},{"imageOffset":9492388,"imageIndex":0},{"imageOffset":7642768,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431668,"frames":[{"imageOffset":7020,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6156890112},{"value":11267},{"value":6156353536},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6156890112},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6821124972},"far":{"value":0}}},{"id":70432119,"name":"JavaScriptCore libpas scavenger","threadState":{"x":[{"value":4426219520},{"value":1},{"value":1958},{"value":4426236048},{"value":6134755023},{"value":6134755008},{"value":32199642253194849},{"value":0},{"value":11277494944775077958},{"value":4447803928},{"value":36},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":6821370632,"symbolLocation":0,"symbol":"os_unfair_lock_lock"},{"value":8684854800},{"value":0},{"value":6134755023},{"value":4426236048},{"value":4426236048},{"value":4426219520},{"value":6134755008},{"value":4426219520},{"value":4426744112},{"value":80},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377566312},"cpsr":{"value":1610616832},"fp":{"value":6134754912},"sp":{"value":6134754528},"esr":{"value":2449473547,"description":"(Data Abort) byte read Access flag fault"},"pc":{"value":4377569780},"far":{"value":0}},"frames":[{"imageOffset":44886516,"imageIndex":0},{"imageOffset":44883048,"imageIndex":0},{"imageOffset":44808508,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4332683264,
    "size" : 57114624,
    "uuid" : "a4eab6f8-52bf-36e6-89e5-0cb097902304",
    "path" : "\/Users\/USER\/*\/opencode",
    "name" : "opencode"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6817316864,
    "size" : 636112,
    "uuid" : "9cf0401a-a938-389e-a77d-9e9608076ccf",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6821367808,
    "size" : 31568,
    "uuid" : "519f3220-7499-334a-96d6-ccf3dc28f986",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6820872192,
    "size" : 243284,
    "uuid" : "60485b6f-67e5-38c1-aec9-efd6031ff166",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6821117952,
    "size" : 51784,
    "uuid" : "647b91fc-96d3-3bbb-af08-970df45257c8",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6821171200,
    "size" : 195492,
    "uuid" : "c62596fe-63c5-3502-bbd1-14147a7ca921",
    "path" : "\/usr\/lib\/system\/libdyld.dylib",
    "name" : "libdyld.dylib"
  }
],
  "sharedCache" : {
  "base" : 6816481280,
  "size" : 5047205888,
  "uuid" : "d7397d7f-8df9-3920-81a7-c0a144be9c51"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=899.3M resident=0K(0%) swapped_out_or_unallocated=899.3M(100%)\nWritable regions: Total=81.5G written=4899K(0%) resident=4899K(0%) swapped_out=0K(0%) unallocated=81.5G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nIOAccelerator                      9.4G       80 \nIOAccelerator (reserved)           2.5G        2         reserved VM address space (unallocated)\nJS JIT generated code            512.0M        3 \nJS VM Gigacage                   420.4M        2 \nJS VM Gigacage (reserved)         63.6G        2         reserved VM address space (unallocated)\nKernel Alloc Once                   32K        1 \nMALLOC                             1.0G       23 \nMALLOC guard page                   96K        6 \nSTACK GUARD                        112K        7 \nStack                             35.2M        7 \nVM_ALLOCATE                      128.0M        1 \nVM_ALLOCATE (reserved)             3.9G        2         reserved VM address space (unallocated)\nWebKit Malloc                    274.8M       26 \n__AUTH                             822K      161 \n__AUTH_CONST                      12.8M      295 \n__BUN                             24.2M        1 \n__DATA                            4406K      276 \n__DATA_CONST                      11.8M      296 \n__DATA_DIRTY                       468K       89 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       616.2M        3 \n__OBJC_RO                         61.4M        1 \n__OBJC_RW                         2396K        1 \n__TEXT                           283.1M      305 \n__TPRO_CONST                       128K        2 \nmapped file                       32.7M        3 \npage table in kernel              4899K        1 \nshared memory                       48K        2 \n===========                     =======  ======= \nTOTAL                             82.8G     1600 \nTOTAL, minus reserved VM space    12.8G     1600 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "dd36b669e38b1aad7e9670220c09dea043368a80",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6246d6a916a70b047e454124",
      "factorPackIds" : {

      },
      "deploymentId" : 240000010
    },
    {
      "rolloutId" : "642da32dea3b2418c750f848",
      "factorPackIds" : {
        "VISUAL_INTELLIGENCE_VICTORIA" : "66d8b2f77cd4b62688efd2cf"
      },
      "deploymentId" : 240000004
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "f18344bb-554f-48ae-8449-e108a8813a55",
      "experimentId" : "6685b5584477001000e8c6c9",
      "deploymentId" : 400000009
    }
  ]
}
}

@brittlewis12 commented on GitHub (Aug 6, 2025): Update: it would seem this may be pointer authentication-related for apple silicon: ``` "esr":{"value":4060136561,"description":"(Breakpoint) pointer authentication trap IB"} ``` all the distribution methods i've tried (bash via opencode.ai/install, homebrew, bun) have ad-hoc signed binaries without [jit entitlements](https://developer.apple.com/documentation/BundleResources/Entitlements/com.apple.security.cs.allow-jit). on macOS 15.5, this seems to be causing SIGTRAP crashes when Bun's JSC tries to jit. I tried manually signing it with jit entitlements to see if this can be worked around locally, but the child processes spawned do not seem to inherit the entitlements anyhow <details><summary>full crash dump:</summary> ``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: opencode [3913] Path: /Users/USER/*/opencode Identifier: opencode Version: ??? Code Type: ARM-64 (Native) Parent Process: fish [96960] Responsible: ghostty [1440] User ID: 501 Date/Time: 2025-08-06 16:51:23.3954 -0400 OS Version: macOS 15.5 (24F74) Report Version: 12 Anonymous UUID: B4743F7B-F5ED-E19E-DCF7-45531C7F060E Sleep/Wake UUID: 6AC9F4D8-0611-424C-8E91-B990B56C2FA4 Time Awake Since Boot: 2400000 seconds Time Since Wake: 197002 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000001039989e8 Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Terminating Process: exc handler [3913] Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 opencode 0x1039989e8 0x1023f8000 + 22677992 1 opencode 0x103466ce8 0x1023f8000 + 17231080 2 opencode 0x102f256d8 0x1023f8000 + 11720408 3 opencode 0x1034678ac 0x1023f8000 + 17234092 4 opencode 0x102eafbb4 0x1023f8000 + 11238324 5 opencode 0x102971580 0x1023f8000 + 5739904 6 opencode 0x102743ef0 0x1023f8000 + 3456752 7 opencode 0x1026a6dd4 0x1023f8000 + 2813396 8 opencode 0x10268520c 0x1023f8000 + 2675212 9 opencode 0x10346f5b8 0x1023f8000 + 17266104 10 opencode 0x1026477a4 0x1023f8000 + 2422692 11 opencode 0x1023fc858 0x1023f8000 + 18520 12 opencode 0x1023fb5a8 0x1023f8000 + 13736 13 dyld 0x196586b98 start + 6076 Thread 1:: Bun Pool 0 0 libsystem_kernel.dylib 0x1968f2a54 __ulock_wait2 + 8 1 opencode 0x1051ac598 0x1023f8000 + 47924632 2 opencode 0x1028e433c 0x1023f8000 + 5161788 3 opencode 0x102c1b12c 0x1023f8000 + 8532268 4 opencode 0x1028e3c38 0x1023f8000 + 5159992 5 libsystem_pthread.dylib 0x196926c0c _pthread_start + 136 6 libsystem_pthread.dylib 0x196921b80 thread_start + 8 Thread 2:: Bun Pool 1 0 libsystem_kernel.dylib 0x1968f2a54 __ulock_wait2 + 8 1 opencode 0x1051ac598 0x1023f8000 + 47924632 2 opencode 0x1028e433c 0x1023f8000 + 5161788 3 opencode 0x102c1b12c 0x1023f8000 + 8532268 4 opencode 0x1028e3c38 0x1023f8000 + 5159992 5 libsystem_pthread.dylib 0x196926c0c _pthread_start + 136 6 libsystem_pthread.dylib 0x196921b80 thread_start + 8 Thread 3:: Bun Pool 2 0 libsystem_kernel.dylib 0x1968f2a54 __ulock_wait2 + 8 1 opencode 0x1051ac598 0x1023f8000 + 47924632 2 opencode 0x1028e433c 0x1023f8000 + 5161788 3 opencode 0x102c1b12c 0x1023f8000 + 8532268 4 opencode 0x1028e3c38 0x1023f8000 + 5159992 5 libsystem_pthread.dylib 0x196926c0c _pthread_start + 136 6 libsystem_pthread.dylib 0x196921b80 thread_start + 8 Thread 4:: HTTP Client 0 libsystem_kernel.dylib 0x1968f095c kevent64 + 8 1 opencode 0x10343fc20 0x1023f8000 + 17071136 2 opencode 0x102d057a4 0x1023f8000 + 9492388 3 opencode 0x102b41e90 0x1023f8000 + 7642768 4 libsystem_pthread.dylib 0x196926c0c _pthread_start + 136 5 libsystem_pthread.dylib 0x196921b80 thread_start + 8 Thread 5: 0 libsystem_pthread.dylib 0x196921b6c start_wqthread + 0 Thread 6:: JavaScriptCore libpas scavenger 0 opencode 0x104ec69f4 0x1023f8000 + 44886516 1 opencode 0x104ec5c68 0x1023f8000 + 44883048 2 opencode 0x104eb393c 0x1023f8000 + 44808508 3 libsystem_pthread.dylib 0x196926c0c _pthread_start + 136 4 libsystem_pthread.dylib 0x196921b80 thread_start + 8 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000353 x1: 0x0000000105983984 x2: 0x0000000105983a0d x3: 0x0000000000000013 x4: 0x00000001100d8080 x5: 0x00000000000000a1 x6: 0x0000000000000000 x7: 0x0000000000000000 x8: 0x0000000000000001 x9: 0x9c81b5e6cb950046 x10: 0x0000000000003ff0 x11: 0x00000001100dbff0 x12: 0x0000000000000020 x13: 0x0000000000003f54 x14: 0x0000000000003f54 x15: 0x5dfe913d836d80a2 x16: 0x000000019695d824 x17: 0x0000000205a88228 x18: 0x0000000000000000 x19: 0x000000016d9e5d48 x20: 0x0000000618010000 x21: 0x000000016d9e5d40 x22: 0x00000000bf979bdf x23: 0x0000000618010000 x24: 0x00000000ca1685e5 x25: 0x0000059f84680980 x26: 0x0000000000000000 x27: 0x000000016d9e62a0 x28: 0x0000059f84632320 fp: 0x000000016d9e5d30 lr: 0x0000000103998988 sp: 0x000000016d9e5d00 pc: 0x00000001039989e8 cpsr: 0x60001000 far: 0x0000000000000000 esr: 0xf200c471 (Breakpoint) pointer authentication trap IB Binary Images: 0x1023f8000 - 0x105a6ffff opencode (*) <a4eab6f8-52bf-36e6-89e5-0cb097902304> /Users/USER/*/opencode 0x196580000 - 0x19661b4cf dyld (*) <9cf0401a-a938-389e-a77d-9e9608076ccf> /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x19695d000 - 0x196964b4f libsystem_platform.dylib (*) <519f3220-7499-334a-96d6-ccf3dc28f986> /usr/lib/system/libsystem_platform.dylib 0x1968e4000 - 0x19691f653 libsystem_kernel.dylib (*) <60485b6f-67e5-38c1-aec9-efd6031ff166> /usr/lib/system/libsystem_kernel.dylib 0x196920000 - 0x19692ca47 libsystem_pthread.dylib (*) <647b91fc-96d3-3bbb-af08-970df45257c8> /usr/lib/system/libsystem_pthread.dylib 0x19692d000 - 0x19695cba3 libdyld.dylib (*) <c62596fe-63c5-3502-bbd1-14147a7ca921> /usr/lib/system/libdyld.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 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: 1 thread_create: 0 thread_set_state: 12 VM Region Summary: ReadOnly portion of Libraries: Total=899.3M resident=0K(0%) swapped_out_or_unallocated=899.3M(100%) Writable regions: Total=81.5G written=4899K(0%) resident=4899K(0%) swapped_out=0K(0%) unallocated=81.5G(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 IOAccelerator 9.4G 80 IOAccelerator (reserved) 2.5G 2 reserved VM address space (unallocated) JS JIT generated code 512.0M 3 JS VM Gigacage 420.4M 2 JS VM Gigacage (reserved) 63.6G 2 reserved VM address space (unallocated) Kernel Alloc Once 32K 1 MALLOC 1.0G 23 MALLOC guard page 96K 6 STACK GUARD 112K 7 Stack 35.2M 7 VM_ALLOCATE 128.0M 1 VM_ALLOCATE (reserved) 3.9G 2 reserved VM address space (unallocated) WebKit Malloc 274.8M 26 __AUTH 822K 161 __AUTH_CONST 12.8M 295 __BUN 24.2M 1 __DATA 4406K 276 __DATA_CONST 11.8M 296 __DATA_DIRTY 468K 89 __FONT_DATA 2352 1 __LINKEDIT 616.2M 3 __OBJC_RO 61.4M 1 __OBJC_RW 2396K 1 __TEXT 283.1M 305 __TPRO_CONST 128K 2 mapped file 32.7M 3 page table in kernel 4899K 1 shared memory 48K 2 =========== ======= ======= TOTAL 82.8G 1600 TOTAL, minus reserved VM space 12.8G 1600 ----------- Full Report ----------- {"app_name":"opencode","timestamp":"2025-08-06 16:51:23.00 -0400","app_version":"","slice_uuid":"a4eab6f8-52bf-36e6-89e5-0cb097902304","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.5 (24F74)","roots_installed":0,"incident_id":"876A2181-ECEA-4E45-AA43-A1686082AFF4","name":"opencode"} { "uptime" : 2400000, "procRole" : "Unspecified", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "Mac15,6", "coalitionID" : 1096, "osVersion" : { "train" : "macOS 15.5", "build" : "24F74", "releaseType" : "User" }, "captureTime" : "2025-08-06 16:51:23.3954 -0400", "codeSigningMonitor" : 1, "incident" : "876A2181-ECEA-4E45-AA43-A1686082AFF4", "pid" : 3913, "translated" : false, "cpuType" : "ARM-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2025-08-06 16:50:55.0884 -0400", "procStartAbsTime" : 58708675556092, "procExitAbsTime" : 58709354909842, "procName" : "opencode", "procPath" : "\/Users\/USER\/*\/opencode", "parentProc" : "fish", "parentPid" : 96960, "coalitionName" : "com.mitchellh.ghostty", "crashReporterKey" : "B4743F7B-F5ED-E19E-DCF7-45531C7F060E", "appleIntelligenceStatus" : {"state":"available"}, "responsiblePid" : 1440, "responsibleProc" : "ghostty", "codeSigningID" : "a.out", "codeSigningTeamID" : "", "codeSigningFlags" : 570556929, "codeSigningValidationCategory" : 10, "codeSigningTrustLevel" : 4294967295, "codeSigningAuxiliaryInfo" : 0, "instructionByteStream" : {"beforePC":"9E9CqfZXQan4X8SowANf1kH\/APAhECaRQv8A8EI0KJFgaoBSYwKAUg==","atPC":"II441CAAINT2V72p9E8Bqf17Aqn9gwCR9QMBqvYDAKrzAwiqAAWAUg=="}, "bootSessionUUID" : "2DC609DB-20FF-484F-A09D-AD06A86B8562", "wakeTime" : 197002, "sleepWakeUUID" : "6AC9F4D8-0611-424C-8E91-B990B56C2FA4", "sip" : "enabled", "exception" : {"codes":"0x0000000000000001, 0x00000001039989e8","rawCodes":[1,4355361256],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"}, "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":3913}, "os_fault" : {"process":"opencode"}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":12,"task_for_pid":1},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":70431653,"threadState":{"x":[{"value":851},{"value":4388829572},{"value":4388829709},{"value":19},{"value":4564287616},{"value":161},{"value":0},{"value":0},{"value":1},{"value":11277494944775077958},{"value":16368},{"value":4564303856},{"value":32},{"value":16212},{"value":16212},{"value":6773010582995828898},{"value":6821369892,"symbolLocation":0,"symbol":"os_unfair_lock_unlock"},{"value":8684864040},{"value":0},{"value":6134062408},{"value":26172522496},{"value":6134062400},{"value":3214384095},{"value":26172522496},{"value":3390473701},{"value":6182679349632},{"value":0},{"value":6134063776},{"value":6182679028512}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4355361160},"cpsr":{"value":1610616832},"fp":{"value":6134062384},"sp":{"value":6134062336},"esr":{"value":4060136561,"description":"(Breakpoint) pointer authentication trap IB"},"pc":{"value":4355361256,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":22677992,"imageIndex":0},{"imageOffset":17231080,"imageIndex":0},{"imageOffset":11720408,"imageIndex":0},{"imageOffset":17234092,"imageIndex":0},{"imageOffset":11238324,"imageIndex":0},{"imageOffset":5739904,"imageIndex":0},{"imageOffset":3456752,"imageIndex":0},{"imageOffset":2813396,"imageIndex":0},{"imageOffset":2675212,"imageIndex":0},{"imageOffset":17266104,"imageIndex":0},{"imageOffset":2422692,"imageIndex":0},{"imageOffset":18520,"imageIndex":0},{"imageOffset":13736,"imageIndex":0},{"imageOffset":27544,"symbol":"start","symbolLocation":6076,"imageIndex":1}]},{"id":70431659,"name":"Bun Pool 0","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4395554476},{"value":0},{"value":49155},{"value":4395554472},{"value":2},{"value":0},{"value":2},{"value":252},{"value":544},{"value":5502959616},{"value":0},{"value":4395554476},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6141290216},{"value":6141290216}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4380607896},"cpsr":{"value":1073745920},"fp":{"value":6141289904},"sp":{"value":6141289904},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431660,"name":"Bun Pool 1","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4395554476},{"value":0},{"value":49153},{"value":4395554472},{"value":0},{"value":0},{"value":0},{"value":12},{"value":544},{"value":5637177344},{"value":0},{"value":4395554476},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6145533672},{"value":6145533672}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4380607896},"cpsr":{"value":1073745920},"fp":{"value":6145533360},"sp":{"value":6145533360},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431661,"name":"Bun Pool 2","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4395554476},{"value":0},{"value":49154},{"value":4395554472},{"value":3},{"value":0},{"value":3},{"value":4},{"value":544},{"value":5771395072},{"value":0},{"value":4395554476},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6149777128},{"value":6149777128}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4380607896},"cpsr":{"value":1073745920},"fp":{"value":6149776816},"sp":{"value":6149776816},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431665,"name":"HTTP Client","threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":5637374160},{"value":1024},{"value":0},{"value":0},{"value":18446744073709551125},{"value":49360},{"value":6155743456},{"value":9},{"value":1},{"value":2},{"value":6155738982},{"value":2025},{"value":51},{"value":369},{"value":5637505024},{"value":0},{"value":5637373952},{"value":5637374160},{"value":0},{"value":65535},{"value":12297829382473034410},{"value":6182806952960},{"value":0},{"value":6155742544},{"value":16646288086500911323},{"value":4394631896}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4349754400},"cpsr":{"value":1610616832},"fp":{"value":6155739888},"sp":{"value":6155739856},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820923740},"far":{"value":0}},"frames":[{"imageOffset":51548,"symbol":"kevent64","symbolLocation":8,"imageIndex":4},{"imageOffset":17071136,"imageIndex":0},{"imageOffset":9492388,"imageIndex":0},{"imageOffset":7642768,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70431668,"frames":[{"imageOffset":7020,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6156890112},{"value":11267},{"value":6156353536},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6156890112},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6821124972},"far":{"value":0}}},{"id":70432119,"name":"JavaScriptCore libpas scavenger","threadState":{"x":[{"value":4426219520},{"value":1},{"value":1958},{"value":4426236048},{"value":6134755023},{"value":6134755008},{"value":32199642253194849},{"value":0},{"value":11277494944775077958},{"value":4447803928},{"value":36},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":6821370632,"symbolLocation":0,"symbol":"os_unfair_lock_lock"},{"value":8684854800},{"value":0},{"value":6134755023},{"value":4426236048},{"value":4426236048},{"value":4426219520},{"value":6134755008},{"value":4426219520},{"value":4426744112},{"value":80},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377566312},"cpsr":{"value":1610616832},"fp":{"value":6134754912},"sp":{"value":6134754528},"esr":{"value":2449473547,"description":"(Data Abort) byte read Access flag fault"},"pc":{"value":4377569780},"far":{"value":0}},"frames":[{"imageOffset":44886516,"imageIndex":0},{"imageOffset":44883048,"imageIndex":0},{"imageOffset":44808508,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 4332683264, "size" : 57114624, "uuid" : "a4eab6f8-52bf-36e6-89e5-0cb097902304", "path" : "\/Users\/USER\/*\/opencode", "name" : "opencode" }, { "source" : "P", "arch" : "arm64e", "base" : 6817316864, "size" : 636112, "uuid" : "9cf0401a-a938-389e-a77d-9e9608076ccf", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "size" : 0, "source" : "A", "base" : 0, "uuid" : "00000000-0000-0000-0000-000000000000" }, { "source" : "P", "arch" : "arm64e", "base" : 6821367808, "size" : 31568, "uuid" : "519f3220-7499-334a-96d6-ccf3dc28f986", "path" : "\/usr\/lib\/system\/libsystem_platform.dylib", "name" : "libsystem_platform.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6820872192, "size" : 243284, "uuid" : "60485b6f-67e5-38c1-aec9-efd6031ff166", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6821117952, "size" : 51784, "uuid" : "647b91fc-96d3-3bbb-af08-970df45257c8", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6821171200, "size" : 195492, "uuid" : "c62596fe-63c5-3502-bbd1-14147a7ca921", "path" : "\/usr\/lib\/system\/libdyld.dylib", "name" : "libdyld.dylib" } ], "sharedCache" : { "base" : 6816481280, "size" : 5047205888, "uuid" : "d7397d7f-8df9-3920-81a7-c0a144be9c51" }, "vmSummary" : "ReadOnly portion of Libraries: Total=899.3M resident=0K(0%) swapped_out_or_unallocated=899.3M(100%)\nWritable regions: Total=81.5G written=4899K(0%) resident=4899K(0%) swapped_out=0K(0%) unallocated=81.5G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nIOAccelerator 9.4G 80 \nIOAccelerator (reserved) 2.5G 2 reserved VM address space (unallocated)\nJS JIT generated code 512.0M 3 \nJS VM Gigacage 420.4M 2 \nJS VM Gigacage (reserved) 63.6G 2 reserved VM address space (unallocated)\nKernel Alloc Once 32K 1 \nMALLOC 1.0G 23 \nMALLOC guard page 96K 6 \nSTACK GUARD 112K 7 \nStack 35.2M 7 \nVM_ALLOCATE 128.0M 1 \nVM_ALLOCATE (reserved) 3.9G 2 reserved VM address space (unallocated)\nWebKit Malloc 274.8M 26 \n__AUTH 822K 161 \n__AUTH_CONST 12.8M 295 \n__BUN 24.2M 1 \n__DATA 4406K 276 \n__DATA_CONST 11.8M 296 \n__DATA_DIRTY 468K 89 \n__FONT_DATA 2352 1 \n__LINKEDIT 616.2M 3 \n__OBJC_RO 61.4M 1 \n__OBJC_RW 2396K 1 \n__TEXT 283.1M 305 \n__TPRO_CONST 128K 2 \nmapped file 32.7M 3 \npage table in kernel 4899K 1 \nshared memory 48K 2 \n=========== ======= ======= \nTOTAL 82.8G 1600 \nTOTAL, minus reserved VM space 12.8G 1600 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "logWritingSignature" : "dd36b669e38b1aad7e9670220c09dea043368a80", "trialInfo" : { "rollouts" : [ { "rolloutId" : "6246d6a916a70b047e454124", "factorPackIds" : { }, "deploymentId" : 240000010 }, { "rolloutId" : "642da32dea3b2418c750f848", "factorPackIds" : { "VISUAL_INTELLIGENCE_VICTORIA" : "66d8b2f77cd4b62688efd2cf" }, "deploymentId" : 240000004 } ], "experiments" : [ { "treatmentId" : "f18344bb-554f-48ae-8449-e108a8813a55", "experimentId" : "6685b5584477001000e8c6c9", "deploymentId" : 400000009 } ] } } ``` </details>
Author
Owner

@brittlewis12 commented on GitHub (Aug 6, 2025):

a little more smoke re: codesign entitlement requirements ratcheting up with 15.5
https://github.com/sqlc-dev/sqlc/issues/4016
https://github.com/tetratelabs/wazero/issues/2393

@brittlewis12 commented on GitHub (Aug 6, 2025): a little more smoke re: codesign entitlement requirements ratcheting up with 15.5 https://github.com/sqlc-dev/sqlc/issues/4016 https://github.com/tetratelabs/wazero/issues/2393
Author
Owner

@brittlewis12 commented on GitHub (Aug 6, 2025):

another quick update:

  • Crash M3 Pro: 0x1036989e8 → offset 0x0ca09e8 in __TEXT (instruction is b.hi, so the branch target in x8 fails PAC verification)
  • Same binary on both M3 Pro & M4 Max machines: 0.3.133:
    • SHA-256 bcb10afd38107245ef32ced5db9c4906244c618af2e55cce9a1d17bfbbec7dd9
    • M3 Pro (macOS 15.5 24F74) → PAC-IB trap
    • M4 Max (macOS 15.5 24F74) → runs fine
  • Disabling JIT (BUN_JSC_useJIT=0) changes the failure to SIGSEGV at address 0x88 on both chips.

This points to a stale/corrupted pointer inside the static binary; PAC catches it on some cores but not others. Maybe rebuilding with a WebKit/Bun snapshot ≥ Safari 17.5 (includes PAC fixes like CVE-2024-27834) would eliminate the trap...?

another full crash log
{"app_name":"opencode","timestamp":"2025-08-06 21:36:33.00 -0400","app_version":"","slice_uuid":"a4eab6f8-52bf-36e6-89e5-0cb097902304","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.5 (24F74)","roots_installed":0,"incident_id":"DAA9F5C1-E464-43CD-8E09-35636B5E1F8F","name":"opencode"}
{
  "uptime" : 2400000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,6",
  "coalitionID" : 1096,
  "osVersion" : {
    "train" : "macOS 15.5",
    "build" : "24F74",
    "releaseType" : "User"
  },
  "captureTime" : "2025-08-06 21:36:32.7718 -0400",
  "codeSigningMonitor" : 1,
  "incident" : "DAA9F5C1-E464-43CD-8E09-35636B5E1F8F",
  "pid" : 27567,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2025-08-06 21:36:04.9849 -0400",
  "procStartAbsTime" : 58884302449710,
  "procExitAbsTime" : 58884969296449,
  "procName" : "opencode",
  "procPath" : "\/Users\/USER\/*\/opencode",
  "parentProc" : "fish",
  "parentPid" : 96960,
  "coalitionName" : "com.mitchellh.ghostty",
  "crashReporterKey" : "B4743F7B-F5ED-E19E-DCF7-45531C7F060E",
  "appleIntelligenceStatus" : {"reasons":["assetIsNotReady"],"state":"restricted"},
  "responsiblePid" : 1440,
  "responsibleProc" : "ghostty",
  "codeSigningID" : "a.out",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570556929,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 4294967295,
  "codeSigningAuxiliaryInfo" : 0,
  "instructionByteStream" : {"beforePC":"9E9CqfZXQan4X8SowANf1kH\/APAhECaRQv8A8EI0KJFgaoBSYwKAUg==","atPC":"II441CAAINT2V72p9E8Bqf17Aqn9gwCR9QMBqvYDAKrzAwiqAAWAUg=="},
  "bootSessionUUID" : "2DC609DB-20FF-484F-A09D-AD06A86B8562",
  "wakeTime" : 1116,
  "sleepWakeUUID" : "73852B13-6F25-40A0-9142-61ADB50AAF69",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001036989e8","rawCodes":[1,4352215528],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":27567},
  "os_fault" : {"process":"opencode"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":24,"task_for_pid":2},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":70595330,"threadState":{"x":[{"value":851},{"value":4385683844},{"value":4385683981},{"value":19},{"value":4564304000},{"value":161},{"value":0},{"value":0},{"value":1},{"value":1139549076754071703},{"value":16368},{"value":4564320240},{"value":32},{"value":16212},{"value":16212},{"value":6773010582995828898},{"value":6821369892,"symbolLocation":0,"symbol":"os_unfair_lock_unlock"},{"value":8684864040},{"value":0},{"value":6137208200},{"value":26172522496},{"value":6137208192},{"value":3214384095},{"value":26172522496},{"value":3390473701},{"value":4103277709920},{"value":0},{"value":6137209568},{"value":4103277323040}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4352215432},"cpsr":{"value":1610616832},"fp":{"value":6137208176},"sp":{"value":6137208128},"esr":{"value":4060136561,"description":"(Breakpoint) pointer authentication trap IB"},"pc":{"value":4352215528,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":22677992,"imageIndex":0},{"imageOffset":17231080,"imageIndex":0},{"imageOffset":11720408,"imageIndex":0},{"imageOffset":17234092,"imageIndex":0},{"imageOffset":11238324,"imageIndex":0},{"imageOffset":5739904,"imageIndex":0},{"imageOffset":3456752,"imageIndex":0},{"imageOffset":2813396,"imageIndex":0},{"imageOffset":2675212,"imageIndex":0},{"imageOffset":17266104,"imageIndex":0},{"imageOffset":2422692,"imageIndex":0},{"imageOffset":18520,"imageIndex":0},{"imageOffset":13736,"imageIndex":0},{"imageOffset":27544,"symbol":"start","symbolLocation":6076,"imageIndex":1}]},{"id":70595336,"name":"Bun Pool 0","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4392408748},{"value":0},{"value":49154},{"value":4392408744},{"value":0},{"value":0},{"value":0},{"value":4},{"value":544},{"value":4698603520},{"value":0},{"value":4392408748},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6144435944},{"value":6144435944}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377462168},"cpsr":{"value":1073745920},"fp":{"value":6144435632},"sp":{"value":6144435632},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595337,"name":"Bun Pool 1","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4392408748},{"value":0},{"value":49155},{"value":4392408744},{"value":3},{"value":0},{"value":3},{"value":252},{"value":544},{"value":5637177344},{"value":0},{"value":4392408748},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6148679400},{"value":6148679400}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377462168},"cpsr":{"value":1073745920},"fp":{"value":6148679088},"sp":{"value":6148679088},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595341,"name":"Bun Pool 2","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4392408748},{"value":0},{"value":49154},{"value":4392408744},{"value":3},{"value":0},{"value":3},{"value":12},{"value":544},{"value":5637373952},{"value":0},{"value":4392408748},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6154643176},{"value":6154643176}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377462168},"cpsr":{"value":1073745920},"fp":{"value":6154642864},"sp":{"value":6154642864},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595342,"name":"HTTP Client","threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":4698472656},{"value":1024},{"value":0},{"value":0},{"value":18446744073709551125},{"value":49360},{"value":6158889184},{"value":9},{"value":6158884280},{"value":2},{"value":6158884710},{"value":2025},{"value":36},{"value":369},{"value":4698800128},{"value":0},{"value":4698472448},{"value":4698472656},{"value":0},{"value":65535},{"value":12297829382473034410},{"value":4103405245440},{"value":0},{"value":6158888272},{"value":16646288086500911323},{"value":4391486168}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4346608672},"cpsr":{"value":1610616832},"fp":{"value":6158885616},"sp":{"value":6158885584},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820923740},"far":{"value":0}},"frames":[{"imageOffset":51548,"symbol":"kevent64","symbolLocation":8,"imageIndex":4},{"imageOffset":17071136,"imageIndex":0},{"imageOffset":9492388,"imageIndex":0},{"imageOffset":7642768,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595345,"frames":[{"imageOffset":7020,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6160035840},{"value":11523},{"value":6159499264},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6160035840},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6821124972},"far":{"value":0}}},{"id":70595691,"name":"JavaScriptCore libpas scavenger","threadState":{"x":[{"value":260},{"value":0},{"value":3328},{"value":0},{"value":0},{"value":160},{"value":0},{"value":99999048},{"value":6137900712},{"value":0},{"value":0},{"value":2},{"value":2},{"value":0},{"value":0},{"value":0},{"value":305},{"value":8684855136},{"value":0},{"value":4423920256},{"value":4423920320},{"value":6137901280},{"value":99999048},{"value":0},{"value":3328},{"value":5377},{"value":5632},{"value":4392701952},{"value":4294967295}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6821146848},"cpsr":{"value":1610616832},"fp":{"value":6137900832},"sp":{"value":6137900688},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820889548},"far":{"value":0}},"frames":[{"imageOffset":17356,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":4},{"imageOffset":28896,"symbol":"_pthread_cond_wait","symbolLocation":984,"imageIndex":5},{"imageOffset":44808972,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4329537536,
    "size" : 57114624,
    "uuid" : "a4eab6f8-52bf-36e6-89e5-0cb097902304",
    "path" : "\/Users\/USER\/*\/opencode",
    "name" : "opencode"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6817316864,
    "size" : 636112,
    "uuid" : "9cf0401a-a938-389e-a77d-9e9608076ccf",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6821367808,
    "size" : 31568,
    "uuid" : "519f3220-7499-334a-96d6-ccf3dc28f986",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6820872192,
    "size" : 243284,
    "uuid" : "60485b6f-67e5-38c1-aec9-efd6031ff166",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6821117952,
    "size" : 51784,
    "uuid" : "647b91fc-96d3-3bbb-af08-970df45257c8",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6821171200,
    "size" : 195492,
    "uuid" : "c62596fe-63c5-3502-bbd1-14147a7ca921",
    "path" : "\/usr\/lib\/system\/libdyld.dylib",
    "name" : "libdyld.dylib"
  }
],
  "sharedCache" : {
  "base" : 6816481280,
  "size" : 5047205888,
  "uuid" : "d7397d7f-8df9-3920-81a7-c0a144be9c51"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=899.3M resident=0K(0%) swapped_out_or_unallocated=899.3M(100%)\nWritable regions: Total=80.5G written=5381K(0%) resident=5381K(0%) swapped_out=16K(0%) unallocated=80.4G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nIOAccelerator                      9.4G       79 \nIOAccelerator (reserved)           2.5G        2         reserved VM address space (unallocated)\nJS JIT generated code            512.0M        3 \nJS VM Gigacage                     1.3G        2 \nJS VM Gigacage (reserved)         62.7G        2         reserved VM address space (unallocated)\nKernel Alloc Once                   32K        1 \nMALLOC                           941.2M       22 \nMALLOC guard page                   96K        6 \nSTACK GUARD                        112K        7 \nStack                             35.2M        7 \nVM_ALLOCATE                      128.0M        1 \nVM_ALLOCATE (reserved)             3.9G        2         reserved VM address space (unallocated)\nWebKit Malloc                    242.8M       24 \nWebKit Malloc (reserved)          32.0M        1         reserved VM address space (unallocated)\n__AUTH                             822K      161 \n__AUTH_CONST                      12.8M      295 \n__BUN                             24.3M        1 \n__DATA                            4406K      276 \n__DATA_CONST                      11.8M      296 \n__DATA_DIRTY                       468K       89 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       616.2M        3 \n__OBJC_RO                         61.4M        1 \n__OBJC_RW                         2396K        1 \n__TEXT                           283.1M      305 \n__TPRO_CONST                       128K        2 \nmapped file                       32.7M        3 \npage table in kernel              5381K        1 \nshared memory                       48K        2 \n===========                     =======  ======= \nTOTAL                             82.7G     1597 \nTOTAL, minus reserved VM space    13.6G     1597 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "dd36b669e38b1aad7e9670220c09dea043368a80",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6246d6a916a70b047e454124",
      "factorPackIds" : {

      },
      "deploymentId" : 240000010
    },
    {
      "rolloutId" : "642da32dea3b2418c750f848",
      "factorPackIds" : {
        "VISUAL_INTELLIGENCE_VICTORIA" : "66d8b2f77cd4b62688efd2cf"
      },
      "deploymentId" : 240000004
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "f18344bb-554f-48ae-8449-e108a8813a55",
      "experimentId" : "6685b5584477001000e8c6c9",
      "deploymentId" : 400000009
    }
  ]
}
}

disassembly

Disassembly of opencode (0.3.133) around crash point
SHA-256: bcb10afd38107245ef32ced5db9c4906244c618af2e55cce9a1d17bfbbec7dd9

opencode`___lldb_unnamed_symbol15056:
opencode[0x100ca09d0] <+11660>: add    x15, x13, x15
opencode[0x100ca09d4] <+11664>: cmp    w14, w12
opencode[0x100ca09d8] <+11668>: csel   x14, x15, xzr, lo
opencode[0x100ca09dc] <+11672>: add    x9, x14, x9
opencode[0x100ca09e0] <+11676>: cmp    x11, #0x1
opencode[0x100ca09e4] <+11680>: mov    x11, x13
opencode[0x100ca09e8] <+11684>: b.hi   0x100ca09bc               ; <+11640>  <<< CRASH HERE (PAC-IB trap)
opencode[0x100ca09ec] <+11688>: sub    x12, x8, x23
opencode[0x100ca09f0] <+11692>: cmp    x12, #0x2
opencode[0x100ca09f4] <+11696>: b.lo   0x100ca0a34               ; <+11760>
opencode[0x100ca09f8] <+11700>: lsr    x11, x12, #1
opencode[0x100ca09fc] <+11704>: madd   x13, x8, x28, x30
opencode[0x100ca0a00] <+11708>: mov    x14, x10
opencode[0x100ca0a04] <+11712>: ldr    x15, [x14, #0x10]
opencode[0x100ca0a08] <+11716>: ldr    q0, [x14]
opencode[0x100ca0a0c] <+11720>: ldr    x16, [x13, #0x10]

The crash occurs at the b.hi (branch if higher) instruction at offset 0x100ca09e8.
The branch target is computed from register x8, which contains a corrupted pointer that fails PAC (Pointer Authentication Code) validation on M3 Pro but passes on M4 Max.

@brittlewis12 commented on GitHub (Aug 6, 2025): another quick update: * Crash M3 Pro: 0x1036989e8 → offset 0x0ca09e8 in __TEXT (instruction is `b.hi`, so the branch target in x8 fails PAC verification) * Same binary on both M3 Pro & M4 Max machines: 0.3.133: - SHA-256 `bcb10afd38107245ef32ced5db9c4906244c618af2e55cce9a1d17bfbbec7dd9` - M3 Pro (macOS 15.5 24F74) → PAC-IB trap - M4 Max (macOS 15.5 24F74) → runs fine * Disabling JIT (`BUN_JSC_useJIT=0`) changes the failure to `SIGSEGV` at address 0x88 on both chips. This points to a stale/corrupted pointer inside the static binary; PAC catches it on some cores but not others. Maybe rebuilding with a WebKit/Bun snapshot ≥ Safari 17.5 (includes PAC fixes like CVE-2024-27834) would eliminate the trap...? <details><summary>another full crash log</summary> ``` {"app_name":"opencode","timestamp":"2025-08-06 21:36:33.00 -0400","app_version":"","slice_uuid":"a4eab6f8-52bf-36e6-89e5-0cb097902304","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.5 (24F74)","roots_installed":0,"incident_id":"DAA9F5C1-E464-43CD-8E09-35636B5E1F8F","name":"opencode"} { "uptime" : 2400000, "procRole" : "Unspecified", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "Mac15,6", "coalitionID" : 1096, "osVersion" : { "train" : "macOS 15.5", "build" : "24F74", "releaseType" : "User" }, "captureTime" : "2025-08-06 21:36:32.7718 -0400", "codeSigningMonitor" : 1, "incident" : "DAA9F5C1-E464-43CD-8E09-35636B5E1F8F", "pid" : 27567, "translated" : false, "cpuType" : "ARM-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2025-08-06 21:36:04.9849 -0400", "procStartAbsTime" : 58884302449710, "procExitAbsTime" : 58884969296449, "procName" : "opencode", "procPath" : "\/Users\/USER\/*\/opencode", "parentProc" : "fish", "parentPid" : 96960, "coalitionName" : "com.mitchellh.ghostty", "crashReporterKey" : "B4743F7B-F5ED-E19E-DCF7-45531C7F060E", "appleIntelligenceStatus" : {"reasons":["assetIsNotReady"],"state":"restricted"}, "responsiblePid" : 1440, "responsibleProc" : "ghostty", "codeSigningID" : "a.out", "codeSigningTeamID" : "", "codeSigningFlags" : 570556929, "codeSigningValidationCategory" : 10, "codeSigningTrustLevel" : 4294967295, "codeSigningAuxiliaryInfo" : 0, "instructionByteStream" : {"beforePC":"9E9CqfZXQan4X8SowANf1kH\/APAhECaRQv8A8EI0KJFgaoBSYwKAUg==","atPC":"II441CAAINT2V72p9E8Bqf17Aqn9gwCR9QMBqvYDAKrzAwiqAAWAUg=="}, "bootSessionUUID" : "2DC609DB-20FF-484F-A09D-AD06A86B8562", "wakeTime" : 1116, "sleepWakeUUID" : "73852B13-6F25-40A0-9142-61ADB50AAF69", "sip" : "enabled", "exception" : {"codes":"0x0000000000000001, 0x00000001036989e8","rawCodes":[1,4352215528],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"}, "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":27567}, "os_fault" : {"process":"opencode"}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":24,"task_for_pid":2},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":70595330,"threadState":{"x":[{"value":851},{"value":4385683844},{"value":4385683981},{"value":19},{"value":4564304000},{"value":161},{"value":0},{"value":0},{"value":1},{"value":1139549076754071703},{"value":16368},{"value":4564320240},{"value":32},{"value":16212},{"value":16212},{"value":6773010582995828898},{"value":6821369892,"symbolLocation":0,"symbol":"os_unfair_lock_unlock"},{"value":8684864040},{"value":0},{"value":6137208200},{"value":26172522496},{"value":6137208192},{"value":3214384095},{"value":26172522496},{"value":3390473701},{"value":4103277709920},{"value":0},{"value":6137209568},{"value":4103277323040}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4352215432},"cpsr":{"value":1610616832},"fp":{"value":6137208176},"sp":{"value":6137208128},"esr":{"value":4060136561,"description":"(Breakpoint) pointer authentication trap IB"},"pc":{"value":4352215528,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":22677992,"imageIndex":0},{"imageOffset":17231080,"imageIndex":0},{"imageOffset":11720408,"imageIndex":0},{"imageOffset":17234092,"imageIndex":0},{"imageOffset":11238324,"imageIndex":0},{"imageOffset":5739904,"imageIndex":0},{"imageOffset":3456752,"imageIndex":0},{"imageOffset":2813396,"imageIndex":0},{"imageOffset":2675212,"imageIndex":0},{"imageOffset":17266104,"imageIndex":0},{"imageOffset":2422692,"imageIndex":0},{"imageOffset":18520,"imageIndex":0},{"imageOffset":13736,"imageIndex":0},{"imageOffset":27544,"symbol":"start","symbolLocation":6076,"imageIndex":1}]},{"id":70595336,"name":"Bun Pool 0","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4392408748},{"value":0},{"value":49154},{"value":4392408744},{"value":0},{"value":0},{"value":0},{"value":4},{"value":544},{"value":4698603520},{"value":0},{"value":4392408748},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6144435944},{"value":6144435944}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377462168},"cpsr":{"value":1073745920},"fp":{"value":6144435632},"sp":{"value":6144435632},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595337,"name":"Bun Pool 1","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4392408748},{"value":0},{"value":49155},{"value":4392408744},{"value":3},{"value":0},{"value":3},{"value":252},{"value":544},{"value":5637177344},{"value":0},{"value":4392408748},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6148679400},{"value":6148679400}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377462168},"cpsr":{"value":1073745920},"fp":{"value":6148679088},"sp":{"value":6148679088},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595341,"name":"Bun Pool 2","threadState":{"x":[{"value":18446744073709551612},{"value":0},{"value":1},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":4392408748},{"value":0},{"value":49154},{"value":4392408744},{"value":3},{"value":0},{"value":3},{"value":12},{"value":544},{"value":5637373952},{"value":0},{"value":4392408748},{"value":1},{"value":1},{"value":3758080000},{"value":6821183736,"symbolLocation":0,"symbol":"_tlv_get_addr"},{"value":3},{"value":18446744073709551613},{"value":1},{"value":6154643176},{"value":6154643176}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4377462168},"cpsr":{"value":1073745920},"fp":{"value":6154642864},"sp":{"value":6154642864},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820932180},"far":{"value":0}},"frames":[{"imageOffset":59988,"symbol":"__ulock_wait2","symbolLocation":8,"imageIndex":4},{"imageOffset":47924632,"imageIndex":0},{"imageOffset":5161788,"imageIndex":0},{"imageOffset":8532268,"imageIndex":0},{"imageOffset":5159992,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595342,"name":"HTTP Client","threadState":{"x":[{"value":4},{"value":0},{"value":0},{"value":4698472656},{"value":1024},{"value":0},{"value":0},{"value":18446744073709551125},{"value":49360},{"value":6158889184},{"value":9},{"value":6158884280},{"value":2},{"value":6158884710},{"value":2025},{"value":36},{"value":369},{"value":4698800128},{"value":0},{"value":4698472448},{"value":4698472656},{"value":0},{"value":65535},{"value":12297829382473034410},{"value":4103405245440},{"value":0},{"value":6158888272},{"value":16646288086500911323},{"value":4391486168}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4346608672},"cpsr":{"value":1610616832},"fp":{"value":6158885616},"sp":{"value":6158885584},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820923740},"far":{"value":0}},"frames":[{"imageOffset":51548,"symbol":"kevent64","symbolLocation":8,"imageIndex":4},{"imageOffset":17071136,"imageIndex":0},{"imageOffset":9492388,"imageIndex":0},{"imageOffset":7642768,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]},{"id":70595345,"frames":[{"imageOffset":7020,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}],"threadState":{"x":[{"value":6160035840},{"value":11523},{"value":6159499264},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6160035840},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6821124972},"far":{"value":0}}},{"id":70595691,"name":"JavaScriptCore libpas scavenger","threadState":{"x":[{"value":260},{"value":0},{"value":3328},{"value":0},{"value":0},{"value":160},{"value":0},{"value":99999048},{"value":6137900712},{"value":0},{"value":0},{"value":2},{"value":2},{"value":0},{"value":0},{"value":0},{"value":305},{"value":8684855136},{"value":0},{"value":4423920256},{"value":4423920320},{"value":6137901280},{"value":99999048},{"value":0},{"value":3328},{"value":5377},{"value":5632},{"value":4392701952},{"value":4294967295}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6821146848},"cpsr":{"value":1610616832},"fp":{"value":6137900832},"sp":{"value":6137900688},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6820889548},"far":{"value":0}},"frames":[{"imageOffset":17356,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":4},{"imageOffset":28896,"symbol":"_pthread_cond_wait","symbolLocation":984,"imageIndex":5},{"imageOffset":44808972,"imageIndex":0},{"imageOffset":27660,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":5},{"imageOffset":7040,"symbol":"thread_start","symbolLocation":8,"imageIndex":5}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 4329537536, "size" : 57114624, "uuid" : "a4eab6f8-52bf-36e6-89e5-0cb097902304", "path" : "\/Users\/USER\/*\/opencode", "name" : "opencode" }, { "source" : "P", "arch" : "arm64e", "base" : 6817316864, "size" : 636112, "uuid" : "9cf0401a-a938-389e-a77d-9e9608076ccf", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "size" : 0, "source" : "A", "base" : 0, "uuid" : "00000000-0000-0000-0000-000000000000" }, { "source" : "P", "arch" : "arm64e", "base" : 6821367808, "size" : 31568, "uuid" : "519f3220-7499-334a-96d6-ccf3dc28f986", "path" : "\/usr\/lib\/system\/libsystem_platform.dylib", "name" : "libsystem_platform.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6820872192, "size" : 243284, "uuid" : "60485b6f-67e5-38c1-aec9-efd6031ff166", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6821117952, "size" : 51784, "uuid" : "647b91fc-96d3-3bbb-af08-970df45257c8", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6821171200, "size" : 195492, "uuid" : "c62596fe-63c5-3502-bbd1-14147a7ca921", "path" : "\/usr\/lib\/system\/libdyld.dylib", "name" : "libdyld.dylib" } ], "sharedCache" : { "base" : 6816481280, "size" : 5047205888, "uuid" : "d7397d7f-8df9-3920-81a7-c0a144be9c51" }, "vmSummary" : "ReadOnly portion of Libraries: Total=899.3M resident=0K(0%) swapped_out_or_unallocated=899.3M(100%)\nWritable regions: Total=80.5G written=5381K(0%) resident=5381K(0%) swapped_out=16K(0%) unallocated=80.4G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nIOAccelerator 9.4G 79 \nIOAccelerator (reserved) 2.5G 2 reserved VM address space (unallocated)\nJS JIT generated code 512.0M 3 \nJS VM Gigacage 1.3G 2 \nJS VM Gigacage (reserved) 62.7G 2 reserved VM address space (unallocated)\nKernel Alloc Once 32K 1 \nMALLOC 941.2M 22 \nMALLOC guard page 96K 6 \nSTACK GUARD 112K 7 \nStack 35.2M 7 \nVM_ALLOCATE 128.0M 1 \nVM_ALLOCATE (reserved) 3.9G 2 reserved VM address space (unallocated)\nWebKit Malloc 242.8M 24 \nWebKit Malloc (reserved) 32.0M 1 reserved VM address space (unallocated)\n__AUTH 822K 161 \n__AUTH_CONST 12.8M 295 \n__BUN 24.3M 1 \n__DATA 4406K 276 \n__DATA_CONST 11.8M 296 \n__DATA_DIRTY 468K 89 \n__FONT_DATA 2352 1 \n__LINKEDIT 616.2M 3 \n__OBJC_RO 61.4M 1 \n__OBJC_RW 2396K 1 \n__TEXT 283.1M 305 \n__TPRO_CONST 128K 2 \nmapped file 32.7M 3 \npage table in kernel 5381K 1 \nshared memory 48K 2 \n=========== ======= ======= \nTOTAL 82.7G 1597 \nTOTAL, minus reserved VM space 13.6G 1597 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "logWritingSignature" : "dd36b669e38b1aad7e9670220c09dea043368a80", "trialInfo" : { "rollouts" : [ { "rolloutId" : "6246d6a916a70b047e454124", "factorPackIds" : { }, "deploymentId" : 240000010 }, { "rolloutId" : "642da32dea3b2418c750f848", "factorPackIds" : { "VISUAL_INTELLIGENCE_VICTORIA" : "66d8b2f77cd4b62688efd2cf" }, "deploymentId" : 240000004 } ], "experiments" : [ { "treatmentId" : "f18344bb-554f-48ae-8449-e108a8813a55", "experimentId" : "6685b5584477001000e8c6c9", "deploymentId" : 400000009 } ] } } ``` </details> <details><summary>disassembly</summary> Disassembly of opencode (0.3.133) around crash point SHA-256: bcb10afd38107245ef32ced5db9c4906244c618af2e55cce9a1d17bfbbec7dd9 ``` opencode`___lldb_unnamed_symbol15056: opencode[0x100ca09d0] <+11660>: add x15, x13, x15 opencode[0x100ca09d4] <+11664>: cmp w14, w12 opencode[0x100ca09d8] <+11668>: csel x14, x15, xzr, lo opencode[0x100ca09dc] <+11672>: add x9, x14, x9 opencode[0x100ca09e0] <+11676>: cmp x11, #0x1 opencode[0x100ca09e4] <+11680>: mov x11, x13 opencode[0x100ca09e8] <+11684>: b.hi 0x100ca09bc ; <+11640> <<< CRASH HERE (PAC-IB trap) opencode[0x100ca09ec] <+11688>: sub x12, x8, x23 opencode[0x100ca09f0] <+11692>: cmp x12, #0x2 opencode[0x100ca09f4] <+11696>: b.lo 0x100ca0a34 ; <+11760> opencode[0x100ca09f8] <+11700>: lsr x11, x12, #1 opencode[0x100ca09fc] <+11704>: madd x13, x8, x28, x30 opencode[0x100ca0a00] <+11708>: mov x14, x10 opencode[0x100ca0a04] <+11712>: ldr x15, [x14, #0x10] opencode[0x100ca0a08] <+11716>: ldr q0, [x14] opencode[0x100ca0a0c] <+11720>: ldr x16, [x13, #0x10] ``` The crash occurs at the b.hi (branch if higher) instruction at offset 0x100ca09e8. The branch target is computed from register x8, which contains a corrupted pointer that fails PAC (Pointer Authentication Code) validation on M3 Pro but passes on M4 Max. </details>
Author
Owner

@alessandrojcm commented on GitHub (Aug 22, 2025):

Happening to me as well since updating to MacOS 15.6.1 last night, was working fine before the update. Tried installing via brew, npm, pnpm and nix. Interestingly enough, the crash only happens with existing projects (i.e running opencode in another random folder does work normally). Tried deleting all the configuration folders and the cache too but no dice.

@alessandrojcm commented on GitHub (Aug 22, 2025): Happening to me as well since updating to MacOS 15.6.1 last night, was working fine before the update. Tried installing via brew, npm, pnpm and nix. Interestingly enough, the crash only happens with existing projects (i.e running `opencode` in another random folder does work normally). Tried deleting all the configuration folders and the cache too but no dice.
Author
Owner

@rekram1-node commented on GitHub (Aug 22, 2025):

hmm thanks for sharing

@rekram1-node commented on GitHub (Aug 22, 2025): hmm thanks for sharing
Author
Owner

@dkam commented on GitHub (Aug 31, 2025):

I'm trying out opencode for the first time. I could use the /models command to select GLM 4.5 FP8, then add a chutes api key, but now it seems to crash with any attempt to use it - either in VSCode's terminal or in iTerm2. I get a "trace/BPT trap 5" message - and in the top right, I get a connection refused "http://localhost:50001/session" "unexpected EOF"

MacOSX 15.6.1, opencode 0.5.29

Actually, it works fine in my ~ directory - does not work inside a Ruby on Rails app directory. If I ask it about content in my Dev/rails_app directory, it crashes again.

I can also see an empty ~/.config/opencode directory. The .local/share/opencode directory has more in it.

It's only some rails app apps it doesn't run in. Successfully runs in smaller app / ruby gems.

@dkam commented on GitHub (Aug 31, 2025): I'm trying out opencode for the first time. I could use the /models command to select GLM 4.5 FP8, then add a chutes api key, but now it seems to crash with any attempt to use it - either in VSCode's terminal or in iTerm2. I get a "trace/BPT trap 5" message - and in the top right, I get a connection refused "http://localhost:50001/session" "unexpected EOF" MacOSX 15.6.1, opencode 0.5.29 Actually, it works fine in my ~ directory - does not work inside a Ruby on Rails app directory. If I ask it about content in my Dev/rails_app directory, it crashes again. I can also see an empty `~/.config/opencode` directory. The .local/share/opencode directory has more in it. It's only some rails app apps it doesn't run in. Successfully runs in smaller app / ruby gems.
Author
Owner

@rekram1-node commented on GitHub (Aug 31, 2025):

hmm, in your ruby on rails project can you try:

opencode run “read ” —print-logs

^ that is a double dash btw phone messes it up

instead of ruby file just replace that with some ruby file you have in your project

@rekram1-node commented on GitHub (Aug 31, 2025): hmm, in your ruby on rails project can you try: opencode run “read <ruby file>” —print-logs ^ that is a double dash btw phone messes it up instead of ruby file just replace that with some ruby file you have in your project
Author
Owner

@dkam commented on GitHub (Aug 31, 2025):

$ opencode run “read ” —print-logs
Error: AI_APICallError: Unauthorized

It says that in both the rails app that works, and the one that doesn't.

But in the one that works, it works - the chutes api key seems to be working fine.

Edit - ok, I changed the quotes to normal, and used double dash ( sorry! ) There's quite a bit of output - here's the start and end:

INFO  2025-08-31T14:31:06 +55ms service=default version=0.5.29 args=["run","read ","--print-logs"] opencode
INFO  2025-08-31T14:31:06 +0ms service=app cwd=/Users/dkam/Development/gr creating
INFO  2025-08-31T14:31:06 +1ms service=app git=/Users/dkam/Development/gr git
INFO  2025-08-31T14:31:06 +1ms service=app name=plugin registering service
INFO  2025-08-31T14:31:06 +2ms service=app name=config registering service
INFO  2025-08-31T14:31:06 +1ms service=config path=/Users/dkam/.config/opencode/config.json loading
INFO  2025-08-31T14:31:06 +0ms service=config path=/Users/dkam/.config/opencode/opencode.json loading
INFO  2025-08-31T14:31:06 +0ms service=config path=/Users/dkam/.config/opencode/opencode.jsonc loading
INFO  2025-08-31T14:31:06 +1ms service=config agent={} mode={} command={} plugin=[] username=dkam loaded
INFO  2025-08-31T14:31:06 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO  2025-08-31T14:31:06 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-08-31T14:31:06 +11ms service=bus type=* subscribing
INFO  2025-08-31T14:31:06 +0ms service=app name=bus registering service
INFO  2025-08-31T14:31:06 +0ms service=bus type=storage.write subscribing
INFO  2025-08-31T14:31:06 +0ms service=format init
INFO  2025-08-31T14:31:06 +0ms service=bus type=file.edited subscribing
INFO  2025-08-31T14:31:06 +0ms service=config.hooks init
INFO  2025-08-31T14:31:06 +0ms service=bus type=file.edited subscribing
INFO  2025-08-31T14:31:06 +0ms service=bus type=session.idle subscribing
INFO  2025-08-31T14:31:06 +0ms service=app name=lsp registering service
INFO  2025-08-31T14:31:06 +1ms service=session id=asdf version=0.5.29 title=New session - 2025-08-31T14:31:06.182Z time={"created":1756650666182,"updated":1756650666182} created
INFO  2025-08-31T14:31:06 +0ms service=app name=session registering service
INFO  2025-08-31T14:31:06 +0ms service=app name=storage registering service
INFO  2025-08-31T14:31:06 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO  2025-08-31T14:31:06 +1ms service=bus type=storage.write publishing
INFO  2025-08-31T14:31:06 +0ms service=bus type=session.updated publishing
INFO  2025-08-31T14:31:06 +0ms service=app name=agent registering service
INFO  2025-08-31T14:31:06 +1ms service=app name=provider registering service
INFO  2025-08-31T14:31:06 +1ms service=models.dev file={} refreshing
INFO  2025-08-31T14:31:06 +3ms service=provider init
INFO  2025-08-31T14:31:06 +0ms service=provider providerID=github-copilot found
INFO  2025-08-31T14:31:06 +0ms service=provider providerID=github-models found
INFO  2025-08-31T14:31:06 +0ms service=provider providerID=chutes found
INFO  2025-08-31T14:31:06 +0ms service=provider providerID=opencode found
INFO  2025-08-31T14:31:06 +1ms service=bus type=message.part.updated subscribing
INFO  2025-08-31T14:31:06 +0ms service=bus type=session.error subscribing
INFO  2025-08-31T14:31:06 +1ms service=session session=asdf chatting
INFO  2025-08-31T14:31:06 +1ms service=bus type=storage.write publishing
INFO  2025-08-31T14:31:06 +0ms service=bus type=message.updated publishing
INFO  2025-08-31T14:31:06 +0ms service=bus type=storage.write publishing
INFO  2025-08-31T14:31:06 +0ms service=bus type=message.part.updated publishing
INFO  2025-08-31T14:31:06 +1ms service=bus type=storage.write publishing
INFO  2025-08-31T14:31:06 +0ms service=bus type=session.updated publishing
INFO  2025-08-31T14:31:06 +0ms service=provider providerID=github-copilot modelID=claude-sonnet-4 getModel
INFO  2025-08-31T14:31:06 +0ms service=provider status=started providerID=github-copilot getSDK
INFO  2025-08-31T14:31:06 +35ms service=provider status=completed duration=35 providerID=github-copilot getSDK
INFO  2025-08-31T14:31:06 +1ms service=provider providerID=github-copilot modelID=claude-sonnet-4 found
INFO  2025-08-31T14:31:06 +15ms service=bus type=storage.write publishing
INFO  2025-08-31T14:31:06 +0ms service=bus type=message.updated publishing
INFO  2025-08-31T14:31:06 +1ms service=app name=mcp registering service
INFO  2025-08-31T14:31:06 +4ms service=session session= asdf type=start part

INFO  2025-08-31T14:31:07 +3ms service=session session=asdf type=error part
ERROR 2025-08-31T14:31:07 +1ms service=session session=asdf error=Unauthorized
INFO  2025-08-31T14:31:07 +0ms service=bus type=session.error publishing
Error: AI_APICallError: Unauthorized
INFO  2025-08-31T14:31:07 +2ms service=bus type=storage.write publishing
INFO  2025-08-31T14:31:07 +0ms service=bus type=message.updated publishing
INFO  2025-08-31T14:31:07 +0ms service=session session=asdf sessionID=asdf unlocking
INFO  2025-08-31T14:31:07 +0ms service=bus type=session.idle publishing

INFO  2025-08-31T14:31:07 +1ms service=app name=lsp shutdown
INFO  2025-08-31T14:31:07 +0ms service=app name=session shutdown
INFO  2025-08-31T14:31:07 +0ms service=app name=mcp shutdown

Oh - is it trying to result an old copilot session? ( I've used both GitHub's copiot and I'm using Claude Code in this project )

@dkam commented on GitHub (Aug 31, 2025): ```bash $ opencode run “read ” —print-logs Error: AI_APICallError: Unauthorized ``` It says that in both the rails app that works, and the one that doesn't. But in the one that works, it works - the chutes api key seems to be working fine. Edit - ok, I changed the quotes to normal, and used double dash ( sorry! ) There's quite a bit of output - here's the start and end: ``` INFO 2025-08-31T14:31:06 +55ms service=default version=0.5.29 args=["run","read ","--print-logs"] opencode INFO 2025-08-31T14:31:06 +0ms service=app cwd=/Users/dkam/Development/gr creating INFO 2025-08-31T14:31:06 +1ms service=app git=/Users/dkam/Development/gr git INFO 2025-08-31T14:31:06 +1ms service=app name=plugin registering service INFO 2025-08-31T14:31:06 +2ms service=app name=config registering service INFO 2025-08-31T14:31:06 +1ms service=config path=/Users/dkam/.config/opencode/config.json loading INFO 2025-08-31T14:31:06 +0ms service=config path=/Users/dkam/.config/opencode/opencode.json loading INFO 2025-08-31T14:31:06 +0ms service=config path=/Users/dkam/.config/opencode/opencode.jsonc loading INFO 2025-08-31T14:31:06 +1ms service=config agent={} mode={} command={} plugin=[] username=dkam loaded INFO 2025-08-31T14:31:06 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin INFO 2025-08-31T14:31:06 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-08-31T14:31:06 +11ms service=bus type=* subscribing INFO 2025-08-31T14:31:06 +0ms service=app name=bus registering service INFO 2025-08-31T14:31:06 +0ms service=bus type=storage.write subscribing INFO 2025-08-31T14:31:06 +0ms service=format init INFO 2025-08-31T14:31:06 +0ms service=bus type=file.edited subscribing INFO 2025-08-31T14:31:06 +0ms service=config.hooks init INFO 2025-08-31T14:31:06 +0ms service=bus type=file.edited subscribing INFO 2025-08-31T14:31:06 +0ms service=bus type=session.idle subscribing INFO 2025-08-31T14:31:06 +0ms service=app name=lsp registering service INFO 2025-08-31T14:31:06 +1ms service=session id=asdf version=0.5.29 title=New session - 2025-08-31T14:31:06.182Z time={"created":1756650666182,"updated":1756650666182} created INFO 2025-08-31T14:31:06 +0ms service=app name=session registering service INFO 2025-08-31T14:31:06 +0ms service=app name=storage registering service INFO 2025-08-31T14:31:06 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers INFO 2025-08-31T14:31:06 +1ms service=bus type=storage.write publishing INFO 2025-08-31T14:31:06 +0ms service=bus type=session.updated publishing INFO 2025-08-31T14:31:06 +0ms service=app name=agent registering service INFO 2025-08-31T14:31:06 +1ms service=app name=provider registering service INFO 2025-08-31T14:31:06 +1ms service=models.dev file={} refreshing INFO 2025-08-31T14:31:06 +3ms service=provider init INFO 2025-08-31T14:31:06 +0ms service=provider providerID=github-copilot found INFO 2025-08-31T14:31:06 +0ms service=provider providerID=github-models found INFO 2025-08-31T14:31:06 +0ms service=provider providerID=chutes found INFO 2025-08-31T14:31:06 +0ms service=provider providerID=opencode found INFO 2025-08-31T14:31:06 +1ms service=bus type=message.part.updated subscribing INFO 2025-08-31T14:31:06 +0ms service=bus type=session.error subscribing INFO 2025-08-31T14:31:06 +1ms service=session session=asdf chatting INFO 2025-08-31T14:31:06 +1ms service=bus type=storage.write publishing INFO 2025-08-31T14:31:06 +0ms service=bus type=message.updated publishing INFO 2025-08-31T14:31:06 +0ms service=bus type=storage.write publishing INFO 2025-08-31T14:31:06 +0ms service=bus type=message.part.updated publishing INFO 2025-08-31T14:31:06 +1ms service=bus type=storage.write publishing INFO 2025-08-31T14:31:06 +0ms service=bus type=session.updated publishing INFO 2025-08-31T14:31:06 +0ms service=provider providerID=github-copilot modelID=claude-sonnet-4 getModel INFO 2025-08-31T14:31:06 +0ms service=provider status=started providerID=github-copilot getSDK INFO 2025-08-31T14:31:06 +35ms service=provider status=completed duration=35 providerID=github-copilot getSDK INFO 2025-08-31T14:31:06 +1ms service=provider providerID=github-copilot modelID=claude-sonnet-4 found INFO 2025-08-31T14:31:06 +15ms service=bus type=storage.write publishing INFO 2025-08-31T14:31:06 +0ms service=bus type=message.updated publishing INFO 2025-08-31T14:31:06 +1ms service=app name=mcp registering service INFO 2025-08-31T14:31:06 +4ms service=session session= asdf type=start part INFO 2025-08-31T14:31:07 +3ms service=session session=asdf type=error part ERROR 2025-08-31T14:31:07 +1ms service=session session=asdf error=Unauthorized INFO 2025-08-31T14:31:07 +0ms service=bus type=session.error publishing Error: AI_APICallError: Unauthorized INFO 2025-08-31T14:31:07 +2ms service=bus type=storage.write publishing INFO 2025-08-31T14:31:07 +0ms service=bus type=message.updated publishing INFO 2025-08-31T14:31:07 +0ms service=session session=asdf sessionID=asdf unlocking INFO 2025-08-31T14:31:07 +0ms service=bus type=session.idle publishing INFO 2025-08-31T14:31:07 +1ms service=app name=lsp shutdown INFO 2025-08-31T14:31:07 +0ms service=app name=session shutdown INFO 2025-08-31T14:31:07 +0ms service=app name=mcp shutdown ``` Oh - is it trying to result an old copilot session? ( I've used both GitHub's copiot and I'm using Claude Code in this project )
Author
Owner

@rekram1-node commented on GitHub (Aug 31, 2025):

we need to update our default model selection, can you try running with an additional flag?

--model chutes/

or equivalent based on your configuration

--model needs /

@rekram1-node commented on GitHub (Aug 31, 2025): we need to update our default model selection, can you try running with an additional flag?<br><br>--model chutes/<modelid><br><br>or equivalent based on your configuration<br><br>--model needs <providerId>/<modelID>
Author
Owner

@rekram1-node commented on GitHub (Aug 31, 2025):

so that'd be like:

opencode run "read <ruby-file>" —print-logs --model chutes/zai-org/GLM-4.5-FP8

if it hangs just in ruby projects consider disabling the ruby lsp in your opencode.json for that project:

{
  "lsp": {
    "ruby-lsp": {
         "disabled": true
      }
  }
}
@rekram1-node commented on GitHub (Aug 31, 2025): so that'd be like: ``` opencode run "read <ruby-file>" —print-logs --model chutes/zai-org/GLM-4.5-FP8 ``` if it hangs just in ruby projects consider disabling the ruby lsp in your opencode.json for that project: ``` { "lsp": { "ruby-lsp": { "disabled": true } } } ```
Author
Owner

@dkam commented on GitHub (Aug 31, 2025):

 $  opencode run "read config/application.rb" —print-logs --model chutes/zai-org/GLM-4.5-FP8
^C

It hang immediately. The other directories I tried it read the file and generated output.

@dkam commented on GitHub (Aug 31, 2025): ```bash $  opencode run "read config/application.rb" —print-logs --model chutes/zai-org/GLM-4.5-FP8 ^C ``` It hang immediately. The other directories I tried it read the file and generated output.
Author
Owner

@AvengerMoJo commented on GitHub (Sep 15, 2025):

I'm ssh from MacOS to Linux and it is keep crash core dumped no matter what I do. Cleaning up all the configuration kind of work for a the first run.

opencode run “read ” --log-level DEBUG --print-logs 2> /tmp/error.log
ERROR 2025-09-16T03:30:18 +6713ms service=session.prompt session=ses_6af6d5cc5ffem43Q2d2WoPv9DG error=Failed after 3 attempts. Last error: Insufficient balance or no resource package. Please recharge. model=glm-4.5v failed to generate title

And I'm not using glm-4.5v but glm-4.5 ...
make the config specify to "model": "zhipuai/glm-4.5", just hang forever as well.
The background is running 100% /usr/bin/git --git-dir /home/alex/.local/share/opencode/snapshot/xxxxx add .

@AvengerMoJo commented on GitHub (Sep 15, 2025): I'm ssh from MacOS to Linux and it is keep crash core dumped no matter what I do. Cleaning up all the configuration kind of work for a the first run. opencode run “read ” --log-level DEBUG --print-logs 2> /tmp/error.log `ERROR 2025-09-16T03:30:18 +6713ms service=session.prompt session=ses_6af6d5cc5ffem43Q2d2WoPv9DG error=Failed after 3 attempts. Last error: Insufficient balance or no resource package. Please recharge. model=glm-4.5v failed to generate title` And I'm not using glm-4.5v but glm-4.5 ... make the config specify to "model": "zhipuai/glm-4.5", just hang forever as well. The background is running 100% /usr/bin/git --git-dir /home/alex/.local/share/opencode/snapshot/xxxxx add .
Author
Owner

@rekram1-node commented on GitHub (Sep 16, 2025):

@AvengerMoJo this is interesting, for the snapshotting issue which project is that in, in regards to:

The background is running 100% /usr/bin/git

I suggest disabling the snapshot for that dir, if it global we can disable snapshots globally too ex:

{
  "snapshot": false
}

In regards to the error with insufficient balance etc can you share your opencode.json?

@rekram1-node commented on GitHub (Sep 16, 2025): @AvengerMoJo this is interesting, for the snapshotting issue which project is that in, in regards to: > The background is running 100% /usr/bin/git I suggest disabling the snapshot for that dir, if it global we can disable snapshots globally too ex: ``` { "snapshot": false } ``` In regards to the error with insufficient balance etc can you share your opencode.json?
Author
Owner

@AvengerMoJo commented on GitHub (Sep 16, 2025):

The insufficient issue is from zai I think, some how it only allow me to use flash not air. I was using air.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"zai": {
"api": "https://api.z.ai/api/coding/paas/v4"
}
},
"model": "zai/glm-4.5-flash",
"snapshot": false,
"disabled_providers": ["openai", "gemini", "anthropic"]
}
Interesting ...
Now it didn't hang at start but I still get an unexpected EOF pop up a local session link in the top right corner but not in the log after core dumped

Now that I think about it, the only different is my ssh connection and
headless copy and paste, maybe my issue is not related to this bug after all.

Now I get "http://127.0.0.1:38943/session/ses_xxxxxx/message": unexpected EOF

It does look like a different bug, sorry for the confusion.

Updated : @rekram1-node last session downloaded a 3.9G torch install whl in the directory and somehow it must be trying to read it and lead to unexpeted EOF error.

@AvengerMoJo commented on GitHub (Sep 16, 2025): The insufficient issue is from zai I think, some how it only allow me to use flash not air. I was using air. { "$schema": "https://opencode.ai/config.json", "provider": { "zai": { "api": "https://api.z.ai/api/coding/paas/v4" } }, "model": "zai/glm-4.5-flash", "snapshot": false, "disabled_providers": ["openai", "gemini", "anthropic"] } Interesting ... Now it didn't hang at start but I still get an unexpected EOF pop up a local session link in the top right corner but not in the log after core dumped Now that I think about it, the only different is my ssh connection and headless copy and paste, maybe my issue is not related to this bug after all. Now I get "http://127.0.0.1:38943/session/ses_xxxxxx/message": unexpected EOF It does look like a different bug, sorry for the confusion. Updated : @rekram1-node last session downloaded a 3.9G torch install whl in the directory and somehow it must be trying to read it and lead to unexpeted EOF error.
Author
Owner

@rekram1-node commented on GitHub (Sep 16, 2025):

It does look like a different bug, sorry for the confusion.

Wanna open a separate issue and we can discuss more there?

@rekram1-node commented on GitHub (Sep 16, 2025): > It does look like a different bug, sorry for the confusion. Wanna open a separate issue and we can discuss more there?
Author
Owner

@AvengerMoJo commented on GitHub (Sep 17, 2025):

It does look like a different bug, sorry for the confusion.

Wanna open a separate issue and we can discuss more there?
I updated my last comment the issue was resolved by removing huge file in project directory.

Updated : @rekram1-node last session downloaded a 3.9G torch install whl in the directory and somehow it must be trying to read it and lead to unexpeted EOF error.

Thanks

@AvengerMoJo commented on GitHub (Sep 17, 2025): > > It does look like a different bug, sorry for the confusion. > > Wanna open a separate issue and we can discuss more there? I updated my last comment the issue was resolved by removing huge file in project directory. > Updated : @rekram1-node last session downloaded a 3.9G torch install whl in the directory and somehow it must be trying to read it and lead to unexpeted EOF error. Thanks
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1137