-
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
[native aot] Unhandled exceptions are not printed to console #91298
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsCompile and run with nativeaot on current main:
Expected resultUnhandled exception message is printed to console. Actual resultNo message printed to console
|
The problem is really caused by the #88034, specifically by moving the runtime/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs Lines 711 to 712 in fecf3ee
from after to before the runtime/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs Lines 716 to 717 in fecf3ee
It results in call to the I can make this part of the change specific to coreclr, that fixes the problem. However, I would like to check what was the reason for moving it, it seems that for coreclr the only place where it matters is the arm64 code path here: runtime/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs Lines 818 to 820 in fecf3ee
|
The recent change to add a new exception handling mechanism to coreclr has broken stack traces on unhandled exceptions in nativeaot. This change fixes it by reverting the part of the change that caused the problem and that turned out to not to be needed for the new exception handling either. Close dotnet#91298
* Fix NativeAOT unhandled exception stack trace The recent change to add a new exception handling mechanism to coreclr has broken stack traces on unhandled exceptions in nativeaot. This change fixes it by reverting the part of the change that caused the problem and that turned out to not to be needed for the new exception handling either. Close #91298 * Add unhandled exception test * Reflect PR feedback * Fix Mono console log parsing
Compile and run with nativeaot on current main:
Expected result
Unhandled exception message is printed to console.
Actual result
No message printed to console
The text was updated successfully, but these errors were encountered: