Bun crash on Windows: integer overflow panic in Allocator during HTTP long timeout cleanup
Resolved 💬 2 comments Opened Jun 2, 2026 by rammyps Closed Jun 6, 2026
Claude Code version: 2.1.160
OS: Windows 11 Pro x86_64
Bun version (bundled): 1.3.14
Crash report
Root cause
Integer overflow panic in Allocator.zig:443 triggered by the HTTP server's onLongTimeout handler during socket group cleanup.
Crash chain:onLongTimeout → closeAll → HTTPContext deinit (ref count decrement) → Allocator.free → integer overflow panic
Impact
Claude Code CLI crashes on Windows when the internal HTTP server hits a long timeout event (e.g. during extended MCP tool calls or long-running tasks).
Fix
The bug is in the bundled Bun 1.3.14 runtime. A Bun upgrade in the next Claude Code release should resolve it.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗