Skip to content

[ci-scan] Build break: ILC KeyNotFoundException in RuntimeFieldHandleNode.GetDehydratableData compiling NativeAOT tests #132392

Closed as duplicate

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1554725
Build error leg or test failing: linux-x64 Checked NativeAOT_Pri1 - Build Tests (src/tests/JIT/Directed/Directed_d.csproj)

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

The NativeAOT test build (Build Tests task, pipeline runtime-nativeaot-outerloop, definition 265) fails on multiple platforms because ILC (the ILCompiler) aborts with an unhandled KeyNotFoundException while emitting object data for a RuntimeFieldHandleNode. ILC exits with code 134 (SIGABRT), which surfaces as error MSB3073 from Microsoft.NETCore.Native.targets.

Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key '[catch2_d]<GlobalName>.$$method0x600000e-3' was not present in the dictionary.
   at ILCompiler.DependencyAnalysis.RuntimeFieldHandleNode.GetDehydratableData(NodeFactory factory, Boolean relocsOnly) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/RuntimeFieldHandleNode.cs:line 50
   at ILCompiler.DependencyAnalysis.DehydratableObjectNode.GetData(NodeFactory factory, Boolean relocsOnly) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/DehydratableObjectNode.cs:line 19
   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
   at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 553
   at ILCompiler.Program.Run() in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 650
   at ILCompiler.Program.Main(String[] args) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 842

artifacts/bin/coreclr/linux.x64.Checked/build/Microsoft.NETCore.Native.targets(357,5): error MSB3073: The command "...ilc @...Directed_d.ilc.rsp" exited with code 134. [/__w/1/s/src/tests/JIT/Directed/Directed_d.csproj]

Occurs across linux-x64, linux-arm64, windows-x64, windows-x86 Checked NativeAOT_Pri1 legs.

First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1550864 (2026-08-13); the immediately preceding build 1549795 (2026-08-12) built the NativeAOT tests cleanly. Signature is present in the follow-up build 1554894.

Error Message

{
  "ErrorMessage": "at ILCompiler.DependencyAnalysis.RuntimeFieldHandleNode.GetDehydratableData(NodeFactory factory, Boolean relocsOnly)",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 2 hits in failure.log

Generated by CI Outer-Loop Failure Scanner · opus48 · 684.1 AIC · ⌖ 19.2 AIC · ⊞ 20.5K · ◷

Report

Build Repository Step Name Console log Pull Request
1558545 dotnet/runtime Build Tests Log
1558180 dotnet/runtime Build Tests Log
1558024 dotnet/runtime Build Tests Log
1556859 dotnet/runtime Build Tests Log
1556414 dotnet/runtime Build Tests Log
1556238 dotnet/runtime Build Tests Log
1555539 dotnet/runtime Build Tests Log #132230
1555336 dotnet/runtime Build Tests Log

Summary

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

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Aug 17, 2026
  2. added
    untriaged
    on Aug 17, 2026
  3. dotnet-policy-service commented on Aug 17, 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.

  4. removed
    untriaged
    on Aug 19, 2026
  5. locked and limited conversation to collaborators on Sep 19, 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 Erroragentic-workflowsarea-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