diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-13 07:38:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-13 07:38:23 +0000 |
commit | 8f18aa06c8b4c2d8700ccd514368384dc39c7610 (patch) | |
tree | 5368756931ec0ec09500e048402f0efed1b9ab2a /thread.c | |
parent | c3bbc818af54ecf70933c04aad10c3e0d140926f (diff) | |
download | ruby-8f18aa06c8b4c2d8700ccd514368384dc39c7610.tar.gz |
thread.c: disable VM events when stack overflow
* thread.c (ruby_thread_stack_overflow): disable VM events when
stack overflow occurred; it causes another stack overflow again
in making backtrace object, and crashes.
[ruby-core:80662] [Bug #13425]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2169,6 +2169,7 @@ NORETURN(void ruby_thread_stack_overflow(rb_thread_t *th)); void ruby_thread_stack_overflow(rb_thread_t *th) { + ruby_vm_event_flags = 0; th->raised_flag = 0; #ifdef USE_SIGALTSTACK if (!rb_threadptr_during_gc(th)) { |