aboutsummaryrefslogtreecommitdiffstats
path: root/vm_trace.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-07 00:39:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-07 00:39:56 +0000
commitcf5ef3db5e33195ef8cbf5288456f60c6d90f75c (patch)
tree83a99df2bd3c320f18bbe12f92a552d7f68aa6d8 /vm_trace.c
parent6f4b9376b368bb609b2411695157361855eb780a (diff)
downloadruby-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 'vm_trace.c')
-rw-r--r--vm_trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_trace.c b/vm_trace.c
index ce078ca162..a96e733741 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -294,6 +294,7 @@ rb_threadptr_exec_event_hooks_orig(rb_trace_arg_t *trace_arg, int pop_p)
const int outer_state = th->state;
int state = 0;
th->state = 0;
+ th->errinfo = Qnil;
th->vm->trace_running++;
th->trace_arg = trace_arg;