diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-07 00:39:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-07 00:39:56 +0000 |
commit | cf5ef3db5e33195ef8cbf5288456f60c6d90f75c (patch) | |
tree | 83a99df2bd3c320f18bbe12f92a552d7f68aa6d8 /test | |
parent | 6f4b9376b368bb609b2411695157361855eb780a (diff) | |
download | ruby-cf5ef3db5e33195ef8cbf5288456f60c6d90f75c.tar.gz |
vm_trace.c: isolate errinfo in trace blocks
* vm_trace.c (rb_threadptr_exec_event_hooks_orig): errinfo should not
be propagated to trace blocks so that no argument raise does not
throw internal objects. [ruby-dev:47793] [Bug #9088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_settracefunc.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 56700fc71b..c982e57cdb 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -991,4 +991,12 @@ class TestSetTraceFunc < Test::Unit::TestCase assert_equal 9, n end + + def test_isolated_raise_in_trace + bug9088 = '[ruby-dev:47793] [Bug #9088]' + assert_ruby_status([], <<-END, bug9088) + set_trace_func proc {raise rescue nil} + 1.times {break} + END + end end |