[ruby-core:127265] [Ruby Bug#22481] `break` in block passed to Method#to_proc cause [BUG] Stack consistency error
28 Oct
2026
28 Oct
'26
7:34 p.m.
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/
25
Age (days ago)
25
Last active (days ago)
0 comments
1 participants
participants (1)
-
alanwu (Alan Wu)