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

[Test Failure] SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE on Unix #113833

Closed
rzikm opened this issue Mar 24, 2025 · 0 comments · Fixed by #114100
Closed

[Test Failure] SslStreamDisposeTest.Dispose_ParallelWithHandshake_ThrowsODE on Unix #113833

rzikm opened this issue Mar 24, 2025 · 0 comments · Fixed by #114100
Assignees
Labels
area-System.Net.Security 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
Milestone

Comments

@rzikm
Copy link
Member

rzikm commented Mar 24, 2025

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
@rzikm rzikm added 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 Mar 24, 2025
@rzikm rzikm self-assigned this Mar 24, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Mar 24, 2025
@rzikm rzikm added this to the 10.0.0 milestone Mar 24, 2025
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Mar 24, 2025
rzikm added a commit to rzikm/dotnet-runtime that referenced this issue Apr 1, 2025
rzikm added a commit to rzikm/dotnet-runtime that referenced this issue Apr 1, 2025
rzikm added a commit to rzikm/dotnet-runtime that referenced this issue Apr 1, 2025
@rzikm rzikm closed this as completed in 9b024f6 Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net.Security 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

Successfully merging a pull request may close this issue.

1 participant