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

https://bun.report/1.3.14/e_1521eeddmgggkEuhogCk0szYmorlU68rlXq446vBk406vBqkxu1Bgjq+4B6z3u1BusszYmorlU68rlXy7u4vBomr4vB6695xBs9np1BskgkyBqmxmeqi63YCYKERNEL32.DLLu10LCSntdll.dll4h+hBA0eNrLzCtJTU8tUsgvSy1Ky8kvBwA2xQaD

Root cause

Integer overflow panic in Allocator.zig:443 triggered by the HTTP server's onLongTimeout handler during socket group cleanup.

Crash chain:
onLongTimeoutcloseAllHTTPContext 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗