You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bun Segmentation Fault at address 0xffffffffffffffff #13468
These issues describe similar Bun segmentation faults on Windows systems. If your issue is the same or very similar, please add your details (OS version, terminal, crash logs, steps to reproduce) to one of the existing issues rather than creating a new one. This helps consolidate reports and makes it easier for maintainers to track and resolve the root cause.
If your issue has unique characteristics not covered by the above, please describe what makes it different.
I’m seeing the same Bun crash pattern on Windows, but in OpenCode Desktop’s spawned local server (sidecar).
Environment:
Windows 11 x64
OpenCode Desktop spawns: opencode-cli.exe
opencode-cli.exe --version: 1.2.5
Crash output shows: Bun v1.3.9 (cf6cdbbb) Windows x64 (baseline)
Symptoms:
Desktop starts the local sidecar server normally (Server ready, CLI health check OK).
After running for a while, the sidecar crashes:
panic(main thread): Segmentation fault ...
followed by a bun.report link
then Sidecar terminated code=Some(3)
Desktop then loses the local server connection (Received Exit, Killed server).
Desktop logs:
Example crash logs:
panic(main thread): Segmentation fault ...
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Sidecar terminated code=Some(3) Then Desktop reports exit/kill of the server.
I’m seeing the same Bun crash pattern on Windows, but in OpenCode Desktop’s spawned local server (sidecar).
Environment:
Windows 11 x64 OpenCode Desktop spawns: opencode-cli.exe opencode-cli.exe --version: 1.2.5 Crash output shows: Bun v1.3.9 (cf6cdbbb) Windows x64 (baseline) Symptoms:
Desktop starts the local sidecar server normally (Server ready, CLI health check OK). After running for a while, the sidecar crashes: panic(main thread): Segmentation fault ... followed by a bun.report link then Sidecar terminated code=Some(3) Desktop then loses the local server connection (Received Exit, Killed server). Desktop logs:
Example crash logs:
panic(main thread): Segmentation fault ...
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Sidecar terminated code=Some(3) Then Desktop reports exit/kill of the server.
Here to
panic(main thread): Segmentation fault at address 0x7FF74898795D oh no: Bun has crashed. This indicates a bug in Bun, not your code.
doing a npm install -g opencode-ai@latest
solved the issue for me.
I’ve tried to reinstall opencode many times, still exists. I am not sure if I uninstall opencode completely.
This dont seem to have anything to do with opencode itself and i think the crash issue is mainly caused by bun. I encountered this error so many times in one day that I now have to stop using opencode.
Activity
github-actions commentedon Feb 13, 2026
This issue might be a duplicate of existing Windows/Bun segmentation fault reports. Please check if your issue is related to:
These issues describe similar Bun segmentation faults on Windows systems. If your issue is the same or very similar, please add your details (OS version, terminal, crash logs, steps to reproduce) to one of the existing issues rather than creating a new one. This helps consolidate reports and makes it easier for maintainers to track and resolve the root cause.
If your issue has unique characteristics not covered by the above, please describe what makes it different.
danielabelski commentedon Feb 16, 2026
I’m seeing the same Bun crash pattern on Windows, but in OpenCode Desktop’s spawned local server (sidecar).
Environment:
Windows 11 x64
OpenCode Desktop spawns: opencode-cli.exe
opencode-cli.exe --version: 1.2.5
Crash output shows: Bun v1.3.9 (cf6cdbbb) Windows x64 (baseline)
Symptoms:
Desktop starts the local sidecar server normally (Server ready, CLI health check OK).
After running for a while, the sidecar crashes:
panic(main thread): Segmentation fault ...
followed by a bun.report link
then Sidecar terminated code=Some(3)
Desktop then loses the local server connection (Received Exit, Killed server).
Desktop logs:
Example crash logs:
https://bun.report/1.3.9/ea1cf6cdbbmnGz+339/DoqpkwB0w6/vBu4k0Hw6vyH0wlwG2kkrpB8r94FmubqiMwwy3uDCYKERNEL32.DLLut0LCSntdll.dll4gijBA263CwqqgrE
https://bun.report/1.3.9/ea1cf6cdbbmnGz+339/Dwl/jwBs3u+tBm+8+tBi2hkwBqt8/vB6n6/vBu4k0Hw6vyH0wlwG2kkrpB8r94FmubqiMwwy3uDCYKERNEL32.DLLut0LCSntdll.dll4gijBA2muBhu+jypC
kznr02 commentedon Feb 16, 2026
Bun is soooooo unstable, my computer is AMD ZEN4 CPU, opencode works good on my Intel PC.
Now I’m doubt if it corresponds to CPU Platform.
danielabelski commentedon Feb 16, 2026
I see this on intell ultra 7 155h laptop
Hoshino-Yumetsuki commentedon Feb 18, 2026
I encountered the same situation today; my CPU is also AMD.
IvRogoz commentedon Feb 18, 2026
Here to
panic(main thread): Segmentation fault at address 0x7FF74898795D
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
doing a
npm install -g opencode-ai@latestsolved the issue for me.
kznr02 commentedon Feb 18, 2026
I’ve tried to reinstall opencode many times, still exists.
I am not sure if I uninstall opencode completely.
Hoshino-Yumetsuki commentedon Feb 18, 2026
This dont seem to have anything to do with opencode itself and i think the crash issue is mainly caused by bun. I encountered this error so many times in one day that I now have to stop using opencode.
killper commentedon Feb 26, 2026
also works for me!
kznr02 commentedon Mar 8, 2026
It's been solved just upgrade to 1.2.20, seems a lot of bun api was replaced and the memory leak problem is also swipped, great work!