-
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
EnsureInitialized test crash on llvm19/iOS #105251
Comments
Tagging subscribers to this area: @lambdageek, @steveisok |
So I just had this exact same crash on an iOS device on my PR. It happened on the device attached to DNCENGMAC048 which is an iPhone XR according to dcneng. That's a bit older and has an Apple A12 Bionic CPU, so maybe for some reason we're generating some instruction that the CPU doesn't like? The queue also has iPhone SE 2nd Gen devices on it which have a newer A13 CPU so maybe that's why we're not seeing the crash all the time? We definitely have a passing run on an iPhone SE.
|
The Apple TV HD devices we have also use an older Apple A8 CPU. |
I was able to reproduce this on my old iPad Mini 4. It crashes with a SIGBUS on this instruction:
I checked and the address in x8 is not aligned on an 8 byte boundary. I reduced the code down to this: private static int counter = 0;
private static void OnButtonClick()
{
object aLock = null;
Interlocked.CompareExchange(ref aLock, new object(), null);
string s = (counter++).ToString();
} When I just touch the code slightly like moving the counter++ to its own line (i.e. counter++ followed by counter.ToString) then the crash goes away. Here's the bitcode diff between the two versions: After talking to @lambdageek he thinks it's a codegen bug:
|
@akoeplinger I can reproduce the same crash on an iphone 8 and an XS Max. |
Context: #103585 (comment)
Occasional failures in
System.Runtime.Tests
onios_arm64_release_allsubsets_mono
job.Known Issue Error Message
Fill the error message using step by step known issues guidance.
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=765139
Error message validated:
[at System.Threading.LazyInitializer:EnsureLockInitialized
]Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 8/5/2024 7:51:08 AM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: