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