From: "alanwu (Alan Wu) via ruby-core" Date: 2026-10-28T19:34:10+00:00 Subject: [ruby-core:127265] [Ruby Bug#22481] `break` in block passed to Method#to_proc cause [BUG] Stack consistency error Issue #22481 has been reported by alanwu (Alan Wu). ---------------------------------------- Bug #22481: `break` in block passed to Method#to_proc cause [BUG] Stack consistency error https://bugs.ruby-lang.org/issues/22481 * Author: alanwu (Alan Wu) * Status: Open * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- ```ruby def m(a) = yield(a) def run = method(:m).to_proc.(7) { break } p run ``` Found by fuzzing. Crashes all released versions and on trunk. I haven't investigated a fix. -- 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/