Skip to content

Intermittent !AreCetShadowStacksEnabled() || UseSpecialUserModeApc() assertion when embedding CoreCLR #83437

Closed

Description

@alexrp

Description

Example failure: https://github.com/vezel-dev/ruptura/actions/runs/4422936308/jobs/7755195387

The TL;DR of this project is that it links a native C DLL with libnethost.lib and injects it into a process (in this case, conhost.exe). The injected DLL then loads CoreCLR and runs user code.

Reproduction Steps

It's not going to be easy to create an isolated repro for this one, I think. Here's how to run the failing sample:

git clone [email protected]:vezel-dev/ruptura.git
cd ruptura
dotnet example attach

(Note that the failure is intermittent.)

Expected behavior

The sample should run successfully.

Actual behavior

CLR: Assert failure(PID 532 [0x00000214], Thread: 5628 [0x15fc]): !AreCetShadowStacksEnabled() || UseSpecialUserModeApc()
    File: D:\a\_work\1\s\src\coreclr\vm\threads.cpp, Line: 8308 Image:
C:\Windows\SYSTEM32\conhost.exe

Regression?

I think it's a regression.

It started happening around the time I upgraded from .NET SDK version 7.0.200 to 7.0.201 and from runtime.win-x64.Microsoft.NETCore.DotNetAppHost version 7.0.2 to 7.0.3.

Known Workarounds

No response

Configuration

Windows x64

Other information

No response

Activity

  1. ghost added
    untriaged
    on Mar 15, 2023
  2. janvorli commented on Mar 23, 2023

    @janvorli
    Member

    @alexrp I was going to take a look at the repro code and found I am unable to clone your testing repo, I get

    [email protected]: Permission denied (publickey).
    fatal: Could not read from remote repository.
    
  3. alexrp commented on Mar 23, 2023

    @alexrp
    ContributorAuthor

    @janvorli hmm, it's a public repo, so might be some SSH key issue on your end? (Just guessing here.)

    Maybe try HTTPS instead, i.e. https://github.com/vezel-dev/ruptura.git?

  4. removed
    untriaged
    on Jul 24, 2023
  5. added this to the Future milestone on Jul 24, 2023
  6. alexrp commented on Dec 29, 2023

    @alexrp
    ContributorAuthor

    I haven't seen this failure in 100+ CI runs over the past 9 months and across various .NET versions (ranging from 7.0.4 to 8.0.0), so I'm inclined to think that whatever caused it has since been fixed. Will go ahead and close this for now.

  7. locked and limited conversation to collaborators on Jan 29, 2024
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions