Runaway ruby process uses 100% cpu
I’ve noticed over the last year or so that occasionally Ruby would start using 100% and I would have to kill -9 it.
I figured that I was the only one with this problem, and for some reason assumed that it was cucumber, since it usually happened after running features.
However, it looks like it happens when I close an iterm window with an open ruby console without quitting the console first.
So, I suspect now that it was happening after running features because I would finish a feature, run the specific feature, then run all the features, then commit, then be done working and quit iterm, without remembering to close a script/console session that I had open in another iterm tab.
Problem identified.
January 18, 2009

I never quit iTerm and I have the same problem... I also almost always quit of out console sessions...
January 20, 2009 at 7:03 AMMike - Interesting, perhaps it's something else then.
January 21, 2009 at 2:27 AMYou don't have to do anything special to reproduce it, just launch an irb session and then force-quit the Terminal, or kill the ssh connection: voila', 99% CPU usage (actually, it's more something like 15% user, 40% system and 45% idle - at least on a Mac).
January 21, 2009 at 8:29 AMapparently the culprit is readline, instead. I experienced this long ago with an app (forgot which) that use readline (waiting user input)
February 14, 2009 at 11:26 AM