-
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
[NativeAOT] AccessViolationException when making reflection calls over DIMs #109893
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
Regression test from dotnet#109893. This was fixed in dotnet#108235 but that one only has testcases that involve `IDynamicInterfaceCastable`.
So looks like this is already fixed in .NET 10 - #108235 happens to also fix this because it touched the logic just enough. The problem was with us not marking the interface as used. I'll request a backport. I also made a pull request that adds this testcase since all tests for #108235 involved IDynamicInterfaceCastable. |
Regression test from dotnet#109893. This was fixed in dotnet#108235 but that one only has testcases that involve `IDynamicInterfaceCastable`.
Description
I encountered this regression while migrating a library of mine to .NET 9.
Reproduction Steps
Compile and run the following console app as a NAOT application
Expected behavior
Should execute without incident.
Actual behavior
Throws the following exception:
Regression?
This is a regression from .NET 8.
Known Workarounds
No response
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: