我想对我的 rubinius 应用程序进行线程转储,以帮助调查明显的死锁问题。我的应用程序使用的是 rbx-3.21,如果可能的话,我不希望更改它。
我试过像这里描述的那样做一个纯 ruby 解决方案,但是线程回溯不能正常工作 - 它们看起来都与执行堆栈转储的线程相同。结果如下所示:
Thread-1uvk
common/service.rb:192:in `dump_threads'
common/service.rb:190:in `dump_threads'
common/service.rb:90:in `prepare_status'
Thread-1uvs
common/service.rb:192:in `dump_threads'
common/service.rb:190:in `dump_threads'
common/service.rb:90:in `prepare_status'
....etc