Skip to content

[Android] System.Net.Mail.Tests SmtpClient tests fail with SSL handshake errors in BoringSSL on x64/x86 emulators #115694

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1043927

Build error leg or test failing: System.Net.Mail.Functional.Tests

Affected CI jobs: android_x64_release_allsubsets_mono, android_x86_release_allsubsets_mono

Commit range: N/A (No commit range is available as the failure's first occurrence could not be determined)

Extracted Error Log

05-16 22:08:21.786  5647  5668 W System.err: javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0xc5ec2738: Failure in SSL library, usually a protocol error
05-16 22:08:21.786  5647  5668 W System.err: error:10000044:SSL routines:OPENSSL_internal:internal error (external/boringssl/src/ssl/s3_both.cc:516 0xd9df0543:0x00000000)

Error Message

{
  "ErrorMessage": ["javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=", "Failure in SSL library, usually a protocol error"],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1043927
Error message validated: [javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl= Failure in SSL library, usually a protocol error]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/18/2025 8:18:59 AM UTC

Report

Build Definition Test Pull Request
1097916 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #117763
1097633 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1094947 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #117653
1097504 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #117710
1096980 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1096298 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #117710
1096215 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1095854 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #117693
1095577 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1094804 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1094240 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1093567 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1093249 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1093056 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1092883 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException
1092728 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException
1092503 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException
1091981 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1091545 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1091180 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #117507
1090889 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1090290 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1089548 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1088858 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1088075 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1087569 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1086936 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1086696 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1086565 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1086435 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1086311 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1086189 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1085900 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1085479 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1084860 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution
1071537 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #116540

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 17 36

Activity

  1. dotnet-policy-service commented on May 18, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  2. dotnet-policy-service commented on May 18, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  3. added this to the 10.0.0 milestone on Jul 11, 2025
  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 11, 2025
  5. kotlarmilos commented on Jul 18, 2025

    @kotlarmilos
    Member

    @matouskozak I think these are device errors and are not related to the actual tests.

  6. modified the milestones: 10.0.0, Future on Jul 18, 2025
  7. matouskozak commented on Jul 18, 2025

    @matouskozak
    MemberAuthor

    @matouskozak I think these are device errors and are not related to the actual tests.

    You're right, the error message seems to be red hearing. However, there are some errors happening on emulators and devices with this format:

    07-17 16:11:30.634  8649 17072 I DOTNET  : 9) 	[FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException   Test name: System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException(dangerousChar: 0x009f, headerType: Cookie)   Test case: System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException
    07-17 16:11:30.634  8649 17072 I DOTNET  :    Assembly:  [System.Net.Http.Functional.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
    07-17 16:11:30.634  8649 17072 I DOTNET  :    Exception messages: Assert.Contains() Failure: Sub-string not found
    07-17 16:11:30.634  8649 17072 I DOTNET  : String:    "An HTTP/2 connection could not be establi"···
    07-17 16:11:30.634  8649 17072 I DOTNET  : Not found: "ASCII"   Exception stack traces:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.<>c__DisplayClass54_0.<<SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException>b__0>d.MoveNext()
    07-17 16:11:30.634  8649 17072 I DOTNET  : --- End of stack trace from previous location ---
    07-17 16:11:30.634  8649 17072 I DOTNET  :    at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
    07-17 16:11:30.634  8649 17072 I DOTNET  : --- End of stack trace from previous location ---
    07-17 16:11:30.634  8649 17072 I DOTNET  :    at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
    07-17 16:11:30.634  8649 17072 I DOTNET  :    at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
    07-17 16:11:30.634  8649 17072 I DOTNET  : --- End of stack trace from previous location ---
    07-17 16:11:30.634  8649 17072 I DOTNET  :    at System.Net.Test.Common.Http2LoopbackServerFactory.CreateServerAsync(Func`3 funcAsync, Int32 millisecondsTimeout, GenericLoopbackOptions options)
    07-17 16:11:30.634  8649 17072 I DOTNET  :    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException(Char dangerousChar, HeaderType headerType)
    07-17 16:11:30.634  8649 17072 I DOTNET  : --- End of stack trace from previous location ---
    
  8. kotlarmilos commented on Jul 18, 2025

    @kotlarmilos
    Member

    That error was tracked in #117198.

  9. matouskozak commented on Jul 18, 2025

    @matouskozak
    MemberAuthor

    Ok, we can close this one I think

  10. locked and limited conversation to collaborators on Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions