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
1429323 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution
1428393 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128409
1428400 dotnet/runtime System.Data.Common.Tests.WorkItemExecution
1427748 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #124173
1427615 dotnet/runtime System.ComponentModel.Annotations.Tests.WorkItemExecution
1427236 dotnet/runtime System.Diagnostics.FileVersionInfo.Tests.WorkItemExecution
1426173 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128284
1424920 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128068
1425182 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #128116
1424079 dotnet/runtime System.Net.Http.Json.Functional.Tests.HttpClientJsonExtensionsTests.GetFromJsonAsync_EnforcesMaxResponseContentBufferSize
1423593 dotnet/runtime System.Composition.AttributeModel.Tests.WorkItemExecution
1423053 dotnet/runtime Microsoft.Extensions.Hosting.Systemd.Tests.WorkItemExecution
1422445 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #128116
1420484 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128068
1420660 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #128116
1420407 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128135
1420047 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution
1418805 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #124173
1419138 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #128116
1418286 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution
1418360 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #128116
1417611 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128049
1417637 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128068
1416787 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution
1416322 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #128049
1415929 dotnet/runtime System.Configuration.ConfigurationManager.Tests.WorkItemExecution #125437
1414719 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1414320 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1413202 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1412341 dotnet/runtime System.Configuration.ConfigurationManager.Tests.WorkItemExecution #125437
1411505 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1410315 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #127787
1408366 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1408038 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1407709 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #127498
1407922 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127228
1407162 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127730
1407122 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127722
1407104 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127719
1407087 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127716
1407077 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127714
1407019 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution
1406953 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127005
1406950 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127695
1406826 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1406848 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127690
1406235 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #127613
1406729 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #126549
1406427 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1405999 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1405957 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #126569
1405703 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #127613
1404759 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1404899 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #125023
1404675 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127626
1404470 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #127613
1404542 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #126367
1403445 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #127498
1404061 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127614
1403858 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127454
1403665 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127328
1402431 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127567
1403265 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution
1402968 dotnet/runtime System.IO.Hashing.Tests.WorkItemExecution
1403076 dotnet/runtime System.Text.Json.Tests.WorkItemExecution
1403089 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #126782
1402127 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127256
1402544 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #127578
1402552 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126367
1402422 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127452
1401886 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127464
1401875 dotnet/runtime System.Runtime.Tests.WorkItemExecution #125437
1401598 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127553
1401627 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127554
1400912 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #125955
1400922 dotnet/runtime System.IO.Hashing.Tests.WorkItemExecution
1400109 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #125061
1400045 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #125023
1399596 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #127497
1399541 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127464
1398689 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #127465
1398771 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127475
1398685 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #126569
1398650 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127106
1398561 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #118616
1398475 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127328
1398351 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127462
1397946 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127451
1397645 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127225
1397430 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127443
1397400 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126569
1397369 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127258
1397217 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #126549
1396376 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126035
1396313 dotnet/runtime System.Runtime.Loader.DefaultContext.Tests.WorkItemExecution
1395529 dotnet/runtime iOS.Device.ExportManagedSymbols.Test.WorkItemExecution #125955
1395131 dotnet/runtime System.Runtime.Loader.RefEmitLoadContext.Tests.WorkItemExecution #127387
1395010 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127238
1394507 dotnet/runtime iOS.Device.Aot.Test.WorkItemExecution #127112
1394426 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127135
Displaying 100 of 112 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 15 112

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