-
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
Class Vector3
field assignation overwrites the next field's contents when using LLVM AOT
#110820
Comments
From @rolfbjarne on Wed, 18 Dec 2024 19:00:24 GMT I can reproduce this in the iOS simulator, by building like this:
Output:
Moving to dotnet/runtime, since this looks like a codegen issue. |
As an update, I also tried to use my own simple version of |
Tagging subscribers to this area: @steveisok, @vitek-karas |
@jkurdek Jeremi who did the Vector3 intrinsics work? |
It might have been me, will look into that |
There's probably a mismatch between the handling for locals (where Vector3 is often given 16 bytes of storage for efficiency) as compared to the handling for fields (where it should always strictly be 12 bytes of storage). |
Is there a current workaround besides moving fields? Is there a current expectation of when this will be fixed? In the next .net update? This has completely killed our ios/macos development. |
From @jeromelaban on Wed, 18 Dec 2024 15:09:40 GMT
Apple platform
iOS, macOS, Mac Catalyst, tvOS
Framework version
net9.0-*
Affected platform version
9.0.101
Description
When a class contains two consecutive
Vector3
fields, setting the value for the first will modify the first inner field (X
) of the second field.Steps to Reproduce
Add the following code to an app, then run, the error message should not happen:
Repro project: 21825-iosllvmissue.zip
Did you find any workaround?
Adding a field of another type in between seems to works around the issue.
Relevant logs
No response
Copied from original issue xamarin/xamarin-macios#21825
The text was updated successfully, but these errors were encountered: