-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apps with CET support enabled do not launch #110920
Comments
I've stuck with the same issue on Windows 10 Pro 22H2 x64 build 19045.2006. |
Do you run any 3rd party antivirus software on your machine by any chance? Could you please share the crash dump for a simple hello world app from your machine? https://learn.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps has instructions for configuring your machine to collect crash dumps (use The crash dump will contain information about your environment. If you do not want to share it publicly, you can open an issue at https://developercommunity.visualstudio.com/, include it as a private attachment and share a link to the issue here. |
No, I do not have any AV at all |
The dump shows that you are running Windows build 19041. The support for this build ended in 2021 according to https://learn.microsoft.com/en-us/windows/release-health/release-information . Some of the old Windows builds that are out of support for years had issues with CET. Could you please update to actively supported Windows version? We support .NET runtime on actively supported OSes only.
|
Are you sure?
Running |
Sorry, I have not realized that ntdll.dll version is not the Windows build version these days. @MichalPetryka Does this issue reproduce on your machine? |
Do you mean if all .NET 9 apps crash there? Cause the answer is no, they work fine with a CPU that supports shadow stacks (and I can retrieve them from dumps successfully). |
It means that ntdll.dll version @PiMoNFeeD Is your Windows OS fully patched? |
Just after I created this issue I updated it (even though I absolutely hate updating Windows), got a bunch of adware as usual and a bunch of everyday bugs shipped with it, and it worked for exactly one day, but then I got back to the same issue after a reboot or two. If there is a newer And in fact, I just ran Windows Updates again and there was only one update available ( |
Description
I've recently updated a .NET app I had to a newer version and found out that it doesn't launch. Fast forward 2 days, I tracked down the issue to the fact that the app was upgraded from .NET 8.0 to 9.0, and testing in multiple configurations on my local machine revealed that any .NET 9.0 app simply doesn't work on my machine, unless I explicitly add
<CETCompat>false</CETCompat>
to the.csproj
file.Debugger is entirely useless as it only shows this:
If I create a console application instead, I also get this right above the aforementioned crash:
That led me to #108589, where someone else had the same assert and updating their Windows helped, but they updated to the exact same build I am running from 2023, so I hardly believe this to be an issue.
Reproduction Steps
...
Expected behavior
...
Actual behavior
...
Regression?
There was no crash until CET support was forced on by default
Known Workarounds
Disabling CET support on a per-app basis
Configuration
.NET 9.0.0
Windows 10 Pro 22H2 x64 build 19045.2965, Windows Feature Experience Pack 1000.19041.1000.0
Other information
No response
The text was updated successfully, but these errors were encountered: