Skip to content

cDAC: AccessViolation/FailFast releasing ICorDebug COM objects on Windows x64 #129558

Description

@steveisok

With DOTNET_ENABLE_CDAC=1 on Windows x64, releasing ICorDebug COM objects can crash the process with an access violation, escalating to a fail-fast (exit -1073740791 / 0xC0000409). In an observed case the debugging operation itself completed correctly (frames were retrieved and validated), but the process then crashed while finalizing/releasing the underlying COM objects:

Process terminated. Access Violation: Attempted to read or write protected memory...
   at IIUnknownCacheStrategy.Clear(IIUnknownStrategy)
   at ComObject.Finalize()
   at __Finalizer.DrainQueue() / ProcessFinalizers()
   -> RuntimeExceptionHelpers.FailFast(...)

The AV during Release on the cached IUnknown pointers suggests a lifetime/ownership problem in the cDAC-backed ICorDebug objects (a stale or already-freed native pointer being released).

Repro / signal

  • Runtime: 11.0.0-preview.6.26311.113, Windows x64, DOTNET_ENABLE_CDAC=1
  • Stackwalk scenario; the crash occurs on the finalizer thread during COM release, after the debugging operation succeeds. Does not reproduce with cDAC disabled.

Expected

Releasing/finalizing cDAC-backed ICorDebug objects does not access freed memory.

Activity

  1. dotnet-policy-service commented on Jun 18, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
    See info in area-owners.md if you want to be subscribed.

  2. MihuBot commented on Jun 18, 2026

    @MihuBot

    I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  3. max-charlamb commented on Jun 30, 2026

    @max-charlamb
    Member

    Similar to the now closed #117785, this will need to be fixed on the consumer side.

  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 11, 2026
  5. added this to the 12.0.0 milestone on Jul 11, 2026
  6. rcj1 commented on Aug 11, 2026

    @rcj1
    Contributor

    Should be fixed with #131627 and #131960

  7. locked and limited conversation to collaborators on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions