Skip to content

Test failure: System.Threading.Tests.BarrierTests.RunBarrierTest7a #127130

Closed

Description

@VincentBu

Failed in: runtime-coreclr libraries-jitstressregs 20260419.1

Failed tests:

net11.0-windows-Release-x86-jitstressregs8-Windows.10.Amd64.Open
- System.Threading.Tests.BarrierTests.RunBarrierTest7a

Error message:

System.AggregateException : One or more errors occurred. (The participantCount argument must be less than or equal the number of participants. (Parameter 'participantCount'))
---- System.ArgumentOutOfRangeException : The participantCount argument must be less than or equal the number of participants. (Parameter 'participantCount')

Stack trace:

   at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan`1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 5207
   at System.Threading.Tasks.Task.WaitAll(Task[] tasks) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 4879
   at System.Threading.Tests.BarrierTests.RunBarrierTest7a() in /_/src/libraries/System.Threading/tests/BarrierTests.cs:line 285
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 39
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
----- Inner Stack Trace -----
   at System.Threading.Barrier.RemoveParticipants(Int32 participantCount) in /_/src/libraries/System.Threading/src/System/Threading/Barrier.cs:line 444
   at System.Threading.Tests.BarrierTests.<>c__DisplayClass18_0.<RunBarrierTest7a>b__0() in /_/src/libraries/System.Threading/tests/BarrierTests.cs:line 277
   at System.Threading.Tests.BarrierTests.<>c__DisplayClass18_0.<RunBarrierTest7a>b__1(Object index) in /_/src/libraries/System.Threading/tests/BarrierTests.cs:line 284
   at System.Threading.Tasks.Task.InnerInvoke() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2562
   at System.Threading.Tasks.Task.<>c.<.cctor>b__301_0(Object obj) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2542
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 279
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 304
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 2506

Activity

  1. added
    JitStress
    blocking-clean-ci-optional
    on Apr 20, 2026
  2. added
    untriaged
    on Apr 20, 2026
  3. dotnet-policy-service commented on Apr 20, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @VSadov
    See info in area-owners.md if you want to be subscribed.

  4. mangod9 commented on Apr 20, 2026

    @mangod9
    Member

    Most likely same root cause as #127131

  5. added
    area-CodeGen-coreclr
    and removed on Apr 20, 2026
  6. dotnet-policy-service commented on Apr 20, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  7. removed
    untriaged
    on Apr 20, 2026
  8. added this to the 11.0.0 milestone on Apr 20, 2026
  9. dhartglassMSFT commented on Apr 24, 2026

    @dhartglassMSFT
    Contributor

    Windows-x86 regstress (same leg) also has failures in
    System.Threading.Tasks.Tests.TaskRtTests_Core.RunTCSCompletionStateTests_SetCancel
    System.Threading.Tasks.Tests.TaskRtTests_Core.RunTCSCompletionStateTests

    putting here for posterity

  10. locked and limited conversation to collaborators on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

JitStressarea-CodeGen-coreclrblocking-clean-ci-optional

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions