Project

General

Profile

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

charliesome (Charlie Somerville), 11/19/2012 06:33 PM

View differences:

vm_dump.c
677 677
	int i;
678 678
	VALUE name;
679 679

  
680
	name = vm->progname;
680
	name = vm->progname; /* INV: vm->progname is always a String */
681 681
	fprintf(stderr, "* Loaded script: %s\n", StringValueCStr(name));
682 682
	fprintf(stderr, "\n");
683 683
	fprintf(stderr, "* Loaded features:\n\n");
684 684
	for (i=0; i<RARRAY_LEN(vm->loaded_features); i++) {
685 685
	    name = RARRAY_PTR(vm->loaded_features)[i];
686
	    if(TYPE(name) != T_STRING) {
687
		name = rb_any_to_s(name);
688
	    }
686 689
	    fprintf(stderr, " %4d %s\n", i, StringValueCStr(name));
687 690
	}
688 691
	fprintf(stderr, "\n");