Skip to content

Test failure: JIT/Methodical/NaN/intrinsic_nonf_il_r/intrinsic_nonf_il_r.sh #66424

Closed

Description

@VincentBu

Run: runtime-coreclr outerloop 20220309.3

Failed test:

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()

Activity

  1. added
    os-linux
    blocking-outerloop
    on Mar 10, 2022
  2. ghost added
    area-CodeGen-coreclr
    on Mar 10, 2022
  3. ghost added
    untriaged
    on Mar 10, 2022
  4. removed
    untriaged
    on Mar 10, 2022
  5. added this to the 7.0.0 milestone on Mar 10, 2022
  6. jakobbotsch commented on Mar 24, 2022

    @jakobbotsch
    Member

    I cannot reproduce this locally, but the stack trace from the dump is the following:

    * thread #1, name = 'corerun', stop reason = signal SIGSEGV
      * frame #0: 0xe8021f40 libcoreclr.so`DoesSlotCallPrestub(unsigned int) [inlined] isJump(pCode=3858562245) at cgencpu.h:322:12
        frame #1: 0xe8021f3c libcoreclr.so`DoesSlotCallPrestub(pCode=3787018685) at stubs.cpp:1227
        frame #2: 0xe7e8103a libcoreclr.so`::ExternalMethodFixupWorker(pTransitionBlock=<unavailable>, pIndirection=3770223672, sectionIndex=<unavailable>, pModule=<unavailable>) at prestub.cpp:2616:18
        frame #3: 0xe8098e9c libcoreclr.so`DelayLoad_MethodCall_FakeProlog at asmhelpers.S:895
        frame #4: 0xe048dc02
        frame #5: 0xe048d828
        frame #6: 0xe04779be
        frame #7: 0xe0475a16

    clrstack looks like

    FF9BEADC e85b2f04 [ExternalMethodFrame: ff9beadc] System.Globalization.IcuLocaleData.GetCultureName(Int32)
    FF9BEBB0 E048DC02 System.Globalization.IcuLocaleData.SearchCultureName(System.String)
    FF9BEBF8 E048D828 System.Globalization.IcuLocaleData.GetLocaleDataNumericPart(System.String, System.Globalization.IcuLocaleDataParts)
    FF9BEC08 E04779BE System.Globalization.CultureData.IcuLocaleNameToLCID(System.String)
    FF9BEC18 E0475A16 System.Globalization.CultureData.get_LCID()
    FF9BEC28 E0476D8C System.Globalization.CultureData.InitIcuCultureDataCore()
    FF9BEC80 E04738A2 System.Globalization.CultureData.CreateCultureData(System.String, Boolean)
    FF9BECA0 E0473418 System.Globalization.CultureData.GetCultureData(System.String, Boolean)
    FF9BECE0 E04783A8 System.Globalization.CultureInfo..ctor(System.String, Boolean)
    FF9BED00 E04788C4 System.Globalization.CultureInfo.GetCultureByName(System.String)
    FF9BED20 E047B13E System.Globalization.CultureInfo.GetUserDefaultCulture()
    FF9BED38 E047827A System.Globalization.CultureInfo.InitializeUserDefaultCulture()
    FF9BED50 E0478C1A System.Globalization.CultureInfo.get_CurrentCulture()
    FF9BED60 E0498AE6 System.Globalization.NumberFormatInfo.get_CurrentInfo()
    FF9BED70 E03DB7DE System.Double.ToString()

    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?

  7. added and removed
    area-CodeGen-coreclr
    on Mar 24, 2022
  8. janvorli commented on Mar 24, 2022

    @janvorli
    Member

    @jakobbotsch so you can see valid data at the address 3858562245 (0xE5FCFCC5)?

  9. jakobbotsch commented on Mar 24, 2022

    @jakobbotsch
    Member

    @jakobbotsch so you can see valid data at the address 3858562245 (0xE5FCFCC5)?

    No, the segfault is when dereferencing that address (and there is no memory there in the dump).

  10. janvorli commented on Mar 24, 2022

    @janvorli
    Member

    Ok, I got mislead by what you've said:

    while trying to dereference the code at the entry point of System.Globalization.IcuLocaleData.GetCultureName

    Can you disass the code around 3787018685? It seems it would be a compact entry point with branch to the failing address.

  11. 3 remaining items

  12. jakobbotsch commented on Mar 24, 2022

    @jakobbotsch
    Member

    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.

  13. janvorli commented on Mar 24, 2022

    @janvorli
    Member

    @jakobbotsch it is not a duplicate of that one, the other one is caused by my changes, this one is not.

  14. jakobbotsch commented on Mar 24, 2022

    @jakobbotsch
    Member

    @jakobbotsch it is not a duplicate of that one, the other one is caused by my changes, this one is not.

    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?

  15. janvorli commented on Mar 24, 2022

    @janvorli
    Member

    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.

  16. janvorli commented on Mar 24, 2022

    @janvorli
    Member

    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).

  17. jakobbotsch commented on Mar 25, 2022

    @jakobbotsch
    Member

    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.

  18. removed
    blocking-outerloop
    on Mar 25, 2022
  19. ghost added
    in-pr
    on Apr 4, 2022
  20. ghost removed
    in-pr
    on Apr 5, 2022
  21. added a commit that references this issue on Apr 11, 2022
  22. ghost locked as resolved and limited conversation to collaborators on May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-arm32area-VM-coreclros-linux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions