Improve deadlock diagnostics #3424
Labels
A-concurrency
Area: affects our concurrency (multi-thread) support
A-diagnostics
errors and warnings emitted by miri
C-enhancement
Category: a PR with an enhancement or an issue tracking an accepted enhancement
E-good-first-issue
A good way to start contributing, mentoring is available
We only report a deadlock when all threads are blocked. But we only show a backtrace of the last thread that took a step, which may even be the empty backtrace if that thread is now done.
We should probably show a backtrace of all remaining (non-terminated) threads instead. And maybe we can even show what they are blocked on. That will require tracking a bit more information in the thread state -- but doing so would be good anyway as it can help sanity-check that on unblockng we are talking about the right thread.
The text was updated successfully, but these errors were encountered: