From 981f9c52c6b0d7197e098ae9a0375485cf0c9c0c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 Nov 2012 07:19:16 +0000 Subject: vm_dump.c: no methods in segv handler * vm_dump.c (rb_vm_bugreport): get rid of calling methods in sigsegv handler. based on a patch by charliesome (Charlie Somerville) [ruby-core:49573] [Bug #7402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rubyoptions.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 16656f0b24..9e8978fd05 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -508,6 +508,13 @@ class TestRubyOptions < Test::Unit::TestCase )x, nil, opts) + + bug7402 = '[ruby-core:49573]' + status = assert_in_out_err(['-e', 'class Bogus; def to_str; exit true; end; end', + '-e', '$".unshift Bogus.new', + '-e', 'Process.kill :SEGV, $$'], + "", //, /#