mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Previously, Ruby displayed backtraces for each thread on deadlock. However, it has not been shown since Ruby 3.0. It should display the backtrace for debugging. Co-authored-by: Jeremy Evans <code@jeremyevans.net>
This commit is contained in:
parent
b4ed6db096
commit
0cab608d3a
Notes:
git
2025-02-14 07:32:15 +00:00
Merged-By: pocke <p.ck.t22@gmail.com>
4 changed files with 40 additions and 9 deletions
2
thread.c
2
thread.c
|
@ -5588,7 +5588,7 @@ debug_deadlock_check(rb_ractor_t *r, VALUE msg)
|
|||
}
|
||||
}
|
||||
rb_str_catf(msg, "\n ");
|
||||
rb_str_concat(msg, rb_ary_join(rb_ec_backtrace_str_ary(th->ec, 0, 0), sep));
|
||||
rb_str_concat(msg, rb_ary_join(rb_ec_backtrace_str_ary(th->ec, RUBY_BACKTRACE_START, RUBY_ALL_BACKTRACE_LINES), sep));
|
||||
rb_str_catf(msg, "\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue