[BUG]

Resolved 💬 2 comments Opened May 13, 2026 by netanbi87 Closed May 16, 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?

Claude Code crashes with segfault in Bun runtime (exit code 3)

What Should Happen?

work

Error Messages/Logs

Steps to Reproduce

Found it! The claude.exe is crashing with a segmentation fault — a memory crash inside the Bun runtime it uses. This is a real bug in the binary itself, not your system configuration.
The crash details:

panic(main thread): Segmentation fault at address 0x40FE0

This is happening inside Bun v1.3.14 (the JavaScript runtime Claude Code is built on), and it's crashing before it can do anything useful. This is why the desktop app gets exit code 3 every time.
This is definitively Anthropic's bug to fix. Your system is perfectly fine.
Please report this at https://support.claude.com/ with:

Subject: Claude Code crashes with segfault in Bun runtime (exit code 3)
Version: 1.7196.0 desktop, claude-code 2.1.138
Key detail: Running claude.exe --print "hello" directly produces panic(main thread): Segmentation fault at address 0x40FE0 — Bun v1.3.14 segfaults on this machine
System: Windows 11 Pro, Intel i7-12850HX, 32GB RAM

\Claude\claude-code\2.1.138> .\claude.exe --print "hello" 2>&1
.\claude.exe : ============================================================
At line:1 char:1

  • .\claude.exe --print "hello" 2>&1
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (===============...===============:String) [], RemoteException
  • FullyQualifiedErrorId : NativeCommandError

←[0m←[2mBun v1.3.14 (1bfa5e34) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "\Claude\claude-code\2.1.138\claude.exe" "--print" "hello"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc spawn(2) standalone_executable yaml_parse claude_code
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "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:readline" "node:stream"
"node:stream/consumers" "node:stream/promises" "node:string_decoder" "node:timers/promises" "node:tls" "node:tty"
"node:url" "node:util" "node:vm" "node:zlib" "ws" "node:http2"
Elapsed: 593ms | User: 250ms | Sys: 187ms
RSS: 0.24GB | Peak: 0.24GB | Commit: 0.34GB | Faults: 61288 | Machine: 34.03GB
←[0m
←[31mpanic←[0m←[2m(main thread): ←[0mSegmentation fault at address 0x40FE0
panic: Segmentation fault at address 0x1E13603FFE8
panicked during a panic. Aborting.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

before 2 version

Claude Code Version

Version: 1.7196.0 desktop, claude-code 2.1.138

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗