[Lldb-commits] [PATCH] D93874: [process] fix exec support on Linux
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 12 09:46:39 PST 2021
Thanks for looking into this further! The thing to figure out is who still has a reference to either the Thread * or to the ThreadPlanStack over the destruction of the thread. That shouldn't be allowed to happen.
Jim
> On Jan 11, 2021, at 10:01 PM, walter erquinigo via Phabricator <reviews at reviews.llvm.org> wrote:
>
> wallace added a comment.
>
> I've done a lightweight test and it seems that the BaseThreadPlan is being asked for the stop reason when the exec happens, but it holds a reference to the thread whose destructor has been called, which causes the crash. On Darwin, as Greg said, the BaseThreadPlan is deleted when the thread changes, so this doesn't happen.
> Later this week I'll spend more time gathering logs and I'll share them here in a nice format.
>
>
> Repository:
> rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
> https://reviews.llvm.org/D93874/new/
>
> https://reviews.llvm.org/D93874
>
More information about the lldb-commits
mailing list