[Bug] pgrep fork bomb causing session hang with repeated command execution

Resolved 💬 4 comments Opened Apr 19, 2026 by map588 Closed Apr 23, 2026

Bug Description
There is a consistent bug I have had for monthes of claude code. It consistently fork bombs my session with the command 'pgrep', I do not know the conditions which trigger this, it may have to do with sub-shells, but how hard would it be, to just check if pgrep has been run more than 20 times repeatedly, or something to that effect. This persistent bug has survived through many iterations of claude code, and I am disappointed it hasn't been addressed.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.114
  • Feedback ID: 9c409506-8023-43d3-a003-faadcd6aa9b8

Errors
Complete crash of my iTerm server, no ability to spawn new shells until I force-kill in Activity Monitor.
It exhausts my user process limit, and claude becomes a ghost process I need to force quit. A fork bomb effectively.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗