Skip to content

tvos-arm64 Mono AOT precompilation fails with Invalid IL code for multiple test assemblies #126458

@kotlarmilos

Description

@kotlarmilos

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1362636
Build error leg or test failing: System.Net.NameResolution.Functional.Tests.WorkItemExecution, System.Reflection.Context.Tests.WorkItemExecution, System.Text.Encoding.Extensions.Tests.WorkItemExecution
Pull request: #125441

Affected CI jobs: build_tvos_arm64_Release_AllSubsets_Mono

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Precompiling failed",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Summary

On tvos-arm64 Mono Release (AOT mode), the Mono AOT compiler fails to precompile test assemblies with "Invalid IL code" errors:

Precompiling failed for aot-instances.dll with exit code 134
Unable to compile method ... due to: 'Invalid IL code in ...: IL_0000: ret'

3 work items affected:

  • System.Net.NameResolution.Functional.Tests
  • System.Reflection.Context.Tests
  • System.Text.Encoding.Extensions.Tests

Note

This issue was filed with the assistance of GitHub Copilot.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1362636
Error message validated: [Precompiling failed]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/2/2026 10:17:08 AM UTC

Report

Build Definition Test Pull Request
1374442 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #126152
1373025 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution
1372996 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution
1372440 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution
1370255 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #125955
1369661 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #126322
1362636 dotnet/runtime System.Net.NameResolution.Functional.Tests.WorkItemExecution #125441

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 6 7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions