From 007e439fe965871c73127928f7244ebb96a86e58 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 2 Jun 2021 21:39:11 -0700 Subject: 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. --- vm_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_dump.c') diff --git a/vm_dump.c b/vm_dump.c index 26a2bf3ba4..a3aaf1497e 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -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(); -- cgit v1.2.3