The app for independent voices

Got Claude code to debug a memory leak that was causing my system to crash within a few minutes of the leak starting by creating the conditions for the leak, running Claude with dangerously-skip-permissions, and telling Claude it had a few minutes to figure out what was going on before the system died

It actually managed to figure it out by inspecting the jobs that were causing the system crash in real time. Here’s what it found:

So here's the infinite loop:

  1. Root runs: concurrently npm:test:ui npm:test:server npm:test:plugin

  2. This executes: cd plugin && npm test

  3. Plugin is empty (no package.json)

  4. npm searches up, finds ROOT package.json

  5. Runs ROOT's test script again: concurrently npm:test:ui npm:test:server npm:test:plugin

  6. This creates ANOTHER cd plugin && npm test

  7. Infinite recursion!

Took maybe 3 runs (and by ‘run’ I mean ‘system crash’ lmao). Each time the system crashed I would reload claude with the previous transcript and go ‘system crashed, pick up where you left off’ and I’d restart the leak. Shockingly effective, end to end the whole debug took ~15 minutes.

Oct 29
at
3:09 AM
Relevant people

Log in or sign up

Join the most interesting and insightful discussions.