mgorny marked an inline comment as done. mgorny added inline comments.
================ Comment at: lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:904-905 + NativeThreadLinux &child_thread = AddThread(child_pid, /*resume*/ true); + // Resume the newly created thread. + ResumeThread(child_thread, eStateRunning, LLDB_INVALID_SIGNAL_NUMBER); + ThreadWasCreated(child_thread); ---------------- labath wrote: > This is resuming the thread a second time. If the thread manages to stop > between the resume inside AddThread, and here, we will miss the breakpoint > (and subsequently crash). > > Deleting these two lines should fix things. Hmm, I wonder why it ended up being added here. Probably my mistake, sorry, and thanks for debugging it. I'm going to test and reland it shortly! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D98822/new/ https://reviews.llvm.org/D98822 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits