[ruby-core:118273] [Ruby master Bug#20572] Compilation hangs with nested until

Issue #20572 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #20572: Compilation hangs with nested until https://bugs.ruby-lang.org/issues/20572 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ```ruby until while 1 end end ``` this code causes an infinite loop in the compiler. -- https://bugs.ruby-lang.org/

Issue #20572 has been updated by nobu (Nobuyoshi Nakada). Since `ruby --dump=i,-opt -e 'until while 1; end; end'` finishes immediately, it is a bug of optimization. ---------------------------------------- Bug #20572: Compilation hangs with nested until https://bugs.ruby-lang.org/issues/20572#change-108779 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ```ruby until while 1 end end ``` this code causes an infinite loop in the compiler. -- https://bugs.ruby-lang.org/

Issue #20572 has been updated by kddnewton (Kevin Newton). This is another example, I imagine because of the same source problem. It also works if you disable optimizations: ```ruby _ = _ rescue while 1 end ``` ---------------------------------------- Bug #20572: Compilation hangs with nested until https://bugs.ruby-lang.org/issues/20572#change-108794 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ```ruby until while 1 end end ``` this code causes an infinite loop in the compiler. -- https://bugs.ruby-lang.org/
participants (2)
-
kddnewton (Kevin Newton)
-
nobu (Nobuyoshi Nakada)