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

未关闭
#136,952 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
csharp

调研方向

Start with the failing test OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl in System.Net.Security.Unit.Tests and the DllNotFoundException for libSystem.Security.Cryptography.Native.OpenSsl thrown from the Interop.OpenSsl static constructor on tvOS. The issue does not say what to change, so first confirm with the maintainers where the tvOS native library is expected to be packaged or loaded. Done means the test passes on tvos-arm64 in both CoreCLR and NativeAOT legs.

由索引模型根据 Issue 内容生成。

描述

agentic-workflows area-System.Net blocking-clean-ci Known Build Error

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 dotnet/runtime#136916
1663137 dotnet/runtime System.Net.Security.Tests.OpenSslErrorTests.GetSslLibraryReason_UsesLayoutOfLoadedOpenSsl
Summary
24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 5 5
主要语言
C#
星标
18.4k
派生
5.8k
平均合并
2 天 12 小时
30 天内合并 PR
581

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/runtime 的其他 Issue

查看 dotnet/runtime 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。