Skip to content

SBProcess::Kill can crash the debugger #98038

Closed
@labath

Description

@labath

SBProcess::Kill calls ThreadPlanStack::DiscardAllPlans. If someone calls this while the process is in getting ready to stop (for example, because it has just completed a thread plan), then the internal state thread will hit the assert in ThreadPlanStack::PopPlan because there is nothing to pop.

This happened in TestGlobalModuleCache.test_OneTargetTwoDebuggers due to a bad test, but it can happen in real uses as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions