mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Crash more nicely when the VM isn't fully set up
If we crash but the VM isn't fully alive, we can get an infinite loop.
This commit is contained in:
parent
929cc615a7
commit
d74e5d5b4f
1 changed files with 32 additions and 30 deletions
|
@ -1062,6 +1062,7 @@ rb_vm_bugreport(const void *ctx)
|
|||
LIMITED_NAME_LENGTH(name), RSTRING_PTR(name));
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
if (vm->loaded_features) {
|
||||
fprintf(stderr, "* Loaded features:\n\n");
|
||||
for (i=0; i<RARRAY_LEN(vm->loaded_features); i++) {
|
||||
name = RARRAY_AREF(vm->loaded_features, i);
|
||||
|
@ -1092,6 +1093,7 @@ rb_vm_bugreport(const void *ctx)
|
|||
(void *)name);
|
||||
}
|
||||
}
|
||||
}
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue