-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
AOT compiler generates invalid assembler code for Mac Catalyst in .NET 9 #97342
Comments
CC @vargaz |
Looks like loc->row overflows here? runtime/src/mono/mono/mini/aot-compiler.c Line 6797 in 971ebdb
It's defined as a uint32_t:
|
@vargaz can you please look into this? |
This appears to be a problem with either the debug info in the pdb file, or its decoding. Need more time to investigate, added a workaround in a PR. |
I think this is caused by: The additional iloffset < offset check causes us to skip a mono_metadata_decode_value () call, messing up the decoding of later entries. |
The problematic PR was reverted on master/9.0. |
Description
AOT compiler generates invalid assembler code for Mac Catalyst in .NET 9
Reproduction Steps
Test case: aot-compiler-test-case-fa0f17e.zip
Unzip and run test.sh. The script will download the AOT compiler for 9.0.0-alpha.1.24066.33 and AOT compile the file
linked/Microsoft.Maui.Controls.dll
+ (try to) compile the resulting assembler code.Expected behavior
Valid assembler code.
Actual behavior
Resulting .s file:
Microsoft.Maui.Controls.dll.s.zip
Regression?
Yes, this works in .NET 8.
Known Workarounds
None
Configuration
9.0.0-alpha.1.24066.33
Other information
This is blocking MAUI from building packages for .NET 9.
The text was updated successfully, but these errors were encountered: