[Lldb-commits] [lldb] [lldb-dap] Ensure we acquire the SB API lock while handling requests. (PR #137026)
via lldb-commits
lldb-commits at lists.llvm.org
Tue May 6 18:07:06 PDT 2025
jeffreytan81 wrote:
> What is the other lock involved in the deadlock, other than the API mutex?
It is the same lock (`target.GetAPIMutex()`). If you looked at the shared callstacks above, main thread is holding the API mutex in `BaseRequestHandler`, at the same time, event thread above tries to call `SBProcess::GetExitStatus()` which also tries to acquire the same API mutex internally. This caused deadlock.
https://github.com/llvm/llvm-project/pull/137026
More information about the lldb-commits
mailing list