Actions
Bug #3286
closedsegfault in method_missing -> method -> method_missing recursive loop
Description
=begin
the following code segfaults in 1.9.1 (and ruby-head) but works in 1.8.x:
class Foo
def bar
unknown_variable
end
def method_missing(m, *args)
bar
end
end
Thread.new do
begin
Foo.new.meow
rescue SystemStackError
p "raised"
exit
end
end
while true
sleep 1
end
ruby -v /tmp/fail.rb
ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-linux]
"raised"
ruby -v /tmp/fail.rb
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-linux]
"raised"
ruby -v /tmp/fail.rb
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
zsh: segmentation fault ruby -v /tmp/fail.rb
ruby -v /tmp/fail.rb
ruby 1.9.3dev (2010-05-13 trunk 27786) [i686-linux]
zsh: segmentation fault ruby -v /tmp/fail.rb
=end
Actions
Like0
Like0Like0Like0