[Lldb-commits] [PATCH] D86388: Fix use-after-free in ThreadPlan, and add test.
Nicholas Allegra via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 25 16:43:35 PDT 2020
comex added a comment.
The sequence I found is:
- `WillResume`
- `DoResume` sends `eBroadcastBitAsyncContinue` to `ProcessGDBRemote::AsyncThread`
- `AsyncThread` calls `process->SetPrivateState(eStateRunning);`
- …which sends `eBroadcastBitStateChanged` back to the main thread, handled by `Process::HandlePrivateEvent`
- …which ends up in this stack, when it tries to figure out whether to report the state change to the user:
- `Process::HandlePrivateEvent` ->
- `Process::ShouldBroadcastEvent` ->
- `ThreadList::ShouldReportRun` ->
- `Thread::ShouldReportRun` ->
- `ThreadPlan::ShouldReportRun` ->
- `ThreadPlan::GetPreviousPlan` ->
- `ThreadPlan::GetThread`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86388/new/
https://reviews.llvm.org/D86388
More information about the lldb-commits
mailing list