[BUG] 2.1.284 regression: Bun 1.4.3 panics on startup on Linux x64 (`index out of bounds: the len is 0 but the index is 3`); 2.1.283 works
What's Wrong?
After auto-updating to 2.1.284, claude crashes on launch with a Bun panic before doing anything. The previous version, 2.1.283, still works on the same machine with the same config: running ~/.local/share/claude/versions/2.1.283 directly starts fine.
- Install: native installer (
~/.local/bin/claude→~/.local/share/claude/versions/2.1.284) - Linux x64, kernel 7.0.0, glibc 2.43
- CPU: sse42 popcnt avx avx2
Possibly related to the 2.1.284 startup change "building only the parts of the settings schema that your settings files actually use". The panic is an empty-array index during startup, but I haven't confirmed that change is the cause.
This is not the same as #94462 (same kernel/glibc, but crashes on every version with segfaults/aborts that vary between runs). This one is a single panic that only 2.1.284 hits.
Error Messages/Logs
============================================================
Bun v1.4.3 (eecfd55de) Linux x64
Linux Kernel v7.0.0 | glibc v2.43
CPU: sse42 popcnt avx avx2
Args: "~/.local/bin/claude"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) jsc spawn standalone_executable claude_code
Elapsed: 91ms | User: 76ms | Sys: 31ms
RSS: 0.16 GB | Peak: 0.16 GB | Commit: 111.41 MB | Faults: 0 | Machine: 32.51 GB
panic: index out of bounds: the len is 0 but the index is 3
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
https://bun.report/1.4.3/l_1eecfd55mggggQugggCugo66C63g46C27j46C0ujz6C+5iz6Ckt+56Bov9+iCwvhkrCmxqqBw4qqBy7xlnC_4/hz6D4/hz6Dousz6D4/hz6D4/hz6D67qz6Dms9q6DA0eNrLzEtJrVDILy1RyE9TSMovzUsptlIoyUhVyEnNU8gsVjBQSALKgQQywSqBQsYA5zQRyg
Aborted
Steps to Reproduce
- Linux x64, kernel 7.0.0, glibc 2.43, native install
- Auto-update from 2.1.283 to 2.1.284
- Run
claude→ Bun panic above - Run
~/.local/share/claude/versions/2.1.283→ starts normally
Workaround
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.283 and export DISABLE_AUTOUPDATER=1.
Claude Code Version
2.1.284 (regression; 2.1.283 works)
Platform / OS
Linux x64 (kernel 7.0.0, glibc 2.43), native installer