[Lldb-commits] [lldb] [lldb] Fix race condition in Process::WaitForProcessToStop() (PR #144919)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 23 12:07:21 PDT 2025


jimingham wrote:

Note, I have a patch I'm almost done with (finishing the test case now) that handles a similar version of this problem.  "Attach" and "Launch" don't spin up the private state thread until they know the attach/launch succeeded, which means that the first event that comes in is NOT handled on the private state thread, so if it has any callbacks, they will see the process state as still running.  In that case, I'm going to fix it by saying that if you are running code before the private state thread has been spun up, then you see the private state.

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


More information about the lldb-commits mailing list