anthropics / anthropics/claude-code

SIGSEGV crash on startup with kernel 7.1.x (CachyOS) — versions >= 2.1.140

未关闭
#89,414 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
area:packaging duplicate platform:linux regression
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

## Bug Report

**Platform:** Linux x86_64
**Distro:** CachyOS
**Kernel:** 7.1.8-1-cachyos
**glibc:** 2.44
**Node.js:** v26.7.0
**npm:** 12.0.2

## Description

Claude Code crashes immediately with `SIGSEGV` on startup when running any version newer than `2.1.139`. The crash happens before any output is produced, even with `--version`.

## Steps to Reproduce

```sh
npm install -g @anthropic-ai/claude-code@latest
claude --version
# fish: Job 1, 'claude --version' terminated by signal SIGSEGV
```

Running the native binary directly also crashes:

```sh
~/.npm-global/lib/node_modules/@anthropic-ai/claude-code/node_modules/@anthropic-ai/claude-code-linux-x64/claude --version
# exit code 139
```

## Additional Info

- Version `2.1.139` works correctly on the same system.
- All shared libraries resolve correctly via `ldd`.
- `node` itself works fine (no crash).
- `objdump -p` on the new binary also crashes with SIGSEGV, suggesting the binary may be triggering a kernel-level memory protection.

## Workaround

Pin to version `2.1.139`:

```sh
npm install -g --allow-scripts=@anthropic-ai/claude-code @anthropic-ai/claude-code@2.1.139
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Reproduce the crash with `claude --version` and the native binary at `~/.npm-global/lib/node_modules/@anthropic-ai/claude-code/node_modules/@anthropic-ai/claude-code-linux-x64/claude` on the reported CachyOS kernel. Compare versions 2.1.139 and newer using `ldd` and `objdump -p`; done means startup and `--version` no longer terminate with SIGSEGV.

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, node.js
领域
cli, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。