Issue #4925 has been reported by Jonathan Dance. ---------------------------------------- Bug #4925: Infinite recursion allowed in rescue clause http://redmine.ruby-lang.org/issues/4925 Author: Jonathan Dance Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3dev (2011-06-24 trunk 32222) [i686-linux] The issue pertains to the following example: def a b rescue NameError a end a The type of exception raised and rescued is not relevant; the bug occurs with any exception type. Expected behavior: A SystemStackError should be raised. Current behavior: The Ruby process will consume cpu and memory until killed. This is a regression in 1.9.x; the bug does not occur in 1.8-head. The bug is reproducible on all versions of 1.9 I have tested: ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux] ruby 1.9.2p274 (2011-06-06 revision 31932) [i686-linux] ruby 1.9.3dev (2011-06-24 trunk 32222) [i686-linux] -- http://redmine.ruby-lang.org