Project

General

Profile

Actions

Bug #22481

open

`break` in block passed to Method#to_proc cause [BUG] Stack consistency error

Bug #22481: `break` in block passed to Method#to_proc cause [BUG] Stack consistency error

Added by alanwu (Alan Wu) about 7 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:127265]

Description

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.

No data to display

Actions

Also available in: PDF Atom