Don't create objects during GC
If we crash during GC, allocating new objects in the segv handler can cause an infinite loop. This commit is to avoid creating new objects in the crash handler
This commit is contained in:
parent
26fcec5ae5
commit
459a9f82c9
@ -1048,7 +1048,7 @@ rb_vm_bugreport(const void *ctx)
|
|||||||
fprintf(stderr, "-- Other runtime information "
|
fprintf(stderr, "-- Other runtime information "
|
||||||
"-----------------------------------------------\n\n");
|
"-----------------------------------------------\n\n");
|
||||||
}
|
}
|
||||||
if (vm) {
|
if (vm && !rb_during_gc()) {
|
||||||
int i;
|
int i;
|
||||||
VALUE name;
|
VALUE name;
|
||||||
long len;
|
long len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user