Skip to content

[tvOS CoreCLR] System.Net.Security.Unit.Tests crashes because required Dictionary IL was stripped from R2R image #131922

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1540423
Build error leg or test failing: tvos-arm64 Release AllSubsets_CoreCLRSystem.Net.Security.Unit.Tests

Error Details

The tvOS CoreCLR test app crashes during runtime initialization, before test discovery. A generic Dictionary constructor needed by AppContext.Setup was stripped from the ReadyToRun image:

Fatal error.
A method body required at runtime was stripped from the ReadyToRun image.
   at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(Int32, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)
   at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(Int32)
   at System.AppContext.Setup(Char**, Char**, Int32, System.Exception*)

The process terminates with SIGABRT (Abort trap: 6), and XHarness reports APP_CRASH with exit code 80. No test results are produced.

This is the same Apple-mobile ReadyToRun IL-body-stripping failure class as #130570. That issue was mitigated for specific projects by #130468. System.Net.Security.Unit.Tests.csproj currently does not disable PublishReadyToRunStripILBodies.

The preceding runtime-extra-platforms build, 1538577, passed this tvOS CoreCLR job, so this instance is newly exposed in build 1540423.

Error Message

{
  "ErrorMessage": [
    "A method body required at runtime was stripped from the ReadyToRun image.",
    "at System.AppContext.Setup(Char**, Char**, Int32, System.Exception*)"
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

This issue was prepared with GitHub Copilot assistance and reviewed by the submitting developer.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1540423
Error message validated: [A method body required at runtime was stripped from the ReadyToRun image. at System.AppContext.Setup(Char**, Char**, Int32, System.Exception*)]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/6/2026 7:29:59 AM UTC

Report

Build Repository Test Pull Request
1547725 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution #132112
1547473 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution #131783
1546065 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution
1545668 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution
1545268 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution
1543815 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution
1542078 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution
1540423 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 8 8

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-tvosApple tvOS

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions