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();