stack-overflow.patch

compute full backtrace on SystemStackError - Stefan Kaes, 04/14/2013 03:36 PM

Download (630 Bytes)

View differences:

eval.c
454 454
    if (file) line = rb_sourceline();
455 455
    if (file && !NIL_P(mesg)) {
456 456
	if (mesg == sysstack_error) {
457
	    at = rb_enc_sprintf(rb_usascii_encoding(), "%s:%d", file, line);
458
	    at = rb_ary_new3(1, at);
457
	    at = rb_make_backtrace();
459 458
	    rb_iv_set(mesg, "bt", at);
460 459
	}
461 460
	else {