[BUG] Running Bash tools like `cargo` leads to `claude` (which runs on Node 23.9) crashing
Resolved 💬 9 comments Opened Jul 8, 2025 by twardoch Closed Jan 13, 2026
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.44
- Operating System: macoS 15.5
- Terminal: Warp, the terminal inside VSCode
Bug Description
<!-- A clear and concise description of the bug -->
Running Bash tools like cargo leads to claude (which runs on Node 23.9) crashing
⏺ Now let me check if the workspace builds:
⏺ Bash(cd /Users/adam/Developer/project1 && cargo check --workspace 2>&1 | head -100)
⎿ Error: Command timed out after 1m 0.0s
✶ Parsing… (1075s · ↑ 17.8k tokens · esc to interrupt)
╭───────────────────────────────────────────────────────────────
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EBADF
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:753:9)
at file:///Users/adam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:279:7658
at Cu1 (file:///Users/adam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:279:8153)
at file:///Users/adam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:279:8386
at Array.forEach (<anonymous>)
at ChildProcess.F (file:///Users/adam/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:279:8321)
at ChildProcess.emit (node:events:507:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1101:16) {
errno: -9,
code: 'EBADF',
syscall: 'spawn'
}
Node.js v23.9.0
This happens frequently.
Steps to Reproduce
- <!-- First step -->
- <!-- Second step -->
- <!-- And so on... -->
Expected Behavior
<!-- What you expected to happen -->
Actual Behavior
<!-- What actually happened -->
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗