dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.42k stars 4.76k forks source link

dotnet run error Assert failure(PID 28188 [0x00006e1c], Thread: 26664 [0x6828]) in .net 9 #110000

Open mammadkoma opened 2 days ago

mammadkoma commented 2 days ago

Description

I create a web api .net 9 project, it builds but after running dotnet run command it shows error. I don't have any problem in .net 8 on Windows 10. The commands in .net 9 : PS D:\TestProjects\WebApi> dotnet build Restore complete (0.2s) WebApi succeeded (2.4s) → bin\Debug\net9.0\WebApi.dll

Build succeeded in 3.0s PS D:\TestProjects\WebApi> dotnet run Using launch settings from D:\TestProjects\WebApi\Properties\launchSettings.json... Building... CLR: Assert failure(PID 28188 [0x00006e1c], Thread: 26664 [0x6828]): !AreShadowStacksEnabled() || UseSpecialUserModeApc() File: D:\a_work\1\s\src\coreclr\vm\threads.cpp:7938 Image: D:\TestProjects\WebApi\bin\Debug\net9.0\WebApi.exe PS D:\TestProjects\WebApi>

Reproduction Steps

create a web api in .net 9

Expected behavior

running the project

Actual behavior

getting error

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

dotnet-policy-service[bot] commented 1 day ago

Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.

mangod9 commented 1 day ago

@mammadkoma this looks related to CET. Are you able to reproduce the failure on different machines? Can you try to disable CET and check if the problem persists: https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support