Skip to content

tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource crashes in CI on Linux #122404

@janvorli

Description

@janvorli

I have seen several cases of crash in the tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource on Linux in InterpThreadContext destructor in the CI. The destructor is called from Thread::OnThreadTerminate. In the case when I have looked into, it was called from the Thread::CleanupDetachedThreads. The thread object contained reasonable information (e.g. the m_OSThreadId was a value that made sense w.r.t. the other thread's values.
The state was as follows:

 m_StateNC        : 0x100 ( TSNC_ExistInThreadStore )
 m_State          : 0x31220 (TS_LegalToJoin | TS_Background | TS_WeOwn | TS_ReportDead | TS_FullyInitialized)

The InterpThreadContext struct content was garbage and the pointer itself didn't seem to be right (!maddress said it is pointing to a block marked as "Stack"). However, the pointer is null-ed in Thread constructor and only set at one place to a value obtained by new operator.

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "nativeruntimeeventsource.*Segmentation fault",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 12/21/2025 3:20:21 PM UTC

Report

Build Definition Test Pull Request
1238934 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd
1238819 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd
1238679 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd
1238434 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd #122646
1238022 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd
1237660 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd #122658
1237611 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd #122533
1237542 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd
1237407 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd #122698
1237160 dotnet/runtime tracing/runtimeeventsource/nativeruntimeeventsource/nativeruntimeeventsource.cmd #122682

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 10 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions