[BUG] panic(main thread): Segmentation fault at address 0x4469BAB7D20
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 Canary v1.3.9-canary.62 (6d2fefba) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "claude" "--dangerously-skip-permissions" "--resume"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(3538) fetch(46298) jsc spawn(11901) standalone_executable process_dlopen(3) yaml_parse(356)
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node:http2"
Elapsed: 55063493ms | User: 4489671ms | Sys: 834218ms
RSS: 0.77GB | Peak: 1.99GB | Commit: 5.25GB | Faults: 30798010 | Machine: 16.89GB
panic(main thread): Segmentation fault at address 0x4469BAB7D20
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.9/e_26d2fefbmgkgEuhogCsppmqCyiu4RglgkvB0to7uB___A2skChuhyqkD
<img width="1658" height="502" alt="Image" src="https://github.com/user-attachments/assets/94dc03a4-a9f3-41ac-ab60-f5a742c05d40" />
<img width="434" height="33" alt="Image" src="https://github.com/user-attachments/assets/1ca883ed-87bb-418a-85a8-82e9f7f83485" />
What Should Happen?
no crash
Error Messages/Logs
Steps to Reproduce
I just used Claude Code to solve some issues. When Claude is running, it shows a segmentation fault, so I repport this segmentation fault issue.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.42 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
12 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Not same issue...
I used claude in cmd.exe, NOT nodejs claude. Also it's Bun v1.3.9. Also I run claude about 8 hours ago.
I wonder when this issue has fixed please? It's not friendly to end user...
This happens in 2.1.44. Windows 11, both in WSL and native. It happens regularly and seemingly random. At least once per hour. Show stopper for Windows users. This is with the powershell installation (native).
It's not related to context window usage. I get this crash randomly when the model is processing.
Bun v1.3.9 ([
6d2fefb](<https://github.com/oven-sh/bun/tree/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8>)) on windows x86_64_baseline [_]Segmentation fault at address 0xFFFFFFFFFFFFFFFF
Allocator.zig:141](<https://github.com/oven-sh/zig/blob/bun-6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/lib/std/mem/Allocator.zig#L141>):rawRemaparray_list.zig:422](<https://github.com/oven-sh/zig/blob/bun-6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/lib/std/array_list.zig#L422>):clearRetainingCapacitypipe.c:2211](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/win/pipe.c#L2211>):uv__process_pipe_write_reqcore.c:579](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/win/core.c#L579>):uv__process_reqscore.c:736](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/win/core.c#L736>):uv_runVirtualMachine.zig:340](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/bun.js/VirtualMachine.zig#L340>):onAfterEventLoopbun.js.zig:452](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/bun.js.zig#L452>):startbindings.cpp:4686](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/bun.js/bindings/bindings.cpp#L4686>):JSC__VM__holdAPILockVM.zig:35](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/bun.js/bindings/VM.zig#L35>):holdAPILockcli.zig:20](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/cli.zig#L20>):startmain.zig:62](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/main.zig#L62>):mainexe_common.inl:78](<https://github.com/oven-sh/bun/blob/6d2fefba4c4ff73f6cb1d6141ed44091b788b2c8/src/src/startup/exe_common.inl#L78>):invoke_mainAnother one:
It crashed just when I ran
/clearAnother....
`
============================================================
Bun v1.3.10 (1423d3c8) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\Nathan\.local\bin\claude.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(4) fetch(101) jsc spawn(82) standalone_executable process_dlopen(2) yaml_parse(59)
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node:http2"
Elapsed: 98856ms | User: 5671ms | Sys: 2250ms
RSS: 0.85GB | Peak: 0.85GB | Commit: 1.26GB | Faults: 349138 | Machine: 42.62GB
panic(main thread): switch on corrupt value
oh no: Bun has crashed. This indicates a bug in Bun, not your code.`
It still crashes in version 2.1.47 :-(
Is this caused by bun's canary version's incoperation with Windows, or the issue just in 2.1.47?
Since my Claude Code goes well on Ubuntu with the same version, but crashes randomly on Windows.
New crash with claude code 2.1.50:
<img width="1908" height="475" alt="Image" src="https://github.com/user-attachments/assets/e0f41f7e-c350-42c2-9f82-dfe36b23805b" />
New crash:
C:\Users\Administrator>claude --version2.1.50 (Claude Code)
<img width="1905" height="539" alt="Image" src="https://github.com/user-attachments/assets/c22e5d60-2d82-4f70-9dd5-3c98455ce328" />
Part of a Broader Bun v1.3.10 Crash Family
This segfault is one of 20+ Bun crash issues on Windows — different crash addresses (0x18, 0x7, 0x113, 0xFFFF), same root cause. 90+ unique users affected. Community root cause analysis (N-API race condition, 27 memory dumps, WinDbg traces) on #21875.
v2.1.53's 4 crash fixes didn't address the N-API issue. Still crashing on v2.1.55.
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.