V8 crash (Illegal instruction) on WSL2 Ubuntu 24.04 with Intel i9-14900HX
Resolved 💬 3 comments Opened Dec 10, 2025 by bobum Closed Feb 11, 2026
Description
Claude Code v2.0.64 crashes with a V8 "unreachable code" fatal error and "Illegal instruction (core dumped)" when running on WSL2.
Environment
- Claude Code version: 2.0.64
- OS: Ubuntu 24.04.3 LTS on WSL2
- Kernel: 6.6.87.2-microsoft-standard-WSL2
- CPU: Intel Core i9-14900HX
- Node.js: v20.19.6
- npm: 10.8.2
- Installation method:
sudo npm install -g @anthropic-ai/claude-code
Steps to Reproduce
- Install Claude Code on WSL2 Ubuntu 24.04
- Run
claudefrom terminal - Ask Claude a question that triggers tool use (e.g., "why are you not seeing the custom commands")
- Claude begins processing, uses Bash/Read tools
- Crash occurs
Stack Trace
# Fatal error in , line 0
# unreachable code
#
#FailureMessage Object: 0x7136daffb1e0
----- Native stack trace -----
1: 0xd30b21 [claude]
2: 0x2141db1 V8_Fatal(char const*, ...) [claude]
3: 0x22180a7 [claude]
4: 0x24b082f v8::internal::compiler::MemoryLowering::ReduceStoreField(v8::internal::compiler::Node*, v8::internal::compiler::MemoryLowering::AllocationState const*) [claude]
5: 0x24b47fe v8::internal::compiler::MemoryOptimizer::Optimize() [claude]
6: 0x222cbde [claude]
7: 0x222f6cd auto v8::internal::compiler::PipelineImpl::Run<v8::internal::compiler::MemoryOptimizationPhase>() [claude]
8: 0x2244820 v8::internal::compiler::PipelineImpl::OptimizeGraph(v8::internal::compiler::Linkage*) [claude]
9: 0x2244dc0 v8::internal::compiler::PipelineCompilationJob::ExecuteJobImpl(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*) [claude]
10: 0xfa4afb v8::internal::OptimizedCompilationJob::ExecuteJob(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*) [claude]
11: 0xfd2921 v8::internal::OptimizingCompileDispatcher::CompileNext(v8::internal::TurbofanCompilationJob*, v8::internal::LocalIsolate*) [claude]
12: 0xfd2c9d v8::internal::OptimizingCompileDispatcher::CompileTask::RunInternal() [claude]
13: 0xd30cc1 [claude]
14: 0x7136dc89caa4 [/lib/x86_64-linux-gnu/libc.so.6]
15: 0x7136dc929c6c [/lib/x86_64-linux-gnu/libc.so.6]
Illegal instruction (core dumped)
Notes
- The crash appears to be in V8's Turbofan compiler during memory optimization
- The "Illegal instruction" suggests possible CPU instruction incompatibility
- Claude Code works fine on Windows with the same machine
- The crash is intermittent but reproducible within a few prompts
Workaround
Using Claude Code on Windows and accessing WSL files via \wsl$\Ubuntu\... path
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗