2.1.206 linux-x64 ships a Bun baseline build that segfaults on startup (glibc 2.41)
Summary
The linux-x64 native binary shipped in @anthropic-ai/claude-code@2.1.206 is a Bun 1.4.0 baseline build, and it segfaults (SIGSEGV, exit 139) on startup on Debian 13 (glibc 2.41). Even claude --version crashes 100% of the time.
2.1.205 on the exact same machine is fine (normal build, exit 0, no crash). This is a regression introduced in 2.1.206.
Environment
- OS: Debian GNU/Linux 13 (trixie)
- Kernel: 6.17.2
- glibc: 2.41
- CPU: Intel Core i5-9500 (supports
sse4_2 avx avx2) - Node: v20.20.2, npm: 11.12.1
- Install:
npm i -g, prefix/usr - Package:
@anthropic-ai/claude-code@2.1.206, native dep@anthropic-ai/claude-code-linux-x64@2.1.206
Reproduction
$ claude --version
============================================================
Bun v1.4.0 (63bb0ca0d) Linux x64 (baseline)
Linux Kernel v6.17.2 | glibc v2.41
CPU: sse42 popcnt avx avx2
Args: "claude" "--version"
Features: jsc standalone_executable claude_code
Builtins: "bun:main"
panic(main thread): Segmentation fault at address 0x...
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Exit code 139 (SIGSEGV), reproducible 5/5 runs.
Diagnosis
The native binary at .../claude-code-linux-x64/claude reports itself as a Bun baseline build:
Bun v1.4.0 (63bb0ca0d) Linux x64 (baseline)
The CPU has avx2, so a baseline build should not have been shipped for this target, and the baseline build itself faults during runtime init on glibc 2.41.
Binary size also jumped: linux-x64 tgz went from ~79 MB (2.1.205) to a ~258 MB uncompressed binary (2.1.206), consistent with a different Bun build variant being packaged.
Version comparison on the same host
Same machine, same npm, --version run 5 times each:
| Version | Result |
|---------|--------|
| 2.1.205 | 5/5 exit 0, prints 2.1.205 (Claude Code), no crash |
| 2.1.206 | 5/5 exit 139 (SIGSEGV), Bun baseline crash banner |
Workaround
Pin to the last good release and disable auto-update (otherwise the updater pulls 2.1.206 again):
npm i -g @anthropic-ai/claude-code@2.1.205
# settings.json: "autoUpdates": false (and/or DISABLE_AUTOUPDATER=1)
Expected
linux-x64 should ship the non-baseline Bun build for AVX2-capable CPUs (as 2.1.205 did), and/or the baseline build should not segfault on glibc 2.41.
4 Comments
Closing this as not a claude-code / Bun bug — root cause was faulty RAM on my machine.
Follow-up investigation showed the crashes were non-deterministic (varying fault addresses
0xD0,0x208..., mixed SIGSEGV/SIGTRAP) and unaffected by version rollback or any runtime env-var workaround. The user had recently swapped RAM.memtesterfound hundreds of single-bit errors concentrated in a narrow physical region:Each mismatch differs by a single bit, clustered in one ~4KB band — classic weak/stuck memory cells. The system is non-ECC (
EDAC ie31200: No ECC support), so the corruption was silent and only surfaced as random crashes in memory-heavy processes like the claude TUI.The "baseline Bun build" observation in the original report was real but a red herring; it did not cause the crashes. Apologies for the noise.
Can someone read this AI report and maybe reopen ticket if correct ?
---
Adding a data point from a different environment, since I don't think this is fully explained by the RAM diagnosis above — full repro details below in case it helps re-scope this.
Environment
| Component | Details |
|---|---|
| OS | Ubuntu 26.04 LTS "Resolute Raccoon",
glibc 2.43-2ubuntu2|| Host CPU | Intel Core i7-10850H (Comet Lake) |
| Virtualization | VirtualBox 7.0.10 VM,
cpu-profile=host, native VT-x confirmed viaVBox.log(HM: HMR3Init: VT-x w/ nested paging and unrestricted guest execution hw support— not routed through Windows Hypervisor Platform/NEM) || Guest CPUID |
avx/avx2/fma/bmi1/bmi2all present — ruled out as a CPU-feature-exposure issue || Extension | Claude Code for VS Code
2.1.206(linux-x64 native binary, ~255 MB) |Repro
→
Erreur de segmentation (core dumped), 100% reproducible across many separate runs.Diagnostics
dmesg— identical fault address on every crash:strace— crash happens immediately after glibc/TLS init (arch_prctl(ARCH_SET_FS),rseq(), RELROmprotects,prlimit64,getrandom, twofutex(..., FUTEX_WAKE_PRIVATE, ...)), before any real work:si_code=SI_KERNEL/si_addr=NULLmatches the kernel's translation of a hardware#GP(general protection fault) intoSIGSEGV— consistent with thedmesgoutput above, not a normal page-fault-style segfault.gdb— backtrace shows the fault happens beforemain(), inside.init_array/global constructors:Disassembly at the fault:
Frame #2 sits inside
init=0x1c91760, called by__libc_start_main_impl, well beforemain=0x273dec0is ever reached. The fault is an indirect call through a function pointer loaded from a global (0x5325c90) during static initialization — not an AVX/YMM instruction, so not a CPU-feature-exposure issue.Ruling out RAM
Given the RAM-corruption finding discussed above, I ran the same check before posting:
Clean — no memory errors. So RAM isn't the explanation here.
Unlike the RAM-corruption case described above (varying fault addresses
0xD0/0x208..., mixedSIGSEGV/SIGTRAP, unaffected by version rollback), mine shows the opposite signature:ip:300a990, confirmed identically viagdbacross 5+ separate invocations)SIGSEGV/#GP, neverSIGTRAP2.1.205fixes it immediately and reliably — a bad DIMM wouldn't care which binary version is runningAsk
I think this issue may have conflated two unrelated root causes: a genuine RAM problem for the original reporter, and a separate
2.1.206packaging/runtime regression (possibly the "baseline Bun build" observation from the original report, which may not have been a red herring across the board) affecting other environments deterministically. Could this be reopened, or should I file a fresh issue so the real regression (if still present in the current build) doesn't get lost? Happy to provide the core dump or run further tests.ok.. do not reopen it's solved. Update of VSCode (+some linux-firmware) solve the issue. So much updates to do every day ! Strange that Claude IA didn't ask to test this (but we still have our own small brain I think...).
<img width="733" height="457" alt="Image" src="https://github.com/user-attachments/assets/c10898b3-a53e-43cc-8811-6bad97038824" />
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.