-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
.NET 9 published app fails to start (while in coreclr.dll) #112253
Comments
@elinor-fung can you take a look? |
@Red-K0 would you be able to provide a dump of the crash? Also, what version of Windows are you running on? Can you check that your OS is updated the latest patches? Some Windows versions had issues with CET (enabled by default in .NET 9) that were patched in servicing updates - see #108589, #110920
The config snippet shows |
Mistake on my end, I meant self-contained not single file. It only crashes when framework dependent. I'm running Windows 10 build |
@elinor-fung (forgot to tag in reply) |
@Red-K0 full dump, please. Could you also share the output of |
And the full dump can be found here. I can also provide a PDB / source code if that would help. |
Thanks, @Red-K0. The runtime is raising a fail fast trying to open an R2R image runtime/src/coreclr/vm/nativeimage.cpp Line 222 in 5f652c2
The issue is that the It seems like there's something going wrong during SDK publishing of the app. Like it is using some stale Could you:
|
Currently can't provide a binlog (I should be able to provide one soon), but composite R2R is not enabled, and it does reproduce even after cleans. No flags are being passed to the compiler outside of what VS normally passes in publish. |
I should clarify, stale publishing can be ruled out, when this bug occurred the project had never been published beforehand. |
After a rebuild to attempt to extract a binlog, it seems to work now with no config changes. |
Running a .NET WinForms application published using the below settings causes the application to seemingly fail to start.
Running under Visual Studio's debugger, the following message is reported:
The process then immediately exits, leaving an
APPCRASH
event in Event Viewer. This does not happen when the application is published as single-file or is run in standard release/debug. While the app uses WinForms, given it never gets to the application code before it crashes, submitting here instead.The text was updated successfully, but these errors were encountered: