auto update causes: Bun segmentation fault (Windows) #2165

Open
opened 2026-02-16 17:34:28 -05:00 by yindo · 20 comments
Owner

Originally created by @HansuHessu on GitHub (Oct 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi, Opencode suggested to restart since an update can be installed. So exited my current sessions with v0.15.7 and tried to restart Opencode. Now I receive this error:

============================================================
Bun v1.3.0 (b0a6feca) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Program Files\nodejs\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe"
Elapsed: 1ms | User: 0ms | Sys: 0ms
RSS: 17.37MB | Peak: 17.37MB | Commit: 58.06MB | Faults: 4405

panic(main thread): Segmentation fault at address 0x7FF71F0A739E
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

https://bun.report/1.3.0/e_1b0a6fecAA+ykuFmwZqhJoq1p3DCYKERNEL32.DLLut0LCSntdll.dll4zijBA2u//B855phf

I checked my globally installed npm packages and saw that indeed Opencode had been updated to v0.15.8

Steps to reproduce

Have v0.15.7 installed and open. Wait for Opencode to suggest a restart for update. Exit Opencode and re-open.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

PowerShell 7

Originally created by @HansuHessu on GitHub (Oct 18, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, Opencode suggested to restart since an update can be installed. So exited my current sessions with v0.15.7 and tried to restart Opencode. Now I receive this error: > ============================================================ > Bun v1.3.0 (b0a6feca) Windows x64 (baseline) > Windows v.win11_dt > CPU: sse42 avx avx2 > Args: "C:\Program Files\nodejs\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe" > Elapsed: 1ms | User: 0ms | Sys: 0ms > RSS: 17.37MB | Peak: 17.37MB | Commit: 58.06MB | Faults: 4405 > > panic(main thread): Segmentation fault at address 0x7FF71F0A739E > oh no: Bun has crashed. This indicates a bug in Bun, not your code. > > To send a redacted crash report to Bun's team, > please file a GitHub issue using the link below: > > https://bun.report/1.3.0/e_1b0a6fecAA+ykuFmwZqhJoq1p3DCYKERNEL32.DLLut0LCSntdll.dll4zijBA2u//B855phf I checked my globally installed npm packages and saw that indeed Opencode had been updated to v0.15.8 ### Steps to reproduce Have v0.15.7 installed and open. Wait for Opencode to suggest a restart for update. Exit Opencode and re-open. ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal PowerShell 7
yindo added the windowsbug labels 2026-02-16 17:34:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #750: Bun keep crashing when run Opencode on Windows (Bash) - Similar Bun segmentation fault crashes on Windows platform
  • #3002: Package manager failed to install the right version of opencode CLI for Windows - Related Windows installation/startup issues after updates

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #750: Bun keep crashing when run Opencode on Windows (Bash) - Similar Bun segmentation fault crashes on Windows platform - #3002: Package manager failed to install the right version of opencode CLI for Windows - Related Windows installation/startup issues after updates Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 18, 2025):

@HansuHessu does it still break if you delete opencode and reinstall?

@rekram1-node commented on GitHub (Oct 18, 2025): @HansuHessu does it still break if you delete opencode and reinstall?
Author
Owner

@HansuHessu commented on GitHub (Oct 18, 2025):

@rekram1-node after reinstalling its starts. Seems to be an issue with this "auto update" feature I experienced.

@HansuHessu commented on GitHub (Oct 18, 2025): @rekram1-node after reinstalling its starts. Seems to be an issue with this "auto update" feature I experienced.
Author
Owner

@rekram1-node commented on GitHub (Oct 18, 2025):

hmm okay, cc @itsrainingmani

@rekram1-node commented on GitHub (Oct 18, 2025): hmm okay, cc @itsrainingmani
Author
Owner

@Regboy744 commented on GitHub (Nov 2, 2025):

Bug Report: Segmentation Fault on Bun v1.3.0

Description
Bun crashes with a segmentation fault (address 0x783C21E1E220) immediately upon startup. The crash appears to occur during the initialization phase.
What happened:

Bun terminated with "Segmentation fault at address 0x783C21E1E220"
The process crashed before executing any user code
No specific error message about what caused the crash

Image

Bun version: v1.3.0 (b0a6faca)
OS: Linux x64 (baseline)
Kernel: Linux v6.12.56
glibc: v2.42
CPU: sse42 popent avx avx2 avx512


### **When** it happens:
The crash occurs immediately when running Bun, during the startup/initialization phase.

### **Error Output**

panic(main thread): Segmentation fault at address 0x783C21E1E220
oh no: Bun has crashed. This indicates a bug in Bun, not your code.


### **System Information**
- **RAM**: 1.016B
- **Peak Memory**: 0.27GB
- **Commit**: 1.016B
- **Faults**: 0
- **Machine**: 41.756B

### **How to Reproduce**
1. Install Bun v1.3.0
2. Run any Bun command (even `bun --version`)
3. Observe segmentation fault

### **Expected Behavior**
Bun should start normally without crashing.

### **Actual Behavior**
Bun crashes with a segmentation fault before executing any code.

### **Additional Context**
- The crash report shows multiple Node.js compatibility modules being loaded
- Error occurs at memory address: `0x783C21E1E220`
- Elapsed time before crash: 6298ms
- User: 1436ms | Sys: 301ms

### **Possible Related Information**
The crash log shows various Node.js built-in modules being loaded:
- `node:assert`, `node:async_hooks`, `node:buffer`, `node:child_process`, `node:console`, `node:crypto`, `node:events`, `node:fs`, `node:http`, `node:https`, `node:module`, `node:net`, `node:os`, `node:path`, `node:process`, `node:readline`, `node:stream`, `node:string_decoder`, `node:timers`, `node:timers/promises`, `node:tls`, `node:tty`, `node:url`, `node:util`, `undici`

@Regboy744 commented on GitHub (Nov 2, 2025): Bug Report: Segmentation Fault on Bun v1.3.0 Description Bun crashes with a segmentation fault (address 0x783C21E1E220) immediately upon startup. The crash appears to occur during the initialization phase. What happened: Bun terminated with "Segmentation fault at address 0x783C21E1E220" The process crashed before executing any user code No specific error message about what caused the crash <img width="1568" height="558" alt="Image" src="https://github.com/user-attachments/assets/9bf197f3-676b-4d9a-b050-f7a8f007a3b7" /> Bun version: v1.3.0 (b0a6faca) OS: Linux x64 (baseline) Kernel: Linux v6.12.56 glibc: v2.42 CPU: sse42 popent avx avx2 avx512 ``` ### **When** it happens: The crash occurs immediately when running Bun, during the startup/initialization phase. ### **Error Output** ``` panic(main thread): Segmentation fault at address 0x783C21E1E220 oh no: Bun has crashed. This indicates a bug in Bun, not your code. ``` ### **System Information** - **RAM**: 1.016B - **Peak Memory**: 0.27GB - **Commit**: 1.016B - **Faults**: 0 - **Machine**: 41.756B ### **How to Reproduce** 1. Install Bun v1.3.0 2. Run any Bun command (even `bun --version`) 3. Observe segmentation fault ### **Expected Behavior** Bun should start normally without crashing. ### **Actual Behavior** Bun crashes with a segmentation fault before executing any code. ### **Additional Context** - The crash report shows multiple Node.js compatibility modules being loaded - Error occurs at memory address: `0x783C21E1E220` - Elapsed time before crash: 6298ms - User: 1436ms | Sys: 301ms ### **Possible Related Information** The crash log shows various Node.js built-in modules being loaded: - `node:assert`, `node:async_hooks`, `node:buffer`, `node:child_process`, `node:console`, `node:crypto`, `node:events`, `node:fs`, `node:http`, `node:https`, `node:module`, `node:net`, `node:os`, `node:path`, `node:process`, `node:readline`, `node:stream`, `node:string_decoder`, `node:timers`, `node:timers/promises`, `node:tls`, `node:tty`, `node:url`, `node:util`, `undici`
Author
Owner

@rekram1-node commented on GitHub (Nov 2, 2025):

yikes, idk if it matters but howd u install?

@rekram1-node commented on GitHub (Nov 2, 2025): yikes, idk if it matters but howd u install?
Author
Owner

@negu63 commented on GitHub (Nov 2, 2025):

I am experiencing the exact same error. I am also using Windows Terminal, and while I'm not sure if it's related, I've noticed that it works perfectly fine when I type the command manually. However, this error seems to occur specifically when I execute the prompt after pasting it in.

@negu63 commented on GitHub (Nov 2, 2025): I am experiencing the exact same error. I am also using Windows Terminal, and while I'm not sure if it's related, I've noticed that it works perfectly fine when I type the command manually. However, this error seems to **occur specifically when I execute the prompt after pasting it in.**
Author
Owner

@rekram1-node commented on GitHub (Nov 3, 2025):

@negu63 what version are u on

@rekram1-node commented on GitHub (Nov 3, 2025): @negu63 what version are u on
Author
Owner

@negu63 commented on GitHub (Nov 5, 2025):

@negu63 what version are u on

I am using opencode v1.0.12 and have selected GitHub Copilot. I'm not entirely sure, but it seems that when I paste a very long text (like an error message), it gets split into multiple chat messages. This appears to trigger many inputs simultaneously, which I believe is causing an error.

@negu63 commented on GitHub (Nov 5, 2025): > [@negu63](https://github.com/negu63) what version are u on I am using **opencode v1.0.12** and have selected GitHub Copilot. I'm not entirely sure, but it seems that when I paste a very long text (like an error message), it gets split into multiple chat messages. This appears to trigger many inputs simultaneously, which I believe is causing an error.
Author
Owner

@Hona commented on GitHub (Nov 16, 2025):

I have gotten a couple random Bun segfaults, but according to the error message its not our fault but bun's?

@Hona commented on GitHub (Nov 16, 2025): I have gotten a couple random Bun segfaults, but according to the error message its not our fault but bun's?
Author
Owner

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

If that's what the error is then yes but that's still annoying, hopefully they address those. I guess anytime you get them you can create issues to bun repo I think it includes a link or something to do so

@rekram1-node commented on GitHub (Nov 16, 2025): If that's what the error is then yes but that's still annoying, hopefully they address those. I guess anytime you get them you can create issues to bun repo I think it includes a link or something to do so
Author
Owner

@Hona commented on GitHub (Nov 16, 2025):

Yup, they seem to ask for a repro in the issue template, which is hard to find a consistent setup. Will see if I can at some point

@Hona commented on GitHub (Nov 16, 2025): Yup, they seem to ask for a repro in the issue template, which is hard to find a consistent setup. Will see if I can at some point
Author
Owner

@Hona commented on GitHub (Nov 16, 2025):

Image

There's a large number of segfault issues on windows on bun's tracker. Seems like it could be quite the bug(s) to find :D

@Hona commented on GitHub (Nov 16, 2025): <img width="1290" height="1178" alt="Image" src="https://github.com/user-attachments/assets/93035802-7f6a-43a0-8ea2-2f30566d7d7d" /> There's a large number of segfault issues on windows on bun's tracker. Seems like it could be quite the bug(s) to find :D
Author
Owner

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

yikes

@rekram1-node commented on GitHub (Nov 16, 2025): yikes
Author
Owner

@allora-it-robertpofuk commented on GitHub (Nov 23, 2025):

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"

Linux 6.14.0-36-generic

When editing prompt with arrows:
Rendering opencode useless :(

=======================================s and will be running in cluster where it has
Bun v1.3.3 (274e01c7) Linux x64 (baseline)
Linux Kernel v6.14.0 | glibc v2.39laude Opus 4.1 (latest)
CPU: sse42 popcnt avx avx2▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Args: "opencode" "--user-agent=opencode/1.0.105" "--" tab switch agent ctrl+p commands
Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) fetch(16) http_server jsc shell(2) spawn(4) standalone_executable workers_spawned
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici"
Elapsed: 5580ms | User: 2093ms | Sys: 502ms
RSS: 1.04GB | Peak: 0.31GB | Commit: 1.04GB | Faults: 0 | Machine: 33.30GB

panic(main thread): Segmentation fault at address 0x7FFD00000001
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
opencode v1.0.105 ~/lkw/devops-release-manager/scripts
https://bun.report/1.3.3/Ba1274e01ciIz/33+/Bk7liuE+ypRA26//BC

Illegal instruction (core dumped)

@allora-it-robertpofuk commented on GitHub (Nov 23, 2025): DISTRIB_ID=Ubuntu DISTRIB_RELEASE=24.04 DISTRIB_CODENAME=noble DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS" PRETTY_NAME="Ubuntu 24.04.3 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.3 LTS (Noble Numbat)" Linux 6.14.0-36-generic When editing prompt with arrows: Rendering opencode useless :( =======================================s and will be running in cluster where it has Bun v1.3.3 (274e01c7) Linux x64 (baseline) Linux Kernel v6.14.0 | glibc v2.39laude Opus 4.1 (latest) CPU: sse42 popcnt avx avx2▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Args: "opencode" "--user-agent=opencode/1.0.105" "--" tab switch agent ctrl+p commands Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) fetch(16) http_server jsc shell(2) spawn(4) standalone_executable workers_spawned Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" Elapsed: 5580ms | User: 2093ms | Sys: 502ms RSS: 1.04GB | Peak: 0.31GB | Commit: 1.04GB | Faults: 0 | Machine: 33.30GB panic(main thread): Segmentation fault at address 0x7FFD00000001 oh no: Bun has crashed. This indicates a bug in Bun, not your code. To send a redacted crash report to Bun's team, please file a GitHub issue using the link below: opencode v1.0.105 ~/lkw/devops-release-manager/scripts https://bun.report/1.3.3/Ba1274e01ciIz/33+/Bk7liuE+ypRA26//BC Illegal instruction (core dumped)
Author
Owner

@DGJK2301 commented on GitHub (Dec 6, 2025):

same problem

@DGJK2301 commented on GitHub (Dec 6, 2025): same problem
Author
Owner

@Ruszero01 commented on GitHub (Jan 14, 2026):

+1 This issue completely prevents opencode from functioning normally; sometimes it can operate stably for 2 hours, but once it starts crashing, it's usually unable to complete even a single normal conversation., on win11 cmd

@Ruszero01 commented on GitHub (Jan 14, 2026): +1 This issue completely prevents opencode from functioning normally; sometimes it can operate stably for 2 hours, but once it starts crashing, it's usually unable to complete even a single normal conversation., on win11 cmd
Author
Owner

@Hona commented on GitHub (Jan 14, 2026):

@Ruszero01 I haven't gotten many segfaults lately.
I use Windows Terminal + PWSH.
I'll try CMD.exe for a few days to see.

To confirm youre using opencode in the terminal - can you send the output from running opencode --version

@Hona commented on GitHub (Jan 14, 2026): @Ruszero01 I haven't gotten many segfaults lately. I use Windows Terminal + PWSH. I'll try CMD.exe for a few days to see. To confirm youre using opencode in the terminal - can you send the output from running `opencode --version`
Author
Owner

@Ruszero01 commented on GitHub (Jan 14, 2026):

@Hona

C:\Users\123>opencode --version
1.1.19

I tried reinstalling bun, but it seems that opencode is built-in with version 1.3.5, and the bun I installed myself does not work. Then, I tried reinstalling using npm, using bun to reinstall opencode, or using the desktop app, all of which have a chance of encountering errors when bun runs. Sometimes, after a reinstall, it can run stably for a few hours, but once errors start to appear, subsequent session restarts almost always result in errors. I'm not sure if it's related to OMO, but I also have a chance of encountering this error even without installing OMO.

@Ruszero01 commented on GitHub (Jan 14, 2026): @Hona ``` C:\Users\123>opencode --version 1.1.19 ``` I tried reinstalling bun, but it seems that opencode is built-in with version 1.3.5, and the bun I installed myself does not work. Then, I tried reinstalling using npm, using bun to reinstall opencode, or using the desktop app, all of which have a chance of encountering errors when bun runs. Sometimes, after a reinstall, it can run stably for a few hours, but once errors start to appear, subsequent session restarts almost always result in errors. I'm not sure if it's related to OMO, but I also have a chance of encountering this error even without installing OMO.
Author
Owner

@alessandrojcm commented on GitHub (Jan 15, 2026):

Same here, just random crashes. Version 1.1.9 (later versions are mark as trojans)

@alessandrojcm commented on GitHub (Jan 15, 2026): Same here, just random crashes. Version 1.1.9 (later versions are mark as trojans)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2165