diff options
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -941,8 +941,9 @@ 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(); - if (vm) { + if (vm && ec) { SDR(); rb_backtrace_print_as_bugreport(); fputs("\n", stderr); |