From: "tekknolagi (Maxwell Bernstein) via ruby-core" Date: 2026-11-10T20:45:17+00:00 Subject: [ruby-core:127411] [Ruby Bug#22534] Stack consistency error Issue #22534 has been reported by tekknolagi (Maxwell Bernstein). ---------------------------------------- Bug #22534: Stack consistency error https://bugs.ruby-lang.org/issues/22534 * Author: tekknolagi (Maxwell Bernstein) * Status: Open * Target version: 4.0 * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- The following snippet causes a crash both on 3.4 and master: a = [7, begin; [(true || 2), (foo while true)]; rescue; 5; end, 6] p a def m = (begin; [(true || 2), (foo while true)]; rescue; 5; end) p m I think the peephole compiler somehow messes up the stack depth. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/