Skip to content

[ci-scan] Test failure: OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl on tvOS #136952

Open

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1659071
Build error leg or test failing: tvos-arm64 Release AllSubsets_CoreCLR-System.Net.Security.Unit.Tests / System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl
Also affected: tvos-arm64 Release AllSubsets_NativeAOT.
Pipeline: runtime-extra-platforms, definition 154, main.
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1648254 (finished 2026-10-25; earliest verified occurrence in the ten-build sample, not the established introduction).
Follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1661087 (finished 2026-11-03), same missing-library failure on both runtime variants.

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

All nine theory cases attempt to initialize the OpenSSL interop library on tvOS and fail because libSystem.Security.Cryptography.Native.OpenSsl cannot be loaded. Source CoreCLR results: 136 tests, 124 passed, 9 failed, 3 ignored. The NativeAOT work item has the same missing-library exception. This scan does not establish the underlying product or test-configuration fix.

The same exception was verified in seven distinct source-and-prior builds among ten sampled: 1648254, 1648681, 1653767, 1655451, 1657310, 1658360, and 1659071. Builds without this failed work item's console do not establish that the test passed. The true origin may predate 2026-10-25.

Source console: https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-650ae0b634004664a8/System.Net.Security.Unit.Tests/1/console.874a8a45.log?helixlogtype=result

Log prefixes and repeated application-bundle library-search paths are omitted below; the complete exception chain and stack frames are retained:

[FAIL] System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl(error: 338067735, isOpenSsl3: False, expected: 279)
System.TypeInitializationException : The type initializer for 'OpenSsl' threw an exception.
---- System.TypeInitializationException : The type initializer for 'CryptoInitializer' threw an exception.
-------- System.DllNotFoundException : Unable to load shared library 'libSystem.Security.Cryptography.Native.OpenSsl' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
   at Interop.OpenSsl.GetSslLibraryReason(UInt32 error, Boolean isOpenSsl3)
   at System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl(UInt32 error, Boolean isOpenSsl3, Int32 expected)
   at InvokeStub_OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl(Object, Object, IntPtr*)
   at System.Reflection.IntrinsicInvokeHelper.Invoke(InvokeState& state, InvokerStrategy& strategy, InvokeFunc_RefArgs& invokeFunc, MethodBase method, RuntimeType[] argumentTypes, Object obj, IntPtr* args, Boolean backwardsCompat)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
----- Inner Stack Trace -----
   at Interop.OpenSsl..cctor()
   at System.Runtime.CompilerServices.InitHelpers.CallClassConstructor(Void* cctor, Void* instantiatingArg, Exception* pException)
----- Inner Stack Trace -----
   at Interop.CryptoInitializer..cctor()
   at System.Runtime.CompilerServices.InitHelpers.CallClassConstructor(Void* cctor, Void* instantiatingArg, Exception* pException)

Error Message

{
  "ErrorMessage": [
    "[FAIL] System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl",
    "System.DllNotFoundException : Unable to load shared library 'libSystem.Security.Cryptography.Native.OpenSsl' or one of its dependencies."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 18 hits in failure.log

Both elements occur in order in the failing test output and each has 18 literal matches in the saved source console. The failure marker does not match passing or skipped output.


Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

Note

Generated by GitHub Copilot.

Generated by CI Outer-Loop Failure Scanner · copilot · gpt61 · ~235 AIC · ⌖ ~13 AIC · ⊞ 33.3K · ◷

Report

Build Repository Test Pull Request
1666771 dotnet/runtime System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext
1666350 dotnet/runtime System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext
1665765 dotnet/runtime System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext
1663467 dotnet/runtime System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl #136916
1663137 dotnet/runtime System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl

Summary

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

Activity

  1. dotnet-policy-service commented on Nov 4, 2026

    @dotnet-policy-service
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsarea-System.Netblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions