[Lldb-commits] [lldb] [lldb] Fix deadlock when scripted frame providers load on private state thread (PR #191913)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 14 17:07:30 PDT 2026
================
@@ -1523,9 +1539,22 @@ StackFrameListSP Thread::GetStackFrameList() {
if (m_curr_frames_sp)
return m_curr_frames_sp;
+ // Case 2: current thread is a private state thread -- no provider loading.
+ // We use IsCurrentThreadPrivateState() (a thread_local flag set by
+ // RunPrivateStateThread) rather than CurrentThreadIsPrivateStateThread()
+ // because RunThreadPlan reassigns m_current_private_state_thread_sp to
+ // an override thread. The original private state thread -- which continues
+ // processing events inside RunThreadPlan -- would no longer be recognized
+ // by CurrentThreadIsPrivateStateThread().
----------------
medismailben wrote:
I updated the comment to clarify.
https://github.com/llvm/llvm-project/pull/191913
More information about the lldb-commits
mailing list