[Lldb-commits] [lldb] [lldb][test] fix sporadic failures with NumberAllocatedModules assert (PR #176884)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 16 08:31:39 PDT 2026
Michael137 wrote:
Thanks for taking the time to do a more in-depth analysis. I can certainly believe that this cycle would cause an instance of this issue. I did see it happen with an instance of `ThreadPlanStepOverRange` (instead of `ThreadPlanCallFunction`), so I suspect there's multiple ways we get into this "leak" situation. It sounds like the scenario you describe is a genuine module leak.
When I looked at this we had a `ProcessGDBRemote::MonitorDebugserverProcess` on a separate thread lock a `Process` `shared_ptr`, which still had an active thread-plan on it. That one seems like a race condition, since waiting for the `Process` to be torn down fixed it. I never answered the question of why there was a `ThreadPlanStepOverRange` still in the `ThreadPlanStack` though..
https://github.com/llvm/llvm-project/pull/176884
More information about the lldb-commits
mailing list