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

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

Closed
radical opened this issue Dec 11, 2023 · 4 comments
Labels
area-System.Threading 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

Comments

@radical
Copy link
Member

radical commented Dec 11, 2023

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: #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 #85960 ?
cc @lateralusX @lambdageek

Known issue validation

Build: 🔎 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: ✅ Known issue matched with the provided build.
Validation performed at: 12/11/2023 6:41:24 PM UTC

Report

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

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 4 36
@radical radical added area-System.Threading 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 Dec 11, 2023
@ghost
Copy link

ghost commented Dec 11, 2023

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: #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 #85960 ?
cc @lateralusX @lambdageek

Author: radical
Assignees: -
Labels:

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

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Dec 11, 2023
@lateralusX
Copy link
Member

lateralusX commented Dec 12, 2023

Yes, seems to include the same pattern as seen in #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.

@buyaa-n
Copy link
Member

buyaa-n commented Feb 13, 2024

Failing again on #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

@mangod9
Copy link
Member

mangod9 commented May 2, 2024

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

@mangod9 mangod9 closed this as completed May 2, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label May 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Threading 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
Projects
None yet
Development

No branches or pull requests

4 participants