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
Updated by nobu (Nobuyoshi Nakada) about 15 years ago
- Status changed from Open to Assigned
- Assignee set to yugui (Yuki Sonoda)
=begin
=end
Updated by headius (Charles Nutter) about 15 years ago
- File ruby-2120.patch ruby-2120.patch added
=begin
Test for this behavior.
=end
Updated by nobu (Nobuyoshi Nakada) about 15 years ago
- Status changed from Assigned to Closed
=begin
Dup of #1995. Already fixed.
=end
Actions
Like0
Like0Like0Like0