Skip to content
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

Fix NativeAOT unhandled exception stack trace #91415

Merged

Conversation

janvorli
Copy link
Member

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

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
@janvorli janvorli added this to the 9.0.0 milestone Aug 31, 2023
@janvorli janvorli requested a review from jkotas August 31, 2023 19:26
@janvorli janvorli self-assigned this Aug 31, 2023
@ghost
Copy link

ghost commented Aug 31, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

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

Author: janvorli
Assignees: janvorli
Labels:

area-NativeAOT-coreclr

Milestone: 9.0.0

@agocke
Copy link
Member

agocke commented Aug 31, 2023

Should we add a smoke test for this?

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jkotas
Copy link
Member

jkotas commented Aug 31, 2023

Should we add a smoke test for this?

I think a regular test - that runs on all runtime flavors - would be enough.

@janvorli
Copy link
Member Author

Ok, let me add a test here.

@jkotas
Copy link
Member

jkotas commented Sep 4, 2023

The test needs fixes for Mono (Mono uses different exit code and different formatting of the output).

@janvorli janvorli force-pushed the fix-nativeaot-unhandled-exception-stack-trace branch from df6b500 to d9defde Compare September 4, 2023 23:34
@jkotas
Copy link
Member

jkotas commented Sep 5, 2023

Thank you!

@jkotas jkotas merged commit 6de0e22 into dotnet:main Sep 5, 2023
116 of 118 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[native aot] Unhandled exceptions are not printed to console
3 participants