Actions
Bug #20572
closedCompilation hangs with nested until
    Bug #20572:
    Compilation hangs with nested until
  
Description
until while 1
end
end
this code causes an infinite loop in the compiler.
        
          
          Updated by nobu (Nobuyoshi Nakada) over 1 year ago
          
          
        
        
      
      Since ruby --dump=i,-opt -e 'until while 1; end; end' finishes immediately, it is a bug of optimization.
        
          
          Updated by kddnewton (Kevin Newton) over 1 year ago
          
          
        
        
      
      This is another example, I imagine because of the same source problem. It also works if you disable optimizations:
_ = _ rescue while 1
end
        
          
          Updated by nobu (Nobuyoshi Nakada) over 1 year ago
          
          
        
        
      
      - Status changed from Open to Closed
 
Applied in changeset git|32a555ea532fb15721ad403e6dce0a2ffc346f12.
[Bug #20572] Abandon if replacing destination is the same
Actions