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

[mono][aot] Fix compilation crashes when type load exception is generated in code #110078

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Nov 22, 2024

Following #91261, exception throwing during aot compilation for type load exceptions was replaced with throwing of exception at runtime, as part of the method code. This code insertion could hit some issues in various scenarios. Fixes #110003 and #109966

Method compilation was continuing and we ended up failing with invalid IL.
…ption throw

In the final stages of method compilation, when trying to compute clause ranges, we were asserting because the clause bblocks haven't been reached for compilation.
Copy link
Contributor

Tagging subscribers to this area: @steveisok, @vitek-karas
See info in area-owners.md if you want to be subscribed.

@vitek-karas
Copy link
Member

Sorry - no idea about the code change... but a question about the regression:
I'm curious how it is that it was in 9.0 for a year and we didn't detect it? Are we missing some tests, should we add them as part of this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 134
3 participants