Issue #2729 has been updated by Kazuki Tsujimoto.

File rewrite-dfp-in-errinfo.txt added

A patch fixing the problem is attached, but it might be only a workaroud.
----------------------------------------
Bug #2729: `unexpected break' occurs when a proc is called in ensure
http://redmine.ruby-lang.org/issues/2729

Author: Nobuyoshi Nakada
Status: Assigned
Priority: Normal
Assignee: Koichi Sasada
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.2dev (2010-02-10 trunk 26629) [x86_64-darwin9.0]


=begin
 Reproducing code:
 
   class Bug
     include Enumerable
     def each
       begin
         yield :foo
       ensure
         proc {}.call
       end
     end
   end
   e = Bug.new
   p e.detect{true}   # => :foo
   p e.any?{true}     # => true
   p e.all?{false}    # => false
   p e.include?(:foo) # => true
 
 All work expectedly if no Proc#call, but all occurs `unexpected break' with it.
=end



-- 
http://redmine.ruby-lang.org