Skip to content

CI failure on 8.0 and 9.0: MalformedPacketsDuringHandshake_ThrowsAuthenticationException fails because of PartialChain #130887

Description

@svick

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1508917
Build error leg or test failing: System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
Pull request: #130724

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

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

{
  "ErrorMessage":
    [
      "System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException [FAIL]",
      "System.Security.Authentication.AuthenticationException : The remote certificate is invalid because of errors in the certificate chain: PartialChain"
    ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
    System.Net.Security.Tests.CertificateValidationClientServer.CertificateValidationClientServer_EndToEnd_Ok(clientCertSource: CertificateContext) [FAIL]
      sslClientStream.IsMutuallyAuthenticated
      Expected: True
      Actual:   False
      Stack Trace:
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationClientServer.cs(206,0): at System.Net.Security.Tests.CertificateValidationClientServer.CertificateValidationClientServer_EndToEnd_Ok(ClientCertSource clientCertSource)
        --- End of stack trace from previous location ---
    System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException [FAIL]
      System.Security.Authentication.AuthenticationException : The remote certificate is invalid because of errors in the certificate chain: PartialChain
      Stack Trace:
        /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(501,0): at System.Net.Security.SslStream.SendAuthResetSignal(ReadOnlySpan`1 alert, ExceptionDispatchInfo exception)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(563,0): at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(338,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(55,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamStreamToStreamTest.cs(755,0): at System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException()
        --- End of stack trace from previous location ---

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1508917
Error message validated: [System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException [FAIL] System.Security.Authentication.AuthenticationException : The remote certificate is invalid because of errors in the certificate chain: PartialChain]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/16/2026 5:12:56 PM UTC

Report

Build Repository Test Pull Request
1528324 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #131415
1522784 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #130943
1520880 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #131179
1519953 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1519700 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1519926 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1519808 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1519745 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #130598
1519697 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1519577 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1519006 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #131126
1518742 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #131044
1516764 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #131044
3024988 dotnet-runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #62989
3024986 dotnet-runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #62988
1514458 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
3024690 dotnet-runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #62978
1514455 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException
1514464 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #130862
1514053 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #130943
1513554 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #130724
1508917 dotnet/runtime System.Net.Security.Tests.SslStreamStreamToStreamTest_MemoryAsync.MalformedPacketsDuringHandshake_ThrowsAuthenticationException #130724

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 11 22

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions