[BUG] Bun segfault crash after ~2h session on Windows x64 (Bun v1.3.10)
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?
Claude Code crashed with a Bun segmentation fault after approximately 2 hours of normal use.
Session was running with MCP servers active (Pencil, Chrome DevTools, Context7).
No specific action triggered it -- it appeared to happen spontaneously.
After the crash, Git bash became unstable with fatal "add_item" errors requiring a full restart.
What Should Happen?
Session should remain stable during extended use without crashing.
Crash report link:
https://bun.report/1.3.10/e_11423d3cmgEuhogCsh++pCytg5R+monvB2ly+uB___A2urCgyio2wC1~
Claude Code version: 2.1.47
What OS are you using?: Windows
Error Messages/Logs
Additional context:
Bun v1.3.10 (1423d3c8) Windows x64 (baseline)
Windows 10 Pro (10.0.19045)
CPU: sse42 avx avx2 avx512 | RAM: 42.72GB
Elapsed: 7960180ms | User: 75453ms | Sys: 13765ms
RSS: 0.54GB | Peak: 0.77GB | Commit: 1.28GB | Faults: 2569670
panic(main thread): Segmentation fault at address 0x4B750B20520
Args: "C:\Users\alegarcia\.local\bin\claude.exe" "--dangerously-skip-permissions" "-c"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(24) fetch(159) jsc spawn(114) standalone_executable process_dlopen(2)
Steps to Reproduce
- Start Claude Code v2.1.47 on Windows 10 with --dangerously-skip-permissions -c
- Have MCP servers active: Pencil, Chrome DevTools, Context7
- Use normally for ~2 hours (file operations, tool calls, conversations)
- Session crashes spontaneously with Bun segfault
- After crash, Git bash becomes unstable (fatal "add_item" errors)
Not reliably reproducible. Crash occurred during normal extended use.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
I'm not sure / I didn't test previous versions
Claude Code Version
2.1.47
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗