[Bug] Trace trap crash during project scan with large file directories

Status Fixed / completed
Reported on v2.1.9
Maintainer reply None cached
Activity 4 comments · opened Jan 16, 2026 · closed Jan 16, 2026

Bug Description
Environment

  • OS: macOS (Darwin 25.2.0, Apple Silicon arm64)
  • Claude Code Version: 2.1.9
  • Installation Method: Homebrew Cask
  • BUT npx @anthropic-ai/claude-code works!

Symptoms

  • Running claude in a specific directory causes [1] 7975 trace trap claude error
  • Exit code 133 (SIGTRAP)
  • Crashes immediately with no log output, even with --debug flag

Root Cause

  • Claude Code crashes during project scanning at startup while processing large number of files

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.9
  • Feedback ID: 2caa7957-2a9f-4ae5-8790-8da7ae9ecc69

View original on GitHub ↗

4 Comments

github-actions[bot] · 9 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/16977
  2. https://github.com/anthropics/claude-code/issues/18357

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

jongwony · 9 months ago

remove ~/.claude/projects/<2GB> directory, it works

M-Hassan-Raza · 9 months ago
remove ~/.claude/projects/<2GB> directory, it works

Thank you! My CC instance was crashing as well and your solution works.

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.