Skip to content

Assertion in WKS::gc_heap::background_sweep: Consistency check failed #38518

Closed

Description

@BruceForstall

Windows arm64 GCStress=3

      Stack Trace:
        F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.arm64.Checked\TestWrappers\CoreMangLib.system\CoreMangLib.system.XUnitWrapper.cs(2662,0): at CoreMangLib_system._reflection_emit_DynMethodJumpStubTests_DynMethodJumpStubTests_DynMethodJumpStubTests_._reflection_emit_DynMethodJumpStubTests_DynMethodJumpStubTests_DynMethodJumpStubTests_cmd()
      Output:
        
        Assert failure(PID 15592 [0x00003ce8], Thread: 14900 [0x3a34]): Consistency check failed: AV in clr at this callstack:
        ------
        CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffc`5470d1e0)
        CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffc`54718738)
        CORECLR! WKS::gc_heap::bgc_thread_function + 0x120 (0x00007ffc`5470e1b0)
        CORECLR! WKS::gc_heap::bgc_thread_stub + 0x34 (0x00007ffc`5470e424)
        CORECLR! <lambda_f319653accc5ba61116de1785b12a87e>::<lambda_invoker_cdecl> + 0xA8 (0x00007ffc`5476ff28)
        KERNEL32! BaseThreadInitThunk + 0x34 (0x00007ffc`8280cbc4)
        NTDLL! RtlUserThreadStart + 0x44 (0x00007ffc`8406b154)
        -----
        .AV on tid=0x3a34 (14900), cxr=0000006CD947F1B0, exr=0000006CD947F540
        FAILED: false
        
        CORECLR! CHECK::Trigger + 0x2D0 (0x00007ffc`5442a9e8)
        CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x278 (0x00007ffc`54452590)
        CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x64 (0x00007ffc`54452124)
        CORECLR! CLRVectoredExceptionHandler + 0x168 (0x00007ffc`54452098)
        CORECLR! CLRVectoredExceptionHandlerShim + 0x1C4 (0x00007ffc`54452864)
        NTDLL! RtlGetSaclSecurityDescriptor + 0x180 (0x00007ffc`8406ccb0)
        NTDLL! LdrControlFlowGuardEnforced + 0x794 (0x00007ffc`8402cdc4)
        NTDLL! KiUserExceptionDispatcher + 0x24 (0x00007ffc`84003424)
        CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffc`5470d1e0)
        CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffc`54718738)
            File: F:\workspace\_work\1\s\src\coreclr\src\vm\excep.cpp Line: 7494
            Image: C:\h\w\BD590A95\p\CoreRun.exe
        
        
        Return code:      1
        Raw output file:      C:\h\w\BD590A95\w\AFCC09CA\e\CoreMangLib\system\Reports\CoreMangLib.system\reflection\emit\DynMethodJumpStubTests\DynMethodJumpStubTests\DynMethodJumpStubTests.output.txt
        Raw output:
        BEGIN EXECUTION
         "C:\h\w\BD590A95\p\corerun.exe" DynMethodJumpStubTests.dll 
        Expected: 100
        Actual: -1073740286
        END EXECUTION - FAILED
        FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=C:\h\w\BD590A95\p
        > C:\h\w\BD590A95\w\AFCC09CA\e\CoreMangLib\system\reflection\emit\DynMethodJumpStubTests\DynMethodJumpStubTests\DynMethodJumpStubTests.cmd

https://dev.azure.com/dnceng/public/_build/results?buildId=707896&view=ms.vss-test-web.build-test-results-tab&runId=21930894&resultId=107704&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

Also seen in:

Loader\binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.cmd
JIT\\Performance\\CodeQuality\\Serialization\\Deserialize\\Deserialize.cmd
Loader\\classloader\\TypeGeneratorTests\\TypeGeneratorTest498\\Generated498\\Generated498.cmd
Loader\\classloader\\TypeGeneratorTests\\TypeGeneratorTest616\\Generated616\\Generated616.cmd

Activity

  1. added
    untriaged
    on Jun 28, 2020
  2. BruceForstall commented on Jun 28, 2020

    @BruceForstall
    ContributorAuthor

    Also seen in the Windows arm64 GCStress=C run at the same link, in:

    baseservices\\threading\\regressions\\beta2\\437044\\437044.cmd
    Loader\\classloader\\TypeGeneratorTests\\TypeGeneratorTest1092\\Generated1092\\Generated1092.cmd
    Loader\\classloader\\TypeGeneratorTests\\TypeGeneratorTest1154\\Generated1154\\Generated1154.cmd
    JIT\\Directed\\cmov\\Bool_Xor_Op_cs_do\\Bool_Xor_Op_cs_do.cmd
    JIT\\Methodical\\NaN\\r8NaNsub_cs_d\\r8NaNsub_cs_d.cmd
    ilasm\\System\\Runtime\\CompilerServices\\MethodImplOptionsTests\\MethodImplOptionsTests.cmd
    Loader\\classloader\\TypeGeneratorTests\\TypeGeneratorTest1078\\Generated1078\\Generated1078.cmd
    
  3. BruceForstall commented on Jun 28, 2020

    @BruceForstall
    ContributorAuthor
  4. Maoni0 commented on Jun 29, 2020

    @Maoni0
    Member

    how can we see when this started to fail?

  5. BruceForstall commented on Jun 29, 2020

    @BruceForstall
    ContributorAuthor

    I just enabled GCStress for Windows arm64 in the CI, so we don't have any history. The fact that it wasn't enabled before was a combination of lack of hardware and, more recently, an omission that wasn't noticed.

  6. removed
    untriaged
    on Jul 6, 2020
  7. added this to the 5.0.0 milestone on Jul 6, 2020
  8. v-haren commented on Jul 13, 2020

    @v-haren

    also failed in job: runtime-coreclr gcstress0x3-gcstress0xc 20200712.1

    failed tests:
    baseservices\threading\interlocked\compareexchange\compareexchangeintptr\compareexchangeintptr.cmd
    Loader\classloader\generics\Instantiation\Positive\MultipleInterface14\MultipleInterface14.cmd
    profiler\eventpipe\eventpipe\eventpipe.cmd
    Regressions\coreclr\GitHub_35000\test35000\test35000.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest951\Generated951\Generated951.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1108\Generated1108\Generated1108.cmd
    JIT\Regression\JitBlue\devdiv_911875\DevDiv_911875_r\DevDiv_911875_r.cmd

    Error message

    Assert failure(PID 15080 [0x00003ae8], Thread: 9848 [0x2678]): Consistency check failed: AV in clr at this callstack:
    ------
    CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffa69893260)
    CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffa6989e7b8)
    CORECLR! WKS::gc_heap::bgc_thread_function + 0x120 (0x00007ffa69894230)
    CORECLR! WKS::gc_heap::bgc_thread_stub + 0x34 (0x00007ffa698944a4)
    CORECLR! <lambda_49839cda945735364b1721dc350b3fd1>::<lambda_invoker_cdecl> + 0xA8 (0x00007ffa69725ad8)
    KERNEL32! BaseThreadInitThunk + 0x34 (0x00007ffa95c6cbc4)
    NTDLL! RtlUserThreadStart + 0x44 (0x00007ffa976eb154)
    -----
    .AV on tid=0x2678 (9848), cxr=00000022A627F6E0, exr=00000022A627FA70
    FAILED: false
    
    CORECLR! CHECK::Trigger + 0x2D0 (0x00007ffa69488388)
    CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x278 (0x00007ffa6960eea8)
    CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x64 (0x00007ffa6960ea3c)
    CORECLR! CLRVectoredExceptionHandler + 0x168 (0x00007ffa6960e9b0)
    CORECLR! CLRVectoredExceptionHandlerShim + 0x1C4 (0x00007ffa6960f174)
    NTDLL! RtlGetSaclSecurityDescriptor + 0x180 (0x00007ffa976eccb0)
    NTDLL! LdrControlFlowGuardEnforced + 0x794 (0x00007ffa976acdc4)
    NTDLL! KiUserExceptionDispatcher + 0x24 (0x00007ffa97683424)
    CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffa69893260)
    CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffa`6989e7b8)
        File: F:\workspace\_work\1\s\src\coreclr\src\vm\excep.cpp Line: 7493
        Image: C:\h\w\995408AE\p\CoreRun.exe
    
    
    Return code:      1
    Raw output file:      C:\h\w\995408AE\w\A5720940\e\baseservices\threading\Reports\baseservices.threading\interlocked\compareexchange\compareexchangeintptr\compareexchangeintptr.output.txt
    Raw output:
    BEGIN EXECUTION
     "C:\h\w\995408AE\p\corerun.exe" compareexchangeintptr.dll 
    Expected: 100
    Actual: -1073740286
    END EXECUTION - FAILED
    FAILED
    Test Harness Exitcode is : 1
    To run the test:
    > set CORE_ROOT=C:\h\w\995408AE\p
    > C:\h\w\995408AE\w\A5720940\e\baseservices\threading\interlocked\compareexchange\compareexchangeintptr\compareexchangeintptr.cmd
    Expected: True
    Actual:   False
    
    
    Stack trace
       at baseservices_threading._interlocked_compareexchange_compareexchangeintptr_compareexchangeintptr_._interlocked_compareexchange_compareexchangeintptr_compareexchangeintptr_cmd() in F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.arm64.Checked\TestWrappers\baseservices.threading\baseservices.threading.XUnitWrapper.cs:line 18861
    
  9. BruceForstall commented on Jul 20, 2020

    @BruceForstall
    ContributorAuthor

    Note: more cases filed from this weekend: #39617

  10. 14 remaining items

  11. echesakov commented on Jul 30, 2020

    @echesakov
    Contributor

    how easy/hard can you repro this? could I please ask you to maybe add a bit of change to help us to get some clues?

    It is a pretty reliably repro - takes 10s of iterations to get failed. Sure, I would appreciate any suggestion to get this further.

  12. echesakov commented on Aug 7, 2020

    @echesakov
    Contributor

    I believe I just saw these assertions fired on windows-x64

    set COMPlus_TieredCompilation=0
    set COMPlus_GCStress=0xC
    set COMPlus_JitStress=1
    
      Interop\COM\NativeClients\DefaultInterfaces\DefaultInterfaces.cmd [FAIL]
          
          Assert failure(PID 1652 [0x00000674], Thread: 3948 [0x0f6c]): settings.concurrent == (uint32_t)(bgc_thread_id.IsCurrentThread())
          
          CORECLR! WKS::gc_heap::gc1 + 0x768 (0x00007ffe`64e99328)
          CORECLR! WKS::gc_heap::bgc_thread_function + 0x145 (0x00007ffe`64e8e4c5)
          CORECLR! <lambda_0318d81558a9f6713089b01c7a2e8e79>::operator() + 0xA0 (0x00007ffe`64b7c058)
          KERNEL32! BaseThreadInitThunk + 0x14 (0x00007ffe`948084d4)
          NTDLL! RtlUserThreadStart + 0x21 (0x00007ffe`9567e8b1)
              File: F:\workspace\_work\1\s\src\coreclr\src\gc\gc.cpp Line: 16579
              Image: C:\h\w\B014099B\p\CoreRun.exe
          
          
          Return code:      1
          Raw output file:      C:\h\w\B014099B\w\A3D808B7\e\Interop\COM\Reports\Interop.COM\NativeClients\DefaultInterfaces\DefaultInterfaces.output.txt
          Raw output:
          BEGIN EXECUTION
          Copying 'C:\h\w\B014099B\p\CoreShim.dll'...
                  1 file(s) copied.
           "C:\h\w\B014099B\p\corerun.exe" DefaultInterfaces.dll 
          Searching for exe to launch in C:\h\w\B014099B\w\A3D808B7\e\Interop\COM\NativeClients\DefaultInterfaces...
          Launching 'C:\h\w\B014099B\w\A3D808B7\e\Interop\COM\NativeClients\DefaultInterfaces\COMClientDefaultInterfaces.exe'...
          Expected: 100
          Actual: -1073740286
          END EXECUTION - FAILED
    

    https://helix.dot.net/api/2019-06-17/jobs/45ed0b13-8b9d-4d12-b4ec-1207a37ff8a4/workitems/Interop/console

    set COMPlus_TieredCompilation=0
    set COMPlus_GCStress=0xC
    set COMPlus_HeapVerify=1
    set COMPlus_ReadyToRun=0
    set COMPlus_ZapDisable=1
    
        JIT\IL_Conformance\Old\Conformance_Base\ret_r8\ret_r8.cmd [FAIL]
          
          Assert failure(PID 5760 [0x00001680], Thread: 2432 [0x0980]): settings.concurrent
          
          CORECLR! WKS::gc_heap::background_promote + 0x3C (0x00007fff`fc29cbcc)
          CORECLR! ScanConsecutiveHandlesWithoutUserData + 0x5E (0x00007fff`fc25b61e)
          CORECLR! BlockScanBlocksWithoutUserData + 0x44 (0x00007fff`fc25af74)
          CORECLR! ProcessScanQNode + 0x44 (0x00007fff`fc25b464)
          CORECLR! ProcessScanQueue + 0x44 (0x00007fff`fc25b4cc)
          CORECLR! xxxTableScanQueuedBlocksAsync + 0xD5 (0x00007fff`fc25bda9)
          CORECLR! xxxAsyncSegmentIterator + 0x56 (0x00007fff`fc25bba6)
          CORECLR! TableScanHandles + 0xC7 (0x00007fff`fc25b9d7)
          CORECLR! xxxTableScanHandlesAsync + 0xBA (0x00007fff`fc25bc8a)
          CORECLR! HndScanHandlesForGC + 0x178 (0x00007fff`fc258dd4)
              File: F:\workspace\_work\1\s\src\coreclr\src\gc\gc.cpp Line: 19464
              Image: C:\h\w\ABA7098A\p\CoreRun.exe
          
          
          Return code:      1
          Raw output file:      C:\h\w\ABA7098A\w\9E8C08E5\e\JIT\IL_Conformance\Reports\JIT.IL_Conformance\Old\Conformance_Base\ret_r8\ret_r8.output.txt
          Raw output:
          BEGIN EXECUTION
           "C:\h\w\ABA7098A\p\corerun.exe" ret_r8.dll 
          Expected: 100
          Actual: -1073740286
          END EXECUTION - FAILED
          FAILED
    

    https://helix.dot.net/api/2019-06-17/jobs/b0d072cd-5260-4e63-b7ce-73063b1c1bba/workitems/JIT.IL_Conformance/console

    cc @Maoni0 @PeterSolMS

    Note that there are multiple tests failing in each of the test runs

  13. echesakov commented on Aug 7, 2020

    @echesakov
    Contributor

    Some of the windows-x64 failures manifests themselves as AV

        Interop\IDynamicInterfaceCastable\IDynamicInterfaceCastable\IDynamicInterfaceCastable.cmd [FAIL]
          
          Assert failure(PID 3336 [0x00000d08], Thread: 2888 [0x0b48]): Consistency check failed: AV in clr at this callstack:
          ------
          CORECLR! WKS::gc_heap::background_sweep + 0x6DE (0x00007ffe`64e8d5ba)
          CORECLR! WKS::gc_heap::gc1 + 0x25D (0x00007ffe`64e98e1d)
          CORECLR! WKS::gc_heap::bgc_thread_function + 0x145 (0x00007ffe`64e8e4c5)
          CORECLR! <lambda_0318d81558a9f6713089b01c7a2e8e79>::operator() + 0xA0 (0x00007ffe`64b7c058)
          KERNEL32! BaseThreadInitThunk + 0x14 (0x00007ffe`948084d4)
          NTDLL! RtlUserThreadStart + 0x21 (0x00007ffe`9567e8b1)
          -----
          .AV on tid=0xb48 (2888), cxr=000000661607E780, exr=000000661607EC70
          FAILED: false
          
          CORECLR! CHECK::Trigger + 0x2C9 (0x00007ffe`64f17089)
          CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x2B2 (0x00007ffe`649254be)
          CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x97 (0x00007ffe`64924f7f)
          CORECLR! CLRVectoredExceptionHandler + 0x215 (0x00007ffe`64924ec5)
          CORECLR! CLRVectoredExceptionHandlerShim + 0x1A0 (0x00007ffe`64925730)
          NTDLL! RtlInitializeCriticalSection + 0x190 (0x00007ffe`95675ef0)
          NTDLL! RtlImageNtHeaderEx + 0x17B (0x00007ffe`9564fa7b)
          NTDLL! KiUserExceptionDispatcher + 0x3A (0x00007ffe`956b964a)
          CORECLR! WKS::gc_heap::background_sweep + 0x6DE (0x00007ffe`64e8d5ba)
          CORECLR! WKS::gc_heap::gc1 + 0x25D (0x00007ffe`64e98e1d)
              File: F:\workspace\_work\1\s\src\coreclr\src\vm\excep.cpp Line: 7491
              Image: C:\h\w\B014099B\p\CoreRun.exe
          
          
          Return code:      1
          Raw output file:      C:\h\w\B014099B\w\A3D808B7\e\Interop\IDynamicInterfaceCastable\Reports\Interop.IDynamicInterfaceCastable\IDynamicInterfaceCastable\IDynamicInterfaceCastable.output.txt
          Raw output:
          BEGIN EXECUTION
           "C:\h\w\B014099B\p\corerun.exe" IDynamicInterfaceCastable.dll 
          Running ValidateBasicInterface
           -- Validate cast
           -- Validate method call
           -- Validate method call which calls methods using 'this'
           -- Validate delegate call
          Running ValidateGenericInterface
           -- Validate cast
           -- Validate method call
           -- Validate delegate call
          Running ValidateOverriddenInterface
           -- Validate cast
           -- Validate method call
           -- Validate method call which calls methods using 'this'
           -- Validate delegate call
          Running ValidateDirectlyImplemented
           -- Validate cast
           -- Validate method call
           -- Validate delegate call
          Running ValidateNotImplemented
          Running ValidateErrorHandling
           -- Validate non-interface
          Expected: 100
          Actual: -1073740286
          END EXECUTION - FAILED
          FAILED
    
  14. v-haren commented on Aug 10, 2020

    @v-haren

    failed again in job: runtime-coreclr gcstress-extra 20200809.1

    failed tests:
    Loader\binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1438\Generated1438\Generated1438.cmd
    ilasm\System\Runtime\CompilerServices\MethodImplOptionsTests\MethodImplOptionsTests.cmd

    Error message

    Assert failure(PID 1648 [0x00000670], Thread: 4692 [0x1254]): Consistency check failed: AV in clr at this callstack:
    ------
    CORECLR! WKS::gc_heap::mark_object_simple + 0x30A (0x00007ffa902d10ba)
    CORECLR! WKS::GCHeap::Promote + 0x108 (0x00007ffa902b63c8)
    CORECLR! GcEnumObject + 0x72 (0x00007ffa8ffb10a2)
    CORECLR! GcInfoDecoder::ReportSlotToGC + 0x168 (0x00007ffa9026edf8)
    CORECLR! GcInfoDecoder::ReportUntrackedSlots + 0x69 (0x00007ffa9026f0f9)
    CORECLR! GcInfoDecoder::EnumerateLiveSlots + 0xD6E (0x00007ffa9026dfae)
    CORECLR! EECodeManager::EnumGcRefs + 0x389 (0x00007ffa8fd4a499)
    CORECLR! GcStackCrawlCallBack + 0x2CC (0x00007ffa8ffb14fc)
    CORECLR! Thread::MakeStackwalkerCallback + 0x6B (0x00007ffa8fe804d7)
    CORECLR! Thread::StackWalkFramesEx + 0x164 (0x00007ffa8fe81d80)
    CORECLR! Thread::StackWalkFrames + 0x184 (0x00007ffa8fe81b7c)
    CORECLR! ScanStackRoots + 0x282 (0x00007ffa8ffb00c6)
    CORECLR! GCToEEInterface::GcScanRoots + 0x196 (0x00007ffa8ffade3a)
    CORECLR! WKS::gc_heap::mark_phase + 0x22A (0x00007ffa902d1496)
    CORECLR! WKS::gc_heap::gc1 + 0x268 (0x00007ffa902c96e8)
    CORECLR! WKS::gc_heap::garbage_collect + 0x672 (0x00007ffa902c93ce)
    CORECLR! WKS::GCHeap::GarbageCollectGeneration + 0x292 (0x00007ffa902b4c3e)
    CORECLR! WKS::GCHeap::StressHeap + 0x4CA (0x00007ffa902b73ca)
    CORECLR! Alloc + 0x2A4 (0x00007ffa8ffb4318)
    -----
    .AV on tid=0x1254 (4692), cxr=0000002D10B79C40, exr=0000002D10B7A130
    FAILED: false
    
    CORECLR! CHECK::Trigger + 0x2C9 (0x00007ffa90347949)
    CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x2B2 (0x00007ffa8fd554be)
    CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x97 (0x00007ffa8fd54f7f)
    CORECLR! CLRVectoredExceptionHandler + 0x215 (0x00007ffa8fd54ec5)
    CORECLR! CLRVectoredExceptionHandlerShim + 0x1A0 (0x00007ffa8fd55730)
    NTDLL! RtlInitializeCriticalSection + 0x190 (0x00007ffac07b5ef0)
    NTDLL! RtlImageNtHeaderEx + 0x17B (0x00007ffac078fa7b)
    NTDLL! KiUserExceptionDispatcher + 0x3A (0x00007ffac07f964a)
    CORECLR! WKS::gc_heap::mark_object_simple + 0x30A (0x00007ffa902d10ba)
    CORECLR! WKS::GCHeap::Promote + 0x108 (0x00007ffa`902b63c8)
        File: F:\workspace\_work\1\s\src\coreclr\src\vm\excep.cpp Line: 7491
        Image: C:\h\w\B8F20A4B\p\CoreRun.exe
    
    
    Return code:      1
    Raw output file:      C:\h\w\B8F20A4B\w\A54A0971\e\Loader\binding\Reports\Loader.binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.output.txt
    Raw output:
    BEGIN EXECUTION
     "C:\h\w\B8F20A4B\p\corerun.exe" BinderTracingTest.ResolutionFlow.dll 
    [12:58:03 AM] Running AssemblyLoadContextResolving_ReturnNull...
    Expected: 100
    Actual: -1073740286
    END EXECUTION - FAILED
    FAILED
    Test Harness Exitcode is : 1
    To run the test:
    > set CORE_ROOT=C:\h\w\B8F20A4B\p
    > C:\h\w\B8F20A4B\w\A54A0971\e\Loader\binding\tracing\BinderTracingTest.ResolutionFlow\BinderTracingTest.ResolutionFlow.cmd
    Expected: True
    Actual:   False
    
    
    Stack trace
       at Loader_binding._tracing_BinderTracingTest_ResolutionFlow_BinderTracingTest_ResolutionFlow_._tracing_BinderTracingTest_ResolutionFlow_BinderTracingTest_ResolutionFlow_cmd() in F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.x64.Checked\TestWrappers\Loader.binding\Loader.binding.XUnitWrapper.cs:line 916
    
  15. mangod9 commented on Aug 14, 2020

    @mangod9
    Member

    @echesakovMSFT can this particular issue now be closed, or is this tracking other similar failures as well?

  16. echesakov commented on Aug 14, 2020

    @echesakov
    Contributor

    @mangod9 As far as I know, there are more failures in GC that manifest themselves as AVs.

    We might keep this issue open to track them down, or we can close this one or open another one to specifically track the AV related issues.

  17. mangod9 commented on Aug 14, 2020

    @mangod9
    Member

    Ok, lets keep this one to track AVs in arm64.

  18. v-haren commented on Aug 17, 2020

    @v-haren

    failed again in job: runtime-coreclr gcstress-extra 20200815.2

    failed test:
    JIT\Directed\intrinsic\pow\pow3_cs_r\pow3_cs_r.cmd
    JIT\HardwareIntrinsics\X86\Avx2_Vector128\Avx2_r\Avx2_r.cmd
    JIT\Regression\JitBlue\DevDiv_359736\DevDiv_359736_r\DevDiv_359736_r.cmd
    JIT\Directed\UnrollLoop\Dev10_846218\Dev10_846218.cmd
    JIT\Regression\JitBlue\GitHub_19361\GitHub_19361\GitHub_19361.cmd
    JIT\Regression\CLR-x86-JIT\V1-M09.5-PDC\b16896\b16896\b16896.cmd
    JIT\Directed\tailcall\tailcall\tailcall.cmd
    JIT\Methodical\MDArray\basics\stringarr_cs_r\stringarr_cs_r.cmd
    JIT\Directed\forceinlining\Recursion\Recursion.cmd
    JIT\HardwareIntrinsics\Arm\AdvSimd\AdvSimd_Part1_ro\AdvSimd_Part1_ro.cmd

    Error message

    Assert failure(PID 6716 [0x00001a3c], Thread: 7200 [0x1c20]): Consistency check failed: AV in clr at this callstack:
    ------
    CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffc6aeac650)
    CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffc6aeb7bb8)
    CORECLR! WKS::gc_heap::bgc_thread_function + 0x120 (0x00007ffc6aead620)
    CORECLR! WKS::gc_heap::bgc_thread_stub + 0x34 (0x00007ffc6aead894)
    CORECLR! <lambda_ac58487074a10a670760952835c97fc2>::<lambda_invoker_cdecl> + 0xA8 (0x00007ffc6ad3af48)
    KERNEL32! BaseThreadInitThunk + 0x34 (0x00007ffc9e8ccbc4)
    NTDLL! RtlUserThreadStart + 0x44 (0x00007ffc9fc8b154)
    -----
    .AV on tid=0x1c20 (7200), cxr=000000C71DE7F040, exr=000000C71DE7F3D0
    FAILED: false
    
    CORECLR! CHECK::Trigger + 0x2D0 (0x00007ffc6aee4dc0)
    CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x278 (0x00007ffc6ac222d0)
    CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x64 (0x00007ffc6ac21e64)
    CORECLR! CLRVectoredExceptionHandler + 0x168 (0x00007ffc6ac21dd8)
    CORECLR! CLRVectoredExceptionHandlerShim + 0x1C4 (0x00007ffc6ac225a4)
    NTDLL! RtlGetSaclSecurityDescriptor + 0x180 (0x00007ffc9fc8ccb0)
    NTDLL! LdrControlFlowGuardEnforced + 0x794 (0x00007ffc9fc4cdc4)
    NTDLL! KiUserExceptionDispatcher + 0x24 (0x00007ffc9fc23434)
    CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffc6aeac650)
    CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffc`6aeb7bb8)
        File: F:\workspace\_work\1\s\src\coreclr\src\vm\excep.cpp Line: 7492
        Image: D:\h\w\C07709D1\p\CoreRun.exe
    
    
    Return code:      1
    Raw output file:      D:\h\w\C07709D1\w\B7130A41\e\JIT\Directed\Reports\JIT.Directed\intrinsic\pow\pow3_cs_r\pow3_cs_r.output.txt
    Raw output:
    BEGIN EXECUTION
     "D:\h\w\C07709D1\p\corerun.exe" pow3_cs_r.dll 
    Expected: 100
    Actual: -1073740286
    END EXECUTION - FAILED
    FAILED
    
    Test Harness Exitcode is : 1
    To run the test:
    > set CORE_ROOT=D:\h\w\C07709D1\p
    > D:\h\w\C07709D1\w\B7130A41\e\JIT\Directed\intrinsic\pow\pow3_cs_r\pow3_cs_r.cmd
    Expected: True
    Actual:   False
    
    
    Stack trace
       at JIT_Directed._intrinsic_pow_pow3_cs_r_pow3_cs_r_._intrinsic_pow_pow3_cs_r_pow3_cs_r_cmd() in F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.arm64.Checked\TestWrappers\JIT.Directed\JIT.Directed.XUnitWrapper.cs:line 25748
    
  19. v-haren commented on Aug 18, 2020

    @v-haren

    failed again in job: runtime-coreclr gcstress-extra 20200816.1

    failed tests:
    JIT\Methodical\tailcall\_il_relreference_i\_il_relreference_i.cmd
    JIT\Methodical\tailcall\_il_dbgreference_i\_il_dbgreference_i.cmd
    JIT\HardwareIntrinsics\Arm\Crc32.Arm64\Crc32.Arm64_ro\Crc32.Arm64_ro.cmd
    JIT\Methodical\eh\generics\trycatchnestedtype_r\trycatchnestedtype_r.cmd
    JIT\Methodical\eh\basics\throwinfinally_do\throwinfinally_do.cmd
    JIT\Methodical\tailcall\_il_relcompat_i2_bool\_il_relcompat_i2_bool.cmd
    JIT\Methodical\explicit\basic\_il_relrefarg_c\_il_relrefarg_c.cmd
    JIT\Regression\JitBlue\DevDiv_359737\DevDiv_359737\DevDiv_359737.cmd
    JIT\Directed\cmov\Int_Or_Op_cs_r\Int_Or_Op_cs_r.cmd
    JIT\Methodical\eh\nested\nonlocalexit\throwinfinallynestedintry_30_d\throwinfinallynestedintry_30_d.cmd
    JIT\Directed\coverage\importer\ceeillegal\ceeillegal.cmd
    CoreMangLib\system\delegate\delegate\DelegateEquals1\DelegateEquals1.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1102\Generated1102\Generated1102.cmd
    JIT\Methodical\cctor\simple\prefldinit4_il_d\prefldinit4_il_d.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest70\Generated70\Generated70.cmd
    JIT\Methodical\eh\generics\throwincatch_ro\throwincatch_ro.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest974\Generated974\Generated974.cmd
    Loader\classloader\TypeGeneratorTests\TypeGeneratorTest1344\Generated1344\Generated1344.cmd
    JIT\HardwareIntrinsics\Arm\AdvSimd\AdvSimd_Part11_r\AdvSimd_Part11_r.cmd
    Interop\PInvoke\Array\MarshalArrayAsField\AsByValArray\AsByValArrayTest\AsByValArrayTest.cmd

    Error message

    Assert failure(PID 6004 [0x00001774], Thread: 10492 [0x28fc]): Consistency check failed: AV in clr at this callstack:
    ------
    CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffefd59c780)
    CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffefd5a7ce8)
    CORECLR! WKS::gc_heap::bgc_thread_function + 0x120 (0x00007ffefd59d750)
    CORECLR! WKS::gc_heap::bgc_thread_stub + 0x34 (0x00007ffefd59d9c4)
    CORECLR! <lambda_1d65a226cca58c9d1e3471af95cca81d>::<lambda_invoker_cdecl> + 0xA8 (0x00007ffefd42aeb8)
    KERNEL32! BaseThreadInitThunk + 0x34 (0x00007fff32eecbc4)
    NTDLL! RtlUserThreadStart + 0x44 (0x00007fff3338b154)
    -----
    .AV on tid=0x28fc (10492), cxr=000000A2446FF350, exr=000000A2446FF6E0
    FAILED: false
    
    CORECLR! CHECK::Trigger + 0x2D0 (0x00007ffefd5d4ef0)
    CORECLR! CLRVectoredExceptionHandlerPhase3 + 0x278 (0x00007ffefd3122d0)
    CORECLR! CLRVectoredExceptionHandlerPhase2 + 0x64 (0x00007ffefd311e64)
    CORECLR! CLRVectoredExceptionHandler + 0x168 (0x00007ffefd311dd8)
    CORECLR! CLRVectoredExceptionHandlerShim + 0x1C4 (0x00007ffefd3125a4)
    NTDLL! RtlGetSaclSecurityDescriptor + 0x180 (0x00007fff3338ccb0)
    NTDLL! LdrControlFlowGuardEnforced + 0x794 (0x00007fff3334cdc4)
    NTDLL! KiUserExceptionDispatcher + 0x24 (0x00007fff33323434)
    CORECLR! WKS::gc_heap::background_sweep + 0x668 (0x00007ffefd59c780)
    CORECLR! WKS::gc_heap::gc1 + 0x228 (0x00007ffe`fd5a7ce8)
        File: F:\workspace\_work\1\s\src\coreclr\src\vm\excep.cpp Line: 7492
        Image: D:\h\w\9DCA08A2\p\CoreRun.exe
    
    
    Return code:      1
    Raw output file:      D:\h\w\9DCA08A2\w\C0F40AC2\e\JIT\Methodical\Reports\JIT.Methodical\tailcall\_il_relreference_i\_il_relreference_i.output.txt
    Raw output:
    BEGIN EXECUTION
     "D:\h\w\9DCA08A2\p\corerun.exe" _il_relreference_i.dll 
    2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 359 367 373 379 383 389 397 401 409 419 421 431 433 439 443 449 457 461 463 467 479 487 491 499 503 509 521 523 541 547 557 563 569 Expected: 100
    Actual: -1073740286
    END EXECUTION - FAILED
    FAILED
    Test Harness Exitcode is : 1
    To run the test:
    > set CORE_ROOT=D:\h\w\9DCA08A2\p
    > D:\h\w\9DCA08A2\w\C0F40AC2\e\JIT\Methodical\tailcall\_il_relreference_i\_il_relreference_i.cmd
    Expected: True
    Actual:   False
    
    
    Stack trace
       at JIT_Methodical._tailcall__il_relreference_i__il_relreference_i_._tailcall__il_relreference_i__il_relreference_i_cmd() in F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.arm64.Checked\TestWrappers\JIT.Methodical\JIT.Methodical.XUnitWrapper.cs:line 181627
    
  20. echesakov commented on Aug 22, 2020

    @echesakov
    Contributor

    @PeterSolMS closed this issue in #40983

    I verified this by triggering runtime-coreclr gcstress-extra #20200821.1 after his PR got merged. There were no AVs in the test runs.

    Among 9 failures in win-arm64 tests - 8 were test timeouts and 1 was actual test failure.

    I will open new issues to track these.

  21. PeterSolMS commented on Aug 24, 2020

    @PeterSolMS
    Contributor

    Thanks @echesakovMSFT !

  22. BruceForstall commented on Aug 24, 2020

    @BruceForstall
    ContributorAuthor

    Thanks @PeterSolMS for the fix!

    Our gcstress-extra pipeline is in the best shape it's ever been now. There are still a few Windows arm64 failures -- all or mostly timeouts -- so we'll have to see if there's a pattern or other problem there. But we're in much, much better shape than before!

  23. Maoni0 commented on Aug 24, 2020

    @Maoni0
    Member

    thanks @PeterSolMS! glad it was not a product issue :)

  24. ghost locked as resolved and limited conversation to collaborators on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions