Skip to content

ILC KeyNotFoundException in RuntimeFieldHandleNode.GetDehydratableData compiling NativeAOT tests #132266

Closed

Description

@jakobbotsch

Example pipeline run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1550864&view=results
Example console log: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/1550864/logs/150

2026-08-12T22:28:57.9546310Z     Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key '[catch2_r]<GlobalName>.$$method0x600000e-3' was not present in the dictionary.
2026-08-12T22:28:57.9546943Z        at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
2026-08-12T22:28:57.9556549Z        at ILCompiler.DependencyAnalysis.RuntimeFieldHandleNode.GetDehydratableData(NodeFactory factory, Boolean relocsOnly) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/RuntimeFieldHandleNode.cs:line 50
2026-08-12T22:28:57.9625457Z        at ILCompiler.DependencyAnalysis.DehydratableObjectNode.GetData(NodeFactory factory, Boolean relocsOnly) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/DehydratableObjectNode.cs:line 19
2026-08-12T22:28:57.9687834Z        at ILCompiler.ObjectWriter.ObjectWriter.EmitObject(Stream outputFileStream, IReadOnlyCollection`1 nodes, IObjectDumper dumper, Logger logger) in /_/src/coreclr/tools/Common/Compiler/ObjectWriter/ObjectWriter.cs:line 391
2026-08-12T22:28:57.9711374Z        at ILCompiler.ObjectWriter.ObjectWriter.EmitObject(String objectFilePath, IReadOnlyCollection`1 nodes, NodeFactory factory, ObjectWritingOptions options, IObjectDumper dumper, Logger logger) in /_/src/coreclr/tools/Common/Compiler/ObjectWriter/ObjectWriter.cs:line 719
2026-08-12T22:28:57.9814239Z        at ILCompiler.RyuJitCompilation.CompileInternal(String outputFile, ObjectDumper dumper) in /_/src/coreclr/tools/aot/ILCompiler.RyuJit/Compiler/RyuJitCompilation.cs:line 119
2026-08-12T22:28:57.9840738Z        at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 553
2026-08-12T22:28:57.9856045Z        at ILCompiler.Program.Run() in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 650
2026-08-12T22:28:57.9931177Z        at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass263_0.<.ctor>b__0(ParseResult result) in /_/src/coreclr/tools/aot/ILCompiler/ILCompilerRootCommand.cs:line 319
2026-08-12T22:28:57.9937155Z        at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
2026-08-12T22:28:57.9966808Z        at ILCompiler.Program.Main(String[] args) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 842
2026-08-12T22:28:58.8491227Z       GenerateHWIntrinsicTests_X86 -> D:\a\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\JIT\HardwareIntrinsics\X86_Avx512\Avx512F\Avx512F_ro\GenerateHWIntrinsicTests\GenerateHWIntrinsicTests_X86.dll
2026-08-12T22:28:58.8734222Z     
2026-08-12T22:28:58.8740515Z     Build succeeded.
2026-08-12T22:28:58.8744502Z         0 Warning(s)
2026-08-12T22:28:58.8745618Z         0 Error(s)
2026-08-12T22:28:58.8746798Z     
2026-08-12T22:28:58.8747223Z     Time Elapsed 00:00:03.82
2026-08-12T22:28:59.5309674Z     D:\a\_work\1\s\.dotnet
2026-08-12T22:29:07.2265323Z     Avx512F_ro -> D:\a\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\JIT\HardwareIntrinsics\X86_Avx512\Avx512F\Avx512F_ro\X86_Avx512F_ro.dll
2026-08-12T22:29:07.8948584Z     D:\a\_work\1\s\.dotnet
2026-08-12T22:29:08.2251133Z     
2026-08-12T22:29:09.1073645Z ##[error]artifacts\bin\coreclr\windows.x64.Checked\build\Microsoft.NETCore.Native.targets(357,5): error MSB3073: The command ""D:\a\_work\1\s\artifacts\bin\coreclr\windows.x64.Checked\x64\ilc\\ilc" @"D:\a\_work\1\s\artifacts\tests\coreclr/obj/windows.x64.Checked/Managed/JIT\Directed\Directed_r\native\Directed_r.ilc.rsp"" exited with code 57005. [D:\a\_work\1\s\src\tests\JIT\Directed\Directed_r.csproj]

Fallout from #132101? cc @jkoritzinsky

Known Issue Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

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

{
  "ErrorMessage": "RuntimeFieldHandleNode.GetDehydratableData",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1550864
Error message validated: [RuntimeFieldHandleNode.GetDehydratableData]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/19/2026 1:48:12 PM UTC

Report

Build Repository Step Name Console log Pull Request
1561339 dotnet/runtime Build Tests Log
1561245 dotnet/runtime Build Tests Log
1560773 dotnet/runtime Build Tests Log
1560448 dotnet/runtime Build Tests Log
1560149 dotnet/runtime Build Tests Log
1559822 dotnet/runtime Build Tests Log
1559686 dotnet/runtime Build Tests Log
1559317 dotnet/runtime Build Tests Log
1550864 dotnet/runtime Build Tests Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
4 8 9

Activity

  1. added
    untriaged
    on Aug 13, 2026
  2. dotnet-policy-service commented on Aug 13, 2026

    @dotnet-policy-service
    Contributor

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

  3. changed the title [-]Directed tests fail to build in runtime-nativeaot-outerloop[/-] [+]ILC KeyNotFoundException in RuntimeFieldHandleNode.GetDehydratableData compiling NativeAOT tests[/+] on Aug 19, 2026
  4. added
    Known Build Error
    blocking-clean-ci
    on Aug 19, 2026
  5. removed
    untriaged
    on Aug 21, 2026
  6. locked and limited conversation to collaborators on Sep 20, 2026
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 Errorarea-NativeAOT-coreclrblocking-clean-ci

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions