[BUG] Segmentation fault at address

Status Open
Reported on v2.1.116
Maintainer reply None cached
Activity 11 comments · opened Apr 21, 2026

Preflight Checklist

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

What's Wrong?

On a repo (no matter it's a git repo or not) when I run /init, after 30~seconds claude code cli (2.1.116 or 2.1.114) crashes on a Windows 10 OS with Node v24.15.0 (older node versions had the same result). Below is the error message :

Bun v1.3.13 (743d2a40) Windows x64 (baseline)
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\Users\XXXXX\node\node_modules\@anthropic-ai\claude-code\bin\claude.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(13) fetch(26) http_client_proxy(22) jsc spawn(19) standalone_executable yaml_parse(2) claude_code
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:stream" "node:stream/consumers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:vm" "node:zlib" "undici" "ws" "node:http2"
Elapsed: 33310ms | User: 6046ms | Sys: 1687ms
RSS: 0.56GB | Peak: 0.58GB | Commit: 0.76GB | Faults: 206490 | Machine: 68.63GB

panic(thread 18196): Segmentation fault at address 0xCD

panic: Segmentation fault at address 0xC8
panicked during a panic. Aborting.

Same happens for claude desktop latest version also.

2.1.112 working fine. When I run wsl on the same machine it also works. I suspect it's an OS specific issue.

What Should Happen?

Claude Code executes commands as expected.

Error Messages/Logs

Bun v1.3.13 (743d2a40) Windows x64 (baseline)
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\Users\XXXXX\node\node_modules\@anthropic-ai\claude-code\bin\claude.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) abort_signal(13) fetch(26) http_client_proxy(22) jsc spawn(19) standalone_executable yaml_parse(2) claude_code
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:path/posix" "node:path/win32" "node:perf_hooks" "node:process" "node:stream" "node:stream/consumers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:vm" "node:zlib" "undici" "ws" "node:http2"
Elapsed: 33310ms | User: 6046ms | Sys: 1687ms
RSS: 0.56GB | Peak: 0.58GB | Commit: 0.76GB | Faults: 206490 | Machine: 68.63GB

panic(thread 18196): Segmentation fault at address 0xCD

panic: Segmentation fault at address 0xC8
panicked during a panic. Aborting.

Steps to Reproduce

  1. Create a code repo with some basic code.
  2. open claude code cli under that repo
  3. run /init

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.112

Claude Code Version

2.1.116

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Update

Crash occurs even if I don't execute any command and wait at claude command prompt. and it doesn't log any error related log (it logs other stuff so --debug is working) to .claude/debug folder.

_No response_

View original on GitHub ↗

11 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/50559
  2. https://github.com/anthropics/claude-code/issues/51023
  3. https://github.com/anthropics/claude-code/issues/50187

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

serkanz · 4 months ago
Found 3 possible duplicate issues: 1. [[BUG] Subprocess initialization did not complete within 60000ms on Windows — regression from 2.1.114 #50559](https://github.com/anthropics/claude-code/issues/50559) 2. [[BUG] --worktree flag panics with segfault when .claude/worktrees directory already exists #51023](https://github.com/anthropics/claude-code/issues/51023) 3. [[BUG] Cowork - Claude Code process exits with code 139 (SIGSEGV) on launch #50187](https://github.com/anthropics/claude-code/issues/50187) This issue will be automatically closed as a duplicate in 3 days. If your issue is a duplicate, please close it and 👍 the existing issue instead To prevent auto-closure, add a comment or 👎 this comment 🤖 Generated with Claude Code

bugs you listed are not duplicate of this bug. 2.1.112 is working fine however 2.1.114 and 2.1.116 not.

serkanz · 4 months ago

issue still exists on 2.1.123. Claude Desktop 1.5354.0 has the same problem. any comment ?

serkanz · 3 months ago

related to #50640

nicolasvaldearenas · 3 months ago

Affected environment:

  • OS: Windows 11
  • CPU: 11th Gen Intel Core i5-1145G7 @ 2.60GHz (AVX512 capable)
  • Claude Code version: 2.1.128
  • Node.js: v20.19.6 (via NVM)
  • Installation path: C:\Program Files\nodejs\node_modules\@anthropic-ai\claude-code

Crash output:

Bun v1.3.14 (0a466a11) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2 avx512
Args: "C:\Program Files\nodejs\node_modules\@anthropic-ai\claude-code\bin\claude.exe"
Elapsed: 2223ms | User: 937ms | Sys: 531ms
RSS: 0.42GB | Peak: 0.42GB | Commit: 0.53GB | Faults: 105191
panic(thread 5388): Segmentation fault at address 0xCC
panic: Segmentation fault at address 0xC8
panicked during a panic. Aborting.

Reproduction: 100% reproducible on every launch, both as regular user and as Administrator.

Workarounds attempted (all failed):

  • Running as Administrator
  • Running via node cli-wrapper.cjs (the wrapper also spawns the .exe)
  • Setting BUN_JSC_useWebAssemblySIMD=0 and other JSC env vars — all returned "invalid JSC environment variable"

Notes: The crash address 0xCC / 0xC8 matches exactly the pattern in this issue. The binary runs in baseline mode despite the CPU supporting AVX512, which may indicate incorrect CPU feature detection on Intel 11th Gen Tiger Lake.

Please consider shipping a Windows build that explicitly disables AVX512, or providing a fallback execution path via Node.js for affected hardware.

serkanz · 3 months ago

related to #58586

serkanz · 3 months ago

please provide a fix for this asap. we cannot use our subscription as we expect.

jquan-stack · 2 months ago

@serkanz Only successful workaround is to run wsl and install claude there and use WSL to access your windows directories. I have tried to use alternative method of installation via npm instead of the cmd/powershell script but it is still failing with the same error.

serkanz · 1 month ago

any update on this?

AriBarzilai-NICE · 1 month ago

Hello, any update on this? I am facing this too on v2.1.215 of claude code with v1.4.0 of bun, it's pretty frustrating!

oowang15 · 1 month ago

Workaround found: disable the JSC FTL JIT tier via BUN_JSC_useFTLJIT=0

Environment: Windows 10/11 (10.26200), x64, native install at ~/.local/bin/claude.exe. Crash reproduced on every launch (even claude -p "ok"), ~5s after start, on CLI 2.1.218/2.1.219/2.1.220 (Bun 1.4.0 f6d0fcd, baseline build) and on 2.1.154 (Bun 1.3.14). Segfault address 0x3C.

Diagnosis:

  • Crash is independent of project, hooks, and settings (reproduced with --settings '{"hooks": {}}' in an empty dir).
  • The last Node-based CLI (2.1.112, cli.js under Node 24) runs fine, as does the Linux build under WSL2 — so this is specific to the bundled Bun runtime on this machine.
  • Disabling JSC's FTL JIT tier by setting the environment variable BUN_JSC_useFTLJIT=0 makes the native Windows binary run reliably (verified 3/3 launches with claude -p). BUN_JSC_useJIT=0 (all JIT tiers off) also works; FTL-only is the minimal tier to disable.

Deployment: setx BUN_JSC_useFTLJIT 0 persists it for the user; new terminals pick it up.

This points the root cause at the FTL JIT in Bun's Windows x64 baseline build on affected machines rather than Claude Code app code. Hope this helps narrow it down.