[Lldb-commits] [lldb] [lldb] Fix deadlock when a REPL expression hits a breakpoint (PR #227400)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 29 10:49:32 PDT 2026


================
@@ -451,6 +446,17 @@ void REPL::IOHandlerInputComplete(IOHandler &io_handler, std::string &code) {
           }
         }
 
+        // RunIOHandlerAsync takes the IOHandler stack mutex, and
+        // Debugger::PrintAsync takes that mutex before the output stream lock.
+        // Don't call RunIOHandlerAsync while holding the output stream lock.
----------------
JDevlieghere wrote:

Nit: it's the error stream lock, not the output stream.

https://github.com/llvm/llvm-project/pull/227400


More information about the lldb-commits mailing list