Skip to content

[ci-scan] Test failure: LoaderClassloaderGenerics Crossgen2 TypeLoadException on Negative002 in R2R_CG2 #133216

Closed as duplicate

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1580505
Build error leg or test failing: coreclr Pri1 Runtime Tests Run R2R_CG2 (linux/windows/osx, x64/arm64/x86) - LoaderClassloaderGenerics
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1579347

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 LoaderClassloaderGenerics runtime test fails on every R2R_CG2 leg (linux-x64/arm64, linux_musl-x64/arm64, windows-x64/x86/arm64, osx-x64) when Crossgen2 compiles the Negative002 test assembly. Crossgen2 aborts with a TypeLoadException while laying out the exception-info lookup table:

Unhandled exception. Internal.TypeSystem.TypeSystemException+TypeLoadException: Failed to load type 'Gen`1<System.__Canon>' from assembly 'Negative002' because the format is invalid
   at Internal.TypeSystem.ThrowHelper.ThrowTypeLoadException(ExceptionStringID, String, String) in /_/src/coreclr/tools/Common/TypeSystem/Common/ThrowHelper.cs:line 17
   at ILCompiler.DependencyAnalysis.ReadyToRun.ExceptionInfoLookupTableNode.LayoutMethodsWithEHInfo() in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ExceptionInfoLookupTableNode.cs:line 95
   at ILCompiler.DependencyAnalysis.ReadyToRun.ExceptionInfoLookupTableNode.ShouldSkipEmittingObjectNode(NodeFactory) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ExceptionInfoLookupTableNode.cs:line 154
Crossgen2 failed with exitcode: 134

Reproduces across the entire R2R_CG2 leg set (51 failed work items in the source build) and persists in the follow-up build #1581443. Absent in build #1578301, first seen in #1579347.

Error Message

{
  "ErrorMessage": "Failed to load type 'Gen`1<System.__Canon>' from assembly 'Negative002' because the format is invalid",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

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


Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

Generated by CI Outer-Loop Failure Scanner · opus48 · 653.2 AIC · ⌖ 11.5 AIC · ⊞ 20.7K · ◷

Report

Summary

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

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Sep 4, 2026
  2. added
    untriaged
    on Sep 4, 2026
  3. dotnet-policy-service commented on Sep 8, 2026

    @dotnet-policy-service
    Contributor

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

  4. removed
    untriaged
    on Sep 8, 2026
  5. locked and limited conversation to collaborators on Oct 9, 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-ReadyToRunblocking-clean-ci

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions