claude-code - 💡(How to fix) Fix [BUG] Bus error (SIGBUS) on AlmaLinux 9 / RHEL 9 with kernel 5.14 — ARCH_SET_XCOMP_PERM syscall not supported

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Claude Code crashes immediately with "Bus error (core dumped)" on AlmaLinux 9.7

Error Messages/Logs

Bus error (core dumped) 4. Observe: Bus error (core dumped)

Code Example

$ claude --help
Bus error (core dumped)

$ strace ~/.local/bin/claude --help 2>&1 | head -10
execve("/tmp/claude-jkurtzwe", ["/tmp/claude-jkurtzwe", "--help"], 0x7ffd26ec0168 /* 68 vars */) = 0
brk(NULL)                               = 0xf483000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc97749c20) = -1 EINVAL (Invalid argument)
--- SIGBUS {si_signo=SIGBUS, si_code=BUS_ADRERR, si_addr=0x61c8000} ---
+++ killed by SIGBUS (core dumped) +++

$ ldd ~/.local/bin/claude
ldd: exited with unknown exit code (135)
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code crashes immediately with "Bus error (core dumped)" on AlmaLinux 9.7 running kernel 5.14. The crash occurs before any useful work is done, even with claude --help. The binary crashes whether run from NFS home directory or local /tmp storage.

What Should Happen?

Claude Code should run successfully on AlmaLinux 9 / RHEL 9, which is a fully supported enterprise Linux distribution. RHEL 9's standard kernel is 5.14 and will remain so for its entire lifecycle — this affects all standard RHEL 9 and AlmaLinux 9 installations that have not applied a custom kernel.

Error Messages/Logs

$ claude --help
Bus error (core dumped)

$ strace ~/.local/bin/claude --help 2>&1 | head -10
execve("/tmp/claude-jkurtzwe", ["/tmp/claude-jkurtzwe", "--help"], 0x7ffd26ec0168 /* 68 vars */) = 0
brk(NULL)                               = 0xf483000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc97749c20) = -1 EINVAL (Invalid argument)
--- SIGBUS {si_signo=SIGBUS, si_code=BUS_ADRERR, si_addr=0x61c8000} ---
+++ killed by SIGBUS (core dumped) +++

$ ldd ~/.local/bin/claude
ldd: exited with unknown exit code (135)

Steps to Reproduce

  1. SSH into a machine running AlmaLinux 9.7 with kernel 5.14.x (standard RHEL 9 kernel)
  2. Run the official installer: curl -fsSL https://claude.ai/install.sh | bash
  3. Run: claude --help
  4. Observe: Bus error (core dumped)

Confirmed system details:

  • OS: AlmaLinux 9.7
  • Kernel: 5.14.0-611.55.1.el9_7.x86_64
  • CPU flags confirmed present: avx, avx2 (not a CPU instruction issue)
  • /tmp is local disk (not NFS) — crash occurs regardless of binary location
  • Architecture: x86_64, Virtual: kvm

The bundled Node.js binary calls arch_prctl(0x3001), which is ARCH_SET_XCOMP_PERM — a syscall for enabling AMX (Advanced Matrix Extensions) CPU features added in kernel 5.16. RHEL 9 / AlmaLinux 9 ship with kernel 5.14 as their stable base and will not update to 5.16+. The kernel returns EINVAL, which causes an immediate SIGBUS crash.

This affects all standard RHEL 9 / AlmaLinux 9 systems, which represent a large portion of enterprise and HPC Linux deployments.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.150 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

This was reproduced on a Fermilab CMS LPC computing cluster (cmslpc.fnal.gov), which is representative of a broad class of HPC/scientific computing environments that run standard RHEL 9 or AlmaLinux 9.

Suggested fix: the bundled Node.js should handle EINVAL from ARCH_SET_XCOMP_PERM gracefully rather than crashing, or Claude Code should ship with a Node.js build that does not make this call on kernels that don't support it. Node 18 LTS does not make this call and is unaffected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Bus error (SIGBUS) on AlmaLinux 9 / RHEL 9 with kernel 5.14 — ARCH_SET_XCOMP_PERM syscall not supported