aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index a3aaf1497e..ea94ee1985 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -1048,7 +1048,7 @@ rb_vm_bugreport(const void *ctx)
fprintf(stderr, "-- Other runtime information "
"-----------------------------------------------\n\n");
}
- if (vm) {
+ if (vm && !rb_during_gc()) {
int i;
VALUE name;
long len;