Native build crashes with 'integer does not fit in destination type' on Windows 11 AVX512
Resolved 💬 3 comments Opened Feb 7, 2026 by idansalutsky Closed Feb 11, 2026
Bug Description
The native Windows build (v2.1.34) consistently crashes with a Bun runtime panic during interactive sessions.
Error Message
panic(thread 32620): integer does not fit in destination type
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
System Information
- OS: Windows 11 (MSYS_NT-10.0-26100)
- Claude Code Version: 2.1.34 (native build)
- Installation Path: C:\Users\USER\.local\bin\claude.exe
- CPU Features: sse42 avx avx2 avx512
Memory Stats at Crash
- RSS: 4.76GB
- Peak: 6.64GB
- Commit: 5.99GB
- Machine Total: 16.95GB
Steps to Reproduce
- Install native build via
claude install - Run
claudeto start interactive session - Use normally for a few minutes
- Crash occurs consistently
Workaround
Using npm version (npm install -g @anthropic-ai/claude-code) works without issues.
Additional Context
- Crash happens after ~20-50 seconds of usage
- Memory tuning env vars (BUN_GARBAGE_COLLECTOR_ITERATION_LEVEL, NODE_OPTIONS) did not help
- The crash appears to be related to Bun's handling of large integers or memory allocation on AVX512 CPUs
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗