Skip to content

[6.0, 7.0, 8.0] Connection reset assert failure in System.Net.Sockets.Tests.SendReceive_SyncForceNonBlocking.TcpReceiveSendGetsCanceledByDispose #92423

Closed
@carlossanlop

Description

@carlossanlop

Error Blob

This issue might be related to (or even be the same as) #91543 and/or #84364 . Unfortunately, neither of those were opened as a Known Build Error, so the bot is unable to tag all the affected PRs. If you determine this issue is the same as one of those two, can you please close the other ones so we get this issue linked to PRs by the bot? Thanks.

{
  "ErrorMessage": ["TcpReceiveSendGetsCanceledByDispose", "System.AggregateException : One or more errors occurred. (Assert.Equal() Failure"],
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Output (expand)
    System.Net.Sockets.Tests.SendReceive_SyncForceNonBlocking.TcpReceiveSendGetsCanceledByDispose(receiveOrSend: True, ipv6Server: False, dualModeClient: False, owning: True) [FAIL]
      System.AggregateException : One or more errors occurred. (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)) (Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null))
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      ---- Assert.Equal() Failure
      Expected: ConnectionReset
      Actual:   (null)
      Stack Trace:
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(102,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1032,0): at System.Net.Sockets.Tests.SendReceive`1.<TcpReceiveSendGetsCanceledByDispose>d__21[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        ----- Inner Stack Trace #1 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #2 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #3 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #4 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #5 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #6 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #7 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        ----- Inner Stack Trace #8 (Xunit.Sdk.EqualException) -----
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1120,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<<TcpReceiveSendGetsCanceledByDispose>b__0>d[[System.Net.Sockets.Tests.SocketHelperSyncForceNonBlocking, System.Net.Sockets.Tests, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=437229
Error message validated: System.AggregateException : One or more errors occurred. (Assert.Equal() Failure
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 10/13/2023 10:36:32 PM UTC

Report

Build Definition Test Pull Request
1070065 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1068955 dotnet/runtime System.Net.WebSockets.Client.Tests.InvokerConnectTest_Http2.ConnectAsync_VersionNotSupported_WithSsl_Throws #115996
1067318 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1063503 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1062372 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1061920 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1061921 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1061405 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1056733 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1052935 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1052033 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1051848 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1051297 dotnet/runtime System.Net.WebSockets.Client.Tests.HttpClientConnectTest_Http2.ConnectAsync_VersionNotSupported_WithSsl_Throws #115996
1050477 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1050347 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1050159 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1049006 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1048546 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1048541 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1047452 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1047108 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1046847 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1045064 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 3 23

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 6/17/2025 7:06:56 PM UTC

Report

Build Definition Test Pull Request
1070065 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1068955 dotnet/runtime System.Net.WebSockets.Client.Tests.InvokerConnectTest_Http2.ConnectAsync_VersionNotSupported_WithSsl_Throws #115996
1067318 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1063503 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1062372 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1061920 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1061921 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1061405 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1056733 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1052935 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1052033 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1051848 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1051297 dotnet/runtime System.Net.WebSockets.Client.Tests.HttpClientConnectTest_Http2.ConnectAsync_VersionNotSupported_WithSsl_Throws #115996
1050477 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1050347 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1050159 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1049006 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1048546 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1048541 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1047452 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked
1047108 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1046847 dotnet/runtime System.Diagnostics.Tests.ProcessStreamReadTests.TestAsyncHalfCharacterAtATime #115388
1045064 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.RevocationTests.DynamicRevocationTests.TestRevocationWithNoNextUpdate_NotRevoked

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 3 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarch-ppc64learch-s390xRelated to s390x architecture (unsupported)area-System.Net.Socketsblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-linuxLinux OS (any supported distro)runtime-monospecific to the Mono runtime

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions