[BUG] Constant BUN crashes
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?
I am so tired of the constant crashes. It almost always happens when the context is around 70%. Sometimes all i need is just a little extra to update a context file before I clear.
Bun Canary v1.3.9-canary.62 (6d2fefba) Linux x64 (baseline)
WSL Kernel v6.6.87 | glibc v2.39
CPU: sse42 popcnt avx avx2
Args: "claude"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(2825) fetch(2500) jsc spawn(4506) standalone_executable process_dlopen yaml_parse(8294)
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: 10788994ms | User: 1547567ms | Sys: 605775ms
RSS: 0.02ZB | Peak: 0.83GB | Commit: 0.02ZB | Faults: 952 | Machine: 33.52GB
panic(main thread): Segmentation fault at address 0x0
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:
What Should Happen?
Claude Code should not crash. If I am doing something wrong, it should flash an error.
Toss BUN and use RUST.
Error Messages/Logs
Steps to Reproduce
Keep using Claude until you have reach 70%++. I don't know what's wrong. I suspect is has something to do with auto compact?
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code v2.1.42 Opus 4.6 · Claude Max
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
I am using GSD as well. I don't know if it has any impact but i suspect not.
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗