diff --git a/eval.c b/eval.c index 7f00227..e3be320 100644 --- a/eval.c +++ b/eval.c @@ -482,8 +482,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg) 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 {