Skip to content

DAC/DBI/SOS Treatment of Dead and Report as Dead threads is inconsistent. #44599

Closed
@sdmaclea

Description

@sdmaclea

From a conversation with @clguiman

I started debugging the original ttd trace and at position 6307D:551 (DacDbiInterfaceImpl::EnumerateThreads) pThread is the first thread (
dx pThread->m_OSThreadId

)

and pThread->m_State ==TS_LegalToJoin | TS_Background| TS_ReportDead | TS_FullyInitialized | TS_Finalized

The thread is considered dead and shouldn't be a managed thread so I suspect dotnet-dump shouldn't show it

    Thread::GetSnapshotState() marks all threads with TS_ReportDead with TS_Dead

We may need to look through how these flags affect DAC/DBI/SOS.

I am not sure how much of a concern this is.

/cc @clguiman @mikem8361

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions