Actions
Bug #11750
closedSEGV with Enumerator, yield and proc.
Description
I found SEGV as follows.
% cat z.rb
def f
Enumerator.new {|y|
1000000.times {
yield
y.yield
}
}
end
def g
x = proc {}
f(&x)
end
e = g
e.each {}
% ./miniruby z.rb
(snip)
Files
Actions
Like0
Like0Like0Like0