Project

General

Profile

Feature #6216 ยป stack-overflow.patch

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

View differences:

eval.c
if (file) line = rb_sourceline();
if (file && !NIL_P(mesg)) {
if (mesg == sysstack_error) {
at = rb_enc_sprintf(rb_usascii_encoding(), "%s:%d", file, line);
at = rb_ary_new3(1, at);
at = rb_make_backtrace();
rb_iv_set(mesg, "bt", at);
}
else {
    (1-1/1)