diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-07-15 18:46:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-07-15 21:39:20 +0900 |
commit | 579645d9f870fa4116dcd3200bbbb6e2c0b7f400 () | |
tree | 8b4ec513e37f47ec76f8eada1f45d91980a29650 /eval_error.c | |
parent | 79d06483a8ac98a87e5c32d3a34823382a72a0da (diff) |
Fixed infinite loop at error in printing cause [Bug #17033]
Notes: Merged: https://.com/ruby/ruby/pull/3320
-rw-r--r-- | eval_error.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -362,6 +362,7 @@ rb_ec_error_print(rb_execution_context_t * volatile ec, volatile VALUE errinfo) volatile uint8_t raised_flag = ec->raised_flag; volatile VALUE errat = Qundef; volatile VALUE emesg = Qundef; if (NIL_P(errinfo)) return; @@ -376,7 +377,10 @@ rb_ec_error_print(rb_execution_context_t * volatile ec, volatile VALUE errinfo) emesg = rb_get_message(errinfo); } - rb_error_write(errinfo, emesg, errat, Qnil, Qnil, Qfalse); EC_POP_TAG(); ec->errinfo = errinfo; |