-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Looks like the behavior on Linux/OSX is slightly different than when I tested the new test on Windows and we may end up wrapping ObjectDisposedException in an AuthenticationException.
System.Net.Security.Tests.SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE [FAIL]
System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
---- System.ObjectDisposedException : Cannot access a disposed object.
Object name: 'Microsoft.Win32.SafeHandles.SafeBioHandle'.
Stack Trace:
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.IO.cs(317,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamDisposeTest.cs(148,0): at System.Net.Security.Tests.SslStreamDisposeTest.<Dispose_ParallelWithHandshake_ThrowsODE>g__ValidateExceptionAsync|3_1(Task task)
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamDisposeTest.cs(139,0): at System.Net.Security.Tests.SslStreamDisposeTest.<>c__DisplayClass3_0.<<Dispose_ParallelWithHandshake_ThrowsODE>b__0>d.MoveNext()
--- End of stack trace from previous location ---
/_/src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/Parallel.ForEachAsync.cs(301,0): at System.Threading.Tasks.Parallel.<>c__53`1.<<ForEachAsync>b__53_0>d.MoveNext()
--- End of stack trace from previous location ---
/_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamDisposeTest.cs(113,0): at System.Net.Security.Tests.SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE()
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
/_/artifacts/obj/System.Net.Security/Release/net10.0-linux/Microsoft.Interop.LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator/LibraryImports.g.cs(1383,0): at Interop.Crypto.BioCtrlPending(SafeBioHandle bio)
/_/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Unix.cs(187,0): at System.Net.Security.SslStreamPal.HandshakeInternal(SafeDeleteSslContext& context, ReadOnlySpan`1 inputBuffer, Int32& consumed, SslAuthenticationOptions sslAuthenticationOptions)
Build Information
Build: Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=988701
Build error leg or test failing: System.Net.Security.Tests.SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE
Pull request:
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "System.Net.Security.Tests.SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE [FAIL]",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=988701
Error message validated: [System.Net.Security.Tests.SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE [FAIL]
]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 3/24/2025 11:32:21 AM UTC
Report
Build | Definition | Test | Pull Request |
---|---|---|---|
988701 | dotnet/runtime | System.Net.Security.Tests.SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE |
Summary
24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
---|---|---|
0 | 0 | 1 |