Skip to content
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

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

Open
buyaa-n opened this issue Jan 30, 2023 · 10 comments
Open

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

buyaa-n opened this issue Jan 30, 2023 · 10 comments
Labels
area-GC-coreclr Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@buyaa-n
Copy link
Contributor

buyaa-n commented Jan 30, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=603897
Build error leg or test failing: GC/API/GCHandleCollector/Usage/Usage.sh
Pull request: #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

Summary

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

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=603897
Error message validated: [System.InvalidOperationException: Handle collector count overflows or underflows.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 3/14/2024 10:51:23 PM UTC

@buyaa-n buyaa-n added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Jan 30, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jan 30, 2023
@ghost
Copy link

ghost commented Jan 30, 2023

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: #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: -

@Maoni0
Copy link
Member

Maoni0 commented Jan 30, 2023

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.

@carlossanlop carlossanlop changed the title Several GC test failures found CI build of PR porting into [release/6.0] [6.0] Several GC test failures Feb 14, 2023
@carlossanlop carlossanlop changed the title [6.0] Several GC test failures [6.0] GC test failures: Handle collector count overflows or underflows Apr 17, 2023
@carlossanlop
Copy link
Member

Still being hit. Seen in this 6.0 PR today: #86295

@mangod9
Copy link
Member

mangod9 commented May 16, 2023

should we disable these tests, @Maoni0 ?

@Maoni0
Copy link
Member

Maoni0 commented May 16, 2023

I'm fine with disabling.

@mangod9 mangod9 removed blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' untriaged New issue has not been triaged by the area owner labels Jul 24, 2023
@mangod9 mangod9 added this to the Future milestone Jul 24, 2023
@carlossanlop
Copy link
Member

    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
Copy link
Member

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

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

@build-analysis build-analysis bot removed this from the Future milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the Future milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
@carlossanlop
Copy link
Member

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

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
Copy link
Member

Still affecting 6.0. Example: #99787

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-GC-coreclr Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

5 participants