You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failure: JIT/Methodical/NaN/intrinsic_nonf_il_r/intrinsic_nonf_il_r.sh #66424
CoreCLR Linux arm Checked @ (Ubuntu.1804.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440
- JIT/Methodical/NaN/intrinsic_nonf_il_r/intrinsic_nonf_il_r.sh
Error message:
/root/helix/work/workitem/e/JIT/Methodical/NaN/intrinsic_nonf_il_r/intrinsic_nonf_il_r.sh: line 379: 7484 Segmentation fault (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
Return code: 1
Raw output file: /root/helix/work/workitem/uploads/Reports/JIT.Methodical/NaN/intrinsic_nonf_il_r/intrinsic_nonf_il_r.output.txt
Raw output:
BEGIN EXECUTION
/root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false intrinsic_nonf_il_r.dll ''
Gathering state for process 7484 corerun
Crashing thread 00001d3c signal 0000000b
Writing minidump with heap to file /home/helixbot/dotnetbuild/dumps/coredump.7484.dmp
Written 61554688 bytes (15028 pages) to core file
Dump successfully written
Expected: 100
Actual: 139
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
set CORE_ROOT=/root/helix/work/correlation
/root/helix/work/workitem/e/JIT/Methodical/NaN/intrinsic_nonf_il_r/intrinsic_nonf_il_r.sh
Expected: True
Actual: False
Stack trace
at JIT_Methodical._NaN_intrinsic_nonf_il_r_intrinsic_nonf_il_r_._NaN_intrinsic_nonf_il_r_intrinsic_nonf_il_r_sh()
It looks like we hit the segfault while trying to dereference the code at the entry point of System.Globalization.IcuLocaleData.GetCultureName, so seems like some kind of race or corruption.
Not sure how to proceed with investigating this from just a dump. Any hints/suggestions @janvorli?
This seems to indicate that the tiered jitting has reset the target and deleted the call counting stub that it was pointing to before. It seems very similar to what I was investigating in #66924, except that this one happened before my changes went in.
Thanks, will close this then as a duplicate of #66924.
Right. With the other issue, I have a clear understanding of the way how we ended up getting the address of the call counting stub and calling it after the stub was deleted. With this one, it needs to be investigated to that level of detail.
It seems to me the dump is somehow corrupted. The stack traces of the other threads don't make sense. I've installed the libc6-deb package, got a few more frames, but even that was weird. Even in frame 0 of thread 3, I could see that r2 was loaded a certain value few instructions before that, but it contained something completely different. Also the LR register didn't make sense, the address pointed into a middle of another function where there was no call instruction. So even attempt to manual unwinding doesn't get anything useful on the secondary threads.
This is actually true for both the dumps there (the other taken by our createdump tool).
I will remove the blocking label as this does not seem to be this test in particular causing the problem. I hope we can get some more info in future CI runs to help track this down.
Activity
jakobbotsch commentedon Mar 24, 2022
I cannot reproduce this locally, but the stack trace from the dump is the following:
clrstack looks like
It looks like we hit the segfault while trying to dereference the code at the entry point of
System.Globalization.IcuLocaleData.GetCultureName, so seems like some kind of race or corruption.Not sure how to proceed with investigating this from just a dump. Any hints/suggestions @janvorli?
janvorli commentedon Mar 24, 2022
@jakobbotsch so you can see valid data at the address 3858562245 (0xE5FCFCC5)?
jakobbotsch commentedon Mar 24, 2022
No, the segfault is when dereferencing that address (and there is no memory there in the dump).
janvorli commentedon Mar 24, 2022
Ok, I got mislead by what you've said:
Can you disass the code around 3787018685? It seems it would be a compact entry point with branch to the failing address.
3 remaining items
jakobbotsch commentedon Mar 24, 2022
Thanks, will close this then as a duplicate of #66924.
janvorli commentedon Mar 24, 2022
@jakobbotsch it is not a duplicate of that one, the other one is caused by my changes, this one is not.
jakobbotsch commentedon Mar 24, 2022
Ah, okay. So you expect there is a different underlying issue and we could see a similar issue with the new stubs even with a fix for #66924?
janvorli commentedon Mar 24, 2022
Right. With the other issue, I have a clear understanding of the way how we ended up getting the address of the call counting stub and calling it after the stub was deleted. With this one, it needs to be investigated to that level of detail.
janvorli commentedon Mar 24, 2022
It seems to me the dump is somehow corrupted. The stack traces of the other threads don't make sense. I've installed the libc6-deb package, got a few more frames, but even that was weird. Even in frame 0 of thread 3, I could see that r2 was loaded a certain value few instructions before that, but it contained something completely different. Also the LR register didn't make sense, the address pointed into a middle of another function where there was no call instruction. So even attempt to manual unwinding doesn't get anything useful on the secondary threads.
This is actually true for both the dumps there (the other taken by our createdump tool).
jakobbotsch commentedon Mar 25, 2022
I will remove the blocking label as this does not seem to be this test in particular causing the problem. I hope we can get some more info in future CI runs to help track this down.
Disable deleting call counting stubs (#67563)
Squashed commit of the following: