[BUG] Segmentation fault(Bun Canary v1.3.9-canary.51)with Windows 11 Powershell
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?
The prebuilt executable (claude.exe, version 2.1.37) crashes with a segmentation fault when running on Windows 11 inside PowerShell. It immediately terminates with a Bun Canary panic message. The same executable works normally in CMD, so this inconsistent behavior should not occur. Since the EXE embeds Bun Canary v1.3.9-canary.51, the crash appears to be triggered by the runtime itself rather than the user environment or code.
<img width="2347" height="1136" alt="Image" src="https://github.com/user-attachments/assets/930bedf6-cf9b-42fe-afe8-097d016e52ca" />
and CMD works ok:
<img width="2337" height="1216" alt="Image" src="https://github.com/user-attachments/assets/982c1188-d83c-467e-aedd-d3e73b112aad" />
What Should Happen?
The standalone executable should run consistently in both PowerShell and CMD without crashing. It should not trigger a segmentation fault regardless of which Windows shell is used. The program is expected to start normally and operate the same way across different terminals.
Error Messages/Logs
ctrl+t to hide tasks
============================================================
Bun Canary v1.3.9-canary.51 (d5628db2) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\a3122\.local\bin\claude.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(9) jsc spawn(10) standalone_executable process_dlopen yaml_parse(31)
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:querystring" "node:stream" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:zlib" "node:worker_threads" "undici" "ws" "node-fetch" "node:http2"
Elapsed: 1305ms | User: 406ms | Sys: 437ms
RSS: 0.60GB | Peak: 0.60GB | Commit: 0.84GB | Faults: 152028 | Machine: 51.34GB
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.9/e_2d5628dbmgkgEugogCgm+2W88outB4s+mqC49uiqC6ssiqCy7sqXozg0U23wN2/tgUm17jOimsjOw0vxvDCYKERNEL32.DLLut0LCSntdll.dll4zijBA2DD
Steps to Reproduce
- Update Claude CLI to version 2.1.37 (which bundles Bun Canary v1.3.9-canary.51).
- Open Windows PowerShell or Windows Terminal (PowerShell profile).
- Run:
claude
- The program immediately crashes with a segmentation fault.
- Run the same executable in CMD.
- It works normally without crashing.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.34
Claude Code Version
PS D:\Desktop\Nebula> claude --version 2.1.37 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗