[BUG] Cannot Launch Claucde code with "claude" command - immediately returns trace trap claude

Status Fixed / completed
Reported on v2.1.12
Maintainer reply None cached
Activity 3 comments · opened Jan 18, 2026 · closed Jan 18, 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?

when I start claude (I tried seceral directories) via plain "claude" command, claude launches for a aplit second, and then I get "trace trap claude" error and session abruptly ends.

i get different numbers bu always same message:

claude code version:
current: 2.1.12 · latest: 2.1.12

[1] 7442 trace trap claude
[1] 4451 trace trap claude
[1] 6442 trace trap claude

my machine:

Mac mini
chip: Apple M4
macOs: 15.5 (24F74)

What Should Happen?

claude code should launch and work normally - yesterday it worked just fine and I did not chaneg computer settings since then. I just went to sleep, woke up the next day and Claude Code from terminal stopped working.

Error Messages/Logs

Steps to Reproduce

  1. open terminal
  2. run "claude"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.12

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

the same happens in default macOs terminal

View original on GitHub ↗

3 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/16977
  2. https://github.com/anthropics/claude-code/issues/18524
  3. 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

kahlus2001 · 8 months ago

rm -rf ~/.claude/projects seems to have fixed the issue

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.