[BUG] Windows 11 Pro 24H2: segmentation fault during PowerShell install, and also when launching `claude.exe` after WinGet install
Resolved 💬 12 comments Opened May 8, 2026 by marvinwnc Closed Jul 8, 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?
Summary
On Windows 11 Pro 24H2, Claude Code hits a segmentation fault in two related scenarios on the same machine:
- During installation via the official PowerShell installer:
irm https://claude.ai/install.ps1 | iex
- After installation via WinGet, when launching
claude.exein interactive mode
In the WinGet case, claude.exe --version works, but claude.exe crashes immediately with a segmentation fault.
This appears to affect both the installer path and the runtime startup path in the same environment.
Environment
- OS: Windows 11 Pro 24H2
- Architecture: x64
- Claude Code version: 2.1.132
- Bun runtime shown in output: v1.3.14
- Shell: PowerShell
---
Scenario 1: Official PowerShell installer crashes during install
Command
irm https://claude.ai/install.ps1 | iex
### What Should Happen?
Scenario One (installation via the official PowerShell installer):
The installer should complete without crashing.
ScenarioTwo (After installation via WinGet, when launching `claude.exe` in interactive mode):
claude.exe should start normally and enter the interactive CLI.
### Error Messages/Logs
```shell
Scenario One:
PS C:\Users\xxxx> irm https://claude.ai/install.ps1 | iex
Setting up Claude Code...
============================================================
Bun v1.3.14 (0a466a11) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\xxxx\.claude\downloads\claude-2.1.132-win32-x64.exe" "install" "latest"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) 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" "undici" "ws" "node:http2"
Elapsed: 1134ms | User: 640ms | Sys: 531ms
RSS: 0.35GB | Peak: 0.35GB | Commit: 0.47GB | Faults: 86852 | Machine: 17.01GB
panic(main thread): Segmentation fault at address 0x40FE0
panic: Segmentation fault at address 0x224DB95FFE8
panicked during a panic. Aborting.
✅ Installation complete!
PS C:\Users\xxxx>
Scenario Two:
winget install Anthropic.ClaudeCode
PS C:\Users\xxxx> claude.exe --version
2.1.132 (Claude Code)
S C:\Users\xxxx> claude.exe
============================================================
Bun v1.3.14 (0a466a11) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\xxxx\AppData\Local\Microsoft\WinGet\Packages\Anthropic.ClaudeCode_Microsoft.Winget.Source_8wekyb3d8bbwe\claude.exe"
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: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: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: 1209ms | User: 828ms | Sys: 515ms
RSS: 0.35GB | Peak: 0.35GB | Commit: 0.44GB | Faults: 87513 | Machine: 17.01GB
panic(main thread): Segmentation fault at address 0x40FE0
panic: Segmentation fault at address 0x25CD944FFE8
panicked during a panic. Aborting.
PS C:\Users\xxxx>
Steps to Reproduce
Scenario One:
- Enter Power Shell
- Run the following:
irm https://claude.ai/install.ps1 | iex
Scenario Two:
- Enter Power Shell
- Run the following to install claude.exe
winget install Anthropic.ClaudeCode
- Open another Power Shell and run the followings:
claude.exe --version
claude.exe
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.132
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗