Project

General

Profile

Actions

Bug #20572

closed

Compilation hangs with nested until

Added by kddnewton (Kevin Newton) 12 days ago. Updated 11 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:118273]

Description

until while 1
end
end

this code causes an infinite loop in the compiler.

Updated by nobu (Nobuyoshi Nakada) 12 days 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) 12 days ago

This is another example, I imagine because of the same source problem. It also works if you disable optimizations:

_ = _ rescue while 1
end
Actions #3

Updated by nobu (Nobuyoshi Nakada) 11 days ago

  • Status changed from Open to Closed

Applied in changeset git|32a555ea532fb15721ad403e6dce0a2ffc346f12.


[Bug #20572] Abandon if replacing destination is the same

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0