anthropics / anthropics/claude-code

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

Đang mở
#89,414 1 bình luận 3 reaction 0 người được giao Xem trên GitHub
area:packaging duplicate platform:linux regression
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

## 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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
linux, node.js
Lĩnh vực
cli, operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.