Skip to content

Test failure: System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking "Inconsistent LargeStruct: 1 1 1 1 1 1 0 0" #91732

@jakobbotsch

Description

@jakobbotsch

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=398160
Build error leg or test failing: System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(seconds: 1)
Pull request: #91663

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "System.Exception : Inconsistent LargeStruct: ",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
+ grep DOTNET
DOTNET_EnableCrashReport=1
DOTNET_TieredCompilation=1
DOTNET_JitStress=1
DOTNET_DbgMiniDumpName=/home/helixbot/dotnetbuild/dumps/coredump.%d.dmp
DOTNET_DbgEnableMiniDump=1
+ ./RunTests.sh --runtime-path /root/helix/work/correlation
----- start Thu Sep 7 11:03:23 UTC 2023 =============== To repro directly: =====================================================
pushd .
/root/helix/work/correlation/dotnet exec --runtimeconfig System.Collections.Concurrent.Tests.runtimeconfig.json --depsfile System.Collections.Concurrent.Tests.deps.json xunit.console.dll System.Collections.Concurrent.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/root/helix/work/workitem/e /root/helix/work/workitem/e
  Discovering: System.Collections.Concurrent.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Collections.Concurrent.Tests (found 897 of 905 test cases)
  Starting:    System.Collections.Concurrent.Tests (parallel test collections = on, max threads = 2)
    System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(seconds: 1) [FAIL]
      System.Exception : Inconsistent LargeStruct: 1 1 1 1 1 1 0 0
      Stack Trace:
        /_/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs(1030,0): at System.Collections.Concurrent.Tests.ProducerConsumerCollectionTests.LargeStruct.get_Value()
        /_/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs(871,0): at System.Collections.Concurrent.Tests.ProducerConsumerCollectionTests.<>c__DisplayClass52_0.<ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking>b__1()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2399,0): at System.Threading.Tasks.Task.InnerInvoke()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(179,0): at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(203,0): at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2345,0): at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs(1013,0): at System.Collections.Concurrent.Tests.ProducerConsumerCollectionTests.WaitAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/System.Collections.Concurrent/tests/ProducerConsumerCollectionTests.cs(876,0): at System.Collections.Concurrent.Tests.ProducerConsumerCollectionTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(Double seconds)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(155,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
  Finished:    System.Collections.Concurrent.Tests
=== TEST EXECUTION SUMMARY ===
   System.Collections.Concurrent.Tests  Total: 2406, Errors: 0, Failed: 1, Skipped: 0, Time: 35.091s
/root/helix/work/workitem/e
----- end Thu Sep 7 11:04:03 UTC 2023 ----- exit code 1 ----------------------------------------------------------

I can take an initial look, this could be physical promotion related.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=398160
Error message validated: System.Exception : Inconsistent LargeStruct:
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/7/2023 2:12:29 PM UTC

Report

Build Definition Test Pull Request
401000 dotnet/runtime System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(seconds: 1)
399429 dotnet/runtime System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(seconds: 1)
398160 dotnet/runtime System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(seconds: 1) #91663
398021 dotnet/runtime System.Collections.Concurrent.Tests.ConcurrentQueueTests.ManyConcurrentAddsTakesPeeks_ForceContentionWithOtherThreadsPeeking(seconds: 1)

Summary

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

Metadata

Metadata

Assignees

Labels

JitStressCLR JIT issues involving JIT internal stress modesKnown Build ErrorUse this to report build issues in the .NET Helix tabarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ci-optionalBlocking optional rolling runs

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions