[BUG] Bun crashes leads to Claude Code crashing
Status Closed — not planned
Maintainer reply None cached
Activity 15 comments · opened Oct 21, 2025 · closed Mar 26, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bun is erroring that then leads to CC crashing. Happened multiple times over the last couple of days and just using CC "normally"
What Should Happen?
Should not be crashing
Error Messages/Logs
<img width="1916" height="918" alt="Image" src="https://github.com/user-attachments/assets/75feba78-7f12-45d7-987b-2aad8a0d7264" />
<img width="1920" height="570" alt="Image" src="https://github.com/user-attachments/assets/3ce85455-c694-4891-bc67-d443abf5305d" />
<img width="1918" height="488" alt="Image" src="https://github.com/user-attachments/assets/b6203adf-8c20-4c12-bbb9-52d2cb56c2ed" />
<img width="1912" height="590" alt="Image" src="https://github.com/user-attachments/assets/1cb7af32-fd4b-4cb4-9547-727d991d878a" />
Steps to Reproduce
I'm just using CC normally and not doing anything in particular
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.20
Claude Code Version
2.0.20
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Warp
Additional Information
_No response_
15 Comments
I have the same problem. It looks like it’s a Bun bug. The log output essentially confirms this.
three more times today and below is from the last one
<img width="1917" height="725" alt="Image" src="https://github.com/user-attachments/assets/6a04fe02-d955-4aeb-a7f6-82dcb17717a2" />
And again!!
<sarcasm>Is this just a way for me to burn more tokens as I have to do the task again!! </sarcasm>
● Read(D:\Development\IndyDevDan\TAC\tac-8\tac8_app3__out_loop_multi_agent_task_board\.claude\commands\plan.md)
⎿ Read 112 lines
⎿ Running PostToolUse hook…
∴ Thought for 1s (ctrl+o to show thinking)
· Symbioting… (esc to interrupt)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
git:feature/SP-284-Vii | D:\Development\starrpos | ctx:run /context Thinking on (tab to toggle)
============================================================
Bun v1.3.0 (b0a6feca) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\RichardMoore\.local\bin\claude.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(146) jsc spawn(209) standalone_executable
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:domain" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/win32" "node:perf_hooks" "node:process" "node:querystring" "node:stream" "node:string_decoder" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node-fetch" "node:inspector" "node:http2" "node:diagnostics_channel"
Elapsed: 53937ms | User: 11890ms | Sys: 4703ms
RSS: 0.47GB | Peak: 0.62GB | Commit: 0.58GB | Faults: 580295 | Machine: 34.19GB
panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF
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_1b0a6fecAz/7v//Bg6y+zB6jx+zByo95IwjlnG2pwisByuxvFmwZqhJoq1p3DCYKERNEL32.DLLut0LCSntdll.dll4t0EA2DD
FYI, Rather then use Warp as my terminal I've been trying the Windows native one for a few hours and so far no errors
:)
<img width="1333" height="326" alt="Image" src="https://github.com/user-attachments/assets/a7eee3e5-0c2f-42bb-9ed4-f7ffc6533e4b" />
Bun v1.3.2 (b131639c) Linux x64 (baseline)
Linux Kernel v6.17.0 | glibc v2.42
CPU: sse42 popcnt avx avx2
Args: "claude"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(78) jsc spawn(20) standalone_executable workers_spawned(9) workers_terminated(9)
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:domain" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/win32" "node:perf_hooks" "node:process" "node:querystring" "node:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node-fetch" "node:inspector" "node:http2" "node:diagnostics_channel"
Elapsed: 7415ms | User: 6562ms | Sys: 2171ms
RSS: 0.84GB | Peak: 1.25GB | Commit: 0.84GB | Faults: 0 | Machine: 0.18TB
panic(main thread): Segmentation fault at address 0xE8
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
i seem to be experiencing a similar issue, but running in a container on Linux, Claude Code v2.0.65, with Haiku 4.5.
<img width="1295" height="633" alt="Image" src="https://github.com/user-attachments/assets/c692b9f8-7810-40da-910b-6256a6920bc0" />
at any rate, it's a Bun segfault, quite some time (and tokens!) into the session. bummer.
should i open a separate ticket for a Bun segfault on Linux as this one says
platform:windows?P.S. hopefully we can expect a blazing fast resolution, now that Bun folks have joined Anthropic, and all? 😉
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I am still facing this issue.
how to fix it ? looks that I have this issue since I switched to subscription mode
it's annoying , FIX it
Still Unresolved — This Was One of the First Reports
This issue was filed months ago. The Bun crash problem on Windows has only expanded since — now 20+ separate issues, 90+ unique affected users.
v2.1.53 shipped 4 targeted crash fixes (WASM, ARM64, spawn panic, corrupted value). They helped with specific crash modes but the core N-API race condition in Bun v1.3.10 is untouched. Crashes continue on v2.1.55.
Root cause analysis with 27 memory dumps: #21875. Full timeline (26+ repros, 4 computer lockups): #21576.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.