Project

General

Profile

Backport #7402 ยป avoid-calling-methods-in-segfault-handler.patch

Anonymous, 11/19/2012 06:33 PM

View differences:

vm_dump.c
int i;
VALUE name;
name = vm->progname;
name = vm->progname; /* INV: vm->progname is always a String */
fprintf(stderr, "* Loaded script: %s\n", StringValueCStr(name));
fprintf(stderr, "\n");
fprintf(stderr, "* Loaded features:\n\n");
for (i=0; i<RARRAY_LEN(vm->loaded_features); i++) {
name = RARRAY_PTR(vm->loaded_features)[i];
if(TYPE(name) != T_STRING) {
name = rb_any_to_s(name);
}
fprintf(stderr, " %4d %s\n", i, StringValueCStr(name));
}
fprintf(stderr, "\n");
    (1-1/1)