Skip to content

[BUG] Intermittent SIGSEGV (exit 139) in InternalShouldInstrumentMethod during JIT inlining on Linux x64 (dotnet-coverage 18.12.0) #261

Open

Description

Description

dotnet-coverage 18.12.0 intermittently crashes the test host on Linux x64 with SIGSEGV (exit code 139) before the first test runs. Three independent crash dumps from CI show the same faulting instruction inside the coverage instrumentation method, called from a JIT inlining callback.

Environment

  • dotnet-coverage 18.12.0 (NuGet, linux-x64), running on .NET 8
  • Test host: .NET 11.0.0
  • OS: Ubuntu 26.04, x64 (GitHub-hosted runner)
  • Collected with dotnet-coverage collect around an integration test run

Stack (identical in all three dumps)

libCoverageInstrumentationMethod.so  InternalShouldInstrumentMethod+0xa9
libCoverageInstrumentationMethod.so  AllowInlineSite
libInstrumentationEngine.so          CallAllowInlineOnInstrumentationMethods
libInstrumentationEngine.so          JITInlining
libcoreclr.so                        (JIT inlining callback)
  • Faulting read at address 0x8, r13 = 0.
  • The faulting instruction is a bucket walk in a std::unordered_map lookup: a bucket pointer that is null is dereferenced, which points to a race or a use-after-free on that map rather than a simple missing null check.
  • Module build IDs match the binaries in the dotnet-coverage 18.12.0 linux-x64 NuGet package.

Frequency

Intermittent, in roughly one test lane, always before the first test executes. We first saw it shortly after moving to 18.12.0. No reliable local repro yet.

Additional information

Crash dumps are available on request. Upstream issue #253 looks related only superficially: it concerns a different version and signal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions