[Bug #21127] Thread deadlock does not display backtraces by pocke · Pull Request #12721 · ruby/ruby

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. https://bugs.ruby-lang.org/issues/21127