Actions
Backport #2120
closedKernel.eval("local_variables", binding) in for SEGV in 1.9.1
Status:
Closed
Assignee:
Description
=begin
Howard Yeh showed that the following code causes SEGV in [ruby-core:25634] in ruby 1.9.1 (not in 1.9.2dev):
for i in 1..100
a = 1
p Kernel.eval("local_variables",binding)
break
end
The minimum bug reproduction code is
for i in [1]
p eval('local_variables', binding)
end
The attached patch solves this problem.
=end
Files
Actions
Like0
Like0Like0Like0