runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[6.0] GC test failures: Handle collector count overflows or underflows

Open buyaa-n opened this issue 2 years ago • 8 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=151010 Build error leg or test failing: GC/API/GCHandleCollector/Usage/Usage.sh Pull request: https://github.com/dotnet/runtime/pull/81291

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "System.InvalidOperationException: Handle collector count overflows or underflows.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Failed tests:

  1. GC_API.GCHandleCollector_Usage_Usage._GCHandleCollector_Usage_Usage_sh()
  2. GC_Scenarios.DoublinkList_doublinkstay_doublinkstay._DoublinkList_doublinkstay_doublinkstay_sh()
  3. GC_Scenarios.DoublinkList_dlstack_dlstack._DoublinkList_dlstack_dlstack_sh()
GC/API/GCHandleCollector/Usage/Usage.sh [FAIL]
      
      Unhandled Exception:
      System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
      Case 1 Passed!
      100, 100
      Case 2 Passed!
      Expected: 100
      Actual: 255
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_API._GCHandleCollector_Usage_Usage_._GCHandleCollector_Usage_Usage_sh()
      Output:
        
        Unhandled Exception:
        System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
        Case 1 Passed!
        100, 100
        Case 2 Passed!
        Expected: 100
        Actual: 255
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
  Finished:    GC.API.XUnitWrapper
  Discovering: GC.LargeMemory.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  GC.LargeMemory.XUnitWrapper (found 3 test cases)
  Starting:    GC.LargeMemory.XUnitWrapper (parallel test collections = on, max threads = 2)
  Finished:    GC.LargeMemory.XUnitWrapper
  Discovering: GC.Scenarios.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  GC.Scenarios.XUnitWrapper (found 31 test cases)
  Starting:    GC.Scenarios.XUnitWrapper (parallel test collections = on, max threads = 2)
    GC/Scenarios/DoublinkList/doublinkstay/doublinkstay.sh [FAIL]
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/doublinkstay/doublinkstay.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false doublinkstay.dll ''
      Test should return with ExitCode 100 ...
      19996 DLinkNodes finalized
      Test Failed
      Expected: 100
      Actual: 1
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/doublinkstay/doublinkstay.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_Scenarios._DoublinkList_doublinkstay_doublinkstay_._DoublinkList_doublinkstay_doublinkstay_sh()
      Output:
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/doublinkstay/doublinkstay.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false doublinkstay.dll ''
        Test should return with ExitCode 100 ...
        19996 DLinkNodes finalized
        Test Failed
        Expected: 100
        Actual: 1
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/doublinkstay/doublinkstay.sh
    GC/Scenarios/DoublinkList/dlstack/dlstack.sh [FAIL]
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/dlstack/dlstack.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false dlstack.dll ''
      Test should return with ExitCode 100 ...
       Performing Collect/Wait/Collect cycle again
       Finalized number stable at 9995
      9995 DLinkNodes finalized
      Test Failed
      Expected: 100
      Actual: 1
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/dlstack/dlstack.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_Scenarios._DoublinkList_dlstack_dlstack_._DoublinkList_dlstack_dlstack_sh()
      Output:
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/dlstack/dlstack.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false dlstack.dll ''
        Test should return with ExitCode 100 ...
         Performing Collect/Wait/Collect cycle again
         Finalized number stable at 9995
        9995 DLinkNodes finalized
        Test Failed
        Expected: 100
        Actual: 1
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/dlstack/dlstack.sh

Report

Build Definition Test Pull Request
534048 dotnet/runtime PayloadGroup0.WorkItemExecution dotnet/runtime#97072
529642 dotnet/runtime PayloadGroup0.WorkItemExecution
525776 dotnet/runtime PayloadGroup0.WorkItemExecution
524671 dotnet/runtime PayloadGroup0.WorkItemExecution
524665 dotnet/runtime PayloadGroup0.WorkItemExecution
522366 dotnet/runtime PayloadGroup0.WorkItemExecution
521012 dotnet/runtime PayloadGroup0.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 7

buyaa-n avatar Jan 30 '23 22:01 buyaa-n

Tagging subscribers to this area: @dotnet/gc See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=151010 Build error leg or test failing: GC/API/GCHandleCollector/Usage/Usage.sh Pull request: https://github.com/dotnet/runtime/pull/81291

Error Message

Fill the error message using known issues guidance.

Failed tests:

  1. GC_API.GCHandleCollector_Usage_Usage._GCHandleCollector_Usage_Usage_sh()
  2. GC_Scenarios.DoublinkList_doublinkstay_doublinkstay._DoublinkList_doublinkstay_doublinkstay_sh()
  3. GC_Scenarios.DoublinkList_dlstack_dlstack._DoublinkList_dlstack_dlstack_sh()
GC/API/GCHandleCollector/Usage/Usage.sh [FAIL]
      
      Unhandled Exception:
      System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
      Case 1 Passed!
      100, 100
      Case 2 Passed!
      Expected: 100
      Actual: 255
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_API._GCHandleCollector_Usage_Usage_._GCHandleCollector_Usage_Usage_sh()
      Output:
        
        Unhandled Exception:
        System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
        Case 1 Passed!
        100, 100
        Case 2 Passed!
        Expected: 100
        Actual: 255
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
  Finished:    GC.API.XUnitWrapper
  Discovering: GC.LargeMemory.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  GC.LargeMemory.XUnitWrapper (found 3 test cases)
  Starting:    GC.LargeMemory.XUnitWrapper (parallel test collections = on, max threads = 2)
  Finished:    GC.LargeMemory.XUnitWrapper
  Discovering: GC.Scenarios.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  GC.Scenarios.XUnitWrapper (found 31 test cases)
  Starting:    GC.Scenarios.XUnitWrapper (parallel test collections = on, max threads = 2)
    GC/Scenarios/DoublinkList/doublinkstay/doublinkstay.sh [FAIL]
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/doublinkstay/doublinkstay.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false doublinkstay.dll ''
      Test should return with ExitCode 100 ...
      19996 DLinkNodes finalized
      Test Failed
      Expected: 100
      Actual: 1
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/doublinkstay/doublinkstay.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_Scenarios._DoublinkList_doublinkstay_doublinkstay_._DoublinkList_doublinkstay_doublinkstay_sh()
      Output:
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/doublinkstay/doublinkstay.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false doublinkstay.dll ''
        Test should return with ExitCode 100 ...
        19996 DLinkNodes finalized
        Test Failed
        Expected: 100
        Actual: 1
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/doublinkstay/doublinkstay.sh
    GC/Scenarios/DoublinkList/dlstack/dlstack.sh [FAIL]
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/dlstack/dlstack.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false dlstack.dll ''
      Test should return with ExitCode 100 ...
       Performing Collect/Wait/Collect cycle again
       Finalized number stable at 9995
      9995 DLinkNodes finalized
      Test Failed
      Expected: 100
      Actual: 1
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/dlstack/dlstack.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_Scenarios._DoublinkList_dlstack_dlstack_._DoublinkList_dlstack_dlstack_sh()
      Output:
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.Scenarios/DoublinkList/dlstack/dlstack.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false dlstack.dll ''
        Test should return with ExitCode 100 ...
         Performing Collect/Wait/Collect cycle again
         Finalized number stable at 9995
        9995 DLinkNodes finalized
        Test Failed
        Expected: 100
        Actual: 1
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/Scenarios/DoublinkList/dlstack/dlstack.sh
Author: buyaa-n
Assignees: -
Labels:

area-GC-coreclr, blocking-clean-ci, untriaged, Known Build Error

Milestone: -

ghost avatar Jan 30 '23 22:01 ghost

these all have to do with running finalizers and we haven't made any changes there in a long time. these tests are flaky and of low value. I'd be fine if we just disabled them.

I'm not aware anyone is using this HandleCollector thing.

Maoni0 avatar Jan 30 '23 22:01 Maoni0

  • Hit again in a 6.0 PR: https://github.com/dotnet/runtime/pull/84939
  • Queue: Mono llvmaot Pri0 Runtime Tests Run Linux arm64 release
  • Job: https://dev.azure.com/dnceng-public/public/_build/results?buildId=241936&view=logs&j=74e689b1-5e71-5f30-9486-7c2c5ff44021&t=bc7664d5-2e7c-57dc-1337-ab0ada348ecf
  • Log: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-84939-merge-e6d5ddf4c90d47d0ac/PayloadGroup0/1/console.e1ab2912.log?helixlogtype=result

carlossanlop avatar Apr 17 '23 21:04 carlossanlop

Still being hit. Seen in this 6.0 PR today: https://github.com/dotnet/runtime/pull/86295

carlossanlop avatar May 16 '23 21:05 carlossanlop

should we disable these tests, @Maoni0 ?

mangod9 avatar May 16 '23 22:05 mangod9

I'm fine with disabling.

Maoni0 avatar May 16 '23 22:05 Maoni0

  • PR: https://github.com/dotnet/runtime/pull/89800
  • Queue: Mono llvmaot Pri0 Runtime Tests Run Linux arm64 release
  • Run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=359336&view=logs&j=74e689b1-5e71-5f30-9486-7c2c5ff44021&t=bc7664d5-2e7c-57dc-1337-ab0ada348ecf
  • Log file: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-89800-merge-ee45070a97e448aca1/PayloadGroup0/1/console.5eebcf6f.log?helixlogtype=result
  • Hit this again in a 6.0 PR:
    Starting:    GC.API.XUnitWrapper (parallel test collections = on, max threads = 2)
    GC/API/GCHandleCollector/Usage/Usage.sh [FAIL]
      
      Unhandled Exception:
      System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
      Case 1 Passed!
      100, 100
      Case 2 Passed!
      Expected: 100
      Actual: 255
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_API._GCHandleCollector_Usage_Usage_._GCHandleCollector_Usage_Usage_sh()
      Output:
        
        Unhandled Exception:
        System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
        Case 1 Passed!
        100, 100
        Case 2 Passed!
        Expected: 100
        Actual: 255
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh

carlossanlop avatar Aug 01 '23 22:08 carlossanlop

Still happening in 6.0 @dotnet/gc. This is the most recent hit:

  • 6.0 PR: https://github.com/dotnet/runtime/pull/92969
  • Queue: Mono llvmaot Pri0 Runtime Tests Run Linux arm64 release
  • Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=426475&view=logs&j=74e689b1-5e71-5f30-9486-7c2c5ff44021&t=bc7664d5-2e7c-57dc-1337-ab0ada348ecf&l=66
  • Log: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-92969-merge-1a0fc0edf3d04bf78f/PayloadGroup0/1/console.1de7dcae.log?helixlogtype=result
  • Output:
Expand
  Starting:    GC.API.XUnitWrapper (parallel test collections = on, max threads = 2)
    GC/API/GCHandleCollector/Usage/Usage.sh [FAIL]
      
      Unhandled Exception:
      System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
      Case 1 Passed!
      100, 100
      Case 2 Passed!
      Expected: 100
      Actual: 255
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_API._GCHandleCollector_Usage_Usage_._GCHandleCollector_Usage_Usage_sh()
      Output:
        
        Unhandled Exception:
        System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
        Case 1 Passed!
        100, 100
        Case 2 Passed!
        Expected: 100
        Actual: 255
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
  Finished:    GC.API.XUnitWrapper

carlossanlop avatar Oct 04 '23 01:10 carlossanlop

I saw a new hit today. Did we get a chance to disable the test or did we miss it?:

  • PR: https://github.com/dotnet/runtime/pull/98325
  • Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=563518
  • Queue: Mono llvmaot Pri0 Runtime Tests Run Linux arm64 release
  • Job: https://dev.azure.com/dnceng-public/public/_build/results?buildId=563518&view=logs&j=74e689b1-5e71-5f30-9486-7c2c5ff44021&t=bc7664d5-2e7c-57dc-1337-ab0ada348ecf&l=69
  • Log: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-98325-merge-d382292ff46b4d25aa/PayloadGroup0/1/console.5be43ac6.log?helixlogtype=result
  • Output:
Starting:    GC.API.XUnitWrapper (parallel test collections = on, max threads = 2)
    GC/API/GCHandleCollector/Usage/Usage.sh [FAIL]
      
      Unhandled Exception:
      System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
      Case 1 Passed!
      100, 100
      Case 2 Passed!
      Expected: 100
      Actual: 255
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_API._GCHandleCollector_Usage_Usage_._GCHandleCollector_Usage_Usage_sh()
      Output:
        
        Unhandled Exception:
        System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
        Case 1 Passed!
        100, 100
        Case 2 Passed!
        Expected: 100
        Actual: 255
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
  Finished:    GC.API.XUnitWrapper

carlossanlop avatar Feb 13 '24 01:02 carlossanlop

Still affecting 6.0. Example: https://github.com/dotnet/runtime/pull/99787

  • Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=603897
  • Queue: Mono llvmaot Pri0 Runtime Tests Run Linux arm64 release
  • Job result: https://dev.azure.com/dnceng-public/public/_build/results?buildId=603897&view=logs&j=74e689b1-5e71-5f30-9486-7c2c5ff44021&t=bc7664d5-2e7c-57dc-1337-ab0ada348ecf&l=69
  • Log file: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-99787-merge-3acb3871c0ab4944b3/PayloadGroup0/1/console.33b200c3.log?helixlogtype=result
  • Output:
  Starting:    GC.API.XUnitWrapper (parallel test collections = on, max threads = 2)
    GC/API/GCHandleCollector/Usage/Usage.sh [FAIL]
      
      Unhandled Exception:
      System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
         at System.Runtime.InteropServices.HandleCollector.Remove()
         at HandleCollectorTest.Finalize()
      
      Return code:      1
      Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
      Raw output:
      BEGIN EXECUTION
      /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
      Case 1 Passed!
      100, 100
      Case 2 Passed!
      Expected: 100
      Actual: 255
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/root/helix/work/correlation
      > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at GC_API._GCHandleCollector_Usage_Usage_._GCHandleCollector_Usage_Usage_sh()
      Output:
        
        Unhandled Exception:
        System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Handle collector count overflows or underflows.
           at System.Runtime.InteropServices.HandleCollector.Remove()
           at HandleCollectorTest.Finalize()
        
        Return code:      1
        Raw output file:      /root/helix/work/workitem/uploads/Reports/GC.API/GCHandleCollector/Usage/Usage.output.txt
        Raw output:
        BEGIN EXECUTION
        /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false Usage.dll ''
        Case 1 Passed!
        100, 100
        Case 2 Passed!
        Expected: 100
        Actual: 255
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/root/helix/work/correlation
        > /root/helix/work/workitem/e/GC/API/GCHandleCollector/Usage/Usage.sh
  Finished:    GC.API.XUnitWrapper

carlossanlop avatar Mar 14 '24 22:03 carlossanlop