diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-06-02 21:39:11 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-06-02 21:50:40 -0700 |
commit | 007e439fe965871c73127928f7244ebb96a86e58 (patch) | |
tree | 7461bfc4a1bd2c4e0a44f86b34581883c9fdecb5 /vm_dump.c | |
parent | b957c3dbcb3cfee6908f4217cfb9ab0e78b4c618 (diff) |
Do not expect ec on rb_vm_bugreport
because a SEGV might happen on an MJIT worker. As you can clearly see
from `if (vm && ec) {`, ec is not guaranteed to exist here.
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1025,7 +1025,7 @@ rb_vm_bugreport(const void *ctx) enum {other_runtime_info = 0}; #endif const rb_vm_t *const vm = GET_VM(); - const rb_execution_context_t *ec = GET_EC(); + const rb_execution_context_t *ec = rb_current_execution_context(false); if (vm && ec) { SDR(); |