runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Failing test - `System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest` on Linux/arm64

Open radical opened this issue 1 year ago • 3 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=495334 Build error leg or test failing: System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest Pull request: https://github.com/dotnet/runtime/pull/95819

Error Message

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

{
  "ErrorMessage": "Exit code was 134 but it should have been 42",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Similar to https://github.com/dotnet/runtime/issues/85960 ? cc @lateralusX @lambdageek

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=495334 Error message validated: Exit code was 134 but it should have been 42 Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 12/11/2023 6:41:24 PM UTC

Report

Build Definition Test Pull Request
657767 dotnet/runtime System.Net.Tests.ServicePointManagerTest.FindServicePoint_ReturnedServicePointMatchesExpectedValues dotnet/runtime#101137
656607 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestStaticLambdaRegression dotnet/runtime#101580
655791 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.CooperativeBlockingWithProcessingThreadsAndGoalThreadsAndAddWorkerRaceTest dotnet/runtime#101537
651352 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestReflectionAddNewMethod dotnet/runtime#101353
650676 dotnet/runtime System.Security.Cryptography.Tests.Sha256ManagedTests.HashAlgorithm_TransformFinalBlock_ConcurrentUseDoesNotCrashProcess dotnet/runtime#99339
650178 dotnet/runtime Microsoft.Extensions.Diagnostics.Tests.ListenerSubscriptionTests.RuleMatchesNegativeTest dotnet/runtime#101318
648973 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution dotnet/runtime#100962
648857 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution dotnet/runtime#100962
648059 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution dotnet/runtime#100962
641780 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100386
640958 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100765
640844 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100951
640688 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#93014
640353 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100743
639593 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100669
639437 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100520
638524 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100767
637807 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100489
637534 dotnet/runtime System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException dotnet/runtime#100823
636703 dotnet/runtime System.Tests.PosixSignalRegistrationTests.SignalHandlerCalledForRawSignals dotnet/runtime#100147
636603 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100802
636443 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100821
635653 dotnet/runtime System.ComponentModel.Composition.CompositionExceptionTests.Message_ShouldFormatCountOfRootCausesUsingTheCurrentCulture dotnet/runtime#99278
635054 dotnet/runtime System.Threading.Tests.EtwTests.WaitHandleWaitEventTest dotnet/runtime#100778
634307 dotnet/runtime System.ComponentModel.Composition.CompositionExceptionTests.Message_ShouldFormatCountOfRootCausesUsingTheCurrentCulture dotnet/runtime#99278
633731 dotnet/runtime System.ComponentModel.Composition.CompositionExceptionTests.Message_ShouldFormatCountOfRootCausesUsingTheCurrentCulture dotnet/runtime#99278
631865 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100676
631246 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#99659
631044 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100497
630711 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100650
629121 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100489
629043 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100589
628975 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#100141
628555 dotnet/runtime System.ComponentModel.Composition.CompositionExceptionTests.Message_ShouldFormatCountOfRootCausesUsingTheCurrentCulture dotnet/runtime#99278
626716 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest
625012 dotnet/runtime System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest dotnet/runtime#99908
624528 dotnet/runtime System.Memory.Tests.Span.StringSearchValuesTests.TestIndexOfAny_RandomInputs_InvariantCulture dotnet/runtime#100456

Summary

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

radical avatar Dec 11 '23 18:12 radical

Tagging subscribers to this area: @mangod9 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=495334 Build error leg or test failing: System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest Pull request: https://github.com/dotnet/runtime/pull/95819

Error Message

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

{
  "ErrorMessage": "Exit code was 134 but it should have been 42",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Similar to https://github.com/dotnet/runtime/issues/85960 ? cc @lateralusX @lambdageek

Author: radical
Assignees: -
Labels:

area-System.Threading, blocking-clean-ci, Known Build Error

Milestone: -

ghost avatar Dec 11 '23 18:12 ghost

Yes, seems to include the same pattern as seen in https://github.com/dotnet/runtime/issues/85960, so terminating runtime with an exit and since that doesn't wait for managed threads to complete, we still have managed threads calling into EventPipe while cleaning up EventPipe artifacts and that leads to this assert or potential an AV.

lateralusX avatar Dec 12 '23 10:12 lateralusX

Failing again on https://github.com/dotnet/runtime/pull/98234 From log:

Exiting early due to double fault.
[Inferior 1 (process 41724) detached]
    System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Exit code was 255 but it should have been 42
      Stack Trace:
        /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(242,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing)
        /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(55,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose()
        /_/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs(1118,0): at System.Threading.ThreadPools.Tests.ThreadPoolTests.ThreadPoolMinMaxThreadsEventTest()
        /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
    System.Threading.ThreadPools.Tests.ThreadPoolTests.MetricsTest [SKIP]
      Condition(s) not met: "IsMetricsTestSupported"
  Finished:    System.Threading.ThreadPool.Tests
=== TEST EXECUTION SUMMARY ===
   System.Threading.ThreadPool.Tests  Total: 66, Errors: 0, Failed: 1, Skipped: 1, Time: 12.072s

buyaa-n avatar Feb 13 '24 17:02 buyaa-n

Closing since this hasn't reproed for a few months.

mangod9 avatar May 02 '24 21:05 mangod9