Skip to content

[ci-scan] Build break: Crossgen2 TypeLoadException 'Gen' from assembly 'b27077' generic explicit layout #133302

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1582971
Build error leg or test failing: runtime-coreclr crossgen2 outerloop (definition 134) — R2R_CG2 Regression_4 leg. Crossgen2 aborts compiling test assembly b27077.

Pipeline: runtime-coreclr crossgen2 outerloop (definition 134), branch main. When Crossgen2 lays out the exception-info lookup table for assembly b27077, it throws a TypeLoadException: the type Gen is a generic type declared with explicit layout, which is invalid. Crossgen2 exits -1073740791 and the R2R_CG2 work item fails. This is a compile-time crossgen2 break, distinct from the runtime failures tracked elsewhere. Reproduces across source build 1582971 and follow-up build 1584221.

Error Details

Unhandled exception. Internal.TypeSystem.TypeSystemException+TypeLoadException: Failed to load type 'Gen' from assembly 'b27077' because generic types cannot have explicit layout
   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 - -1073740791

Error Message

{
  "ErrorMessage": "Failed to load type 'Gen' from assembly 'b27077' because generic types cannot have explicit layout",
  "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
First build it occurred: 1582971
Related: #133216 (distinct Crossgen2 TypeLoadException on 'Negative002' / 'format is invalid')

Duplicate search

Searched open/closed Known Build Error issues and merged PRs for the Gen/b27077/explicit layout signature. Open #133216 tracks a distinct Crossgen2 TypeLoadException (Negative002, format is invalid); Build Analysis matches on the verbatim substring, so this explicit layout signature is filed separately. No fix PR has merged after the source build.


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

Note

Generated by the CI Outer-Loop Failure Scanner agentic workflow (AI-generated content).

Generated by CI Outer-Loop Failure Scanner · opus48 · 457.6 AIC · ⌖ 13 AIC · ⊞ 20.7K ·

Report

Build Repository Test Pull Request
1592131 dotnet/runtime Regression_4.WorkItemExecution
1590362 dotnet/runtime Regression_4.WorkItemExecution

Summary

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

Activity

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

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions