Actions
Bug #11012
closed`local_variable_get` crashes on a `Proc` from a method
Bug #11012:
`local_variable_get` crashes on a `Proc` from a method
ruby -v:
50107
Description
The following code shows unexpected random object, or segfaults sometimes.
class << (obj = Object.new)
src = 1000.times.map {|i|"v#{i} = "}.join("")
eval("def foo()\n""#{src}nil\n""end")
end
b = obj.method(:foo).to_proc.binding
p b.local_variable_get("v999")
Actions