Repository navigation
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1584279
Build error leg or test failing: runtime-coreclr outerloop (definition 108) — LoaderClassloaderGenerics work item, R2R_CG2 legs. Crossgen2 aborts (exit code 134, SIGABRT) while compiling the R2R image.
Pipeline: runtime-coreclr outerloop (definition 108), branch main. During ReadyToRun compilation of the LoaderClassloaderGenerics test, Crossgen2 throws a TypeLoadException while computing the instance layout of Gen1(System.__Canon)from assemblyNegative002 (because the format is invalid), thrown from MetadataFieldLayoutAlgorithm.ComputeInstanceLayoutviaCompilerTypeSystemContext.EnsureLoadableType. The process aborts with exit code 134. This is a compile-time crossgen2 break, distinct from the TypeMapMetadata.CreateFromAssembly/Failed to load assembly 'TypeMapApp'` crossgen2 break tracked in open #133303. Reproduces across source build 1584279 and follow-up build 1584492, on every R2R_CG2 leg (linux x64/arm64, linux_musl x64, osx, windows x86).
Error Details
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 Internal.TypeSystem.MetadataFieldLayoutAlgorithm.ComputeInstanceLayout(DefType, InstanceLayoutKind) in /_/src/coreclr/tools/Common/TypeSystem/Common/MetadataFieldLayoutAlgorithm.cs:line 78
at Internal.TypeSystem.DefType.ComputeInstanceLayout(InstanceLayoutKind) in /_/src/coreclr/tools/Common/TypeSystem/Common/DefType.FieldLayout.cs:line 505
at ILCompiler.CompilerTypeSystemContext.EnsureLoadableTypeUncached(TypeDesc) in /_/src/coreclr/tools/Common/Compiler/CompilerTypeSystemContext.Validation.cs:line 366
at ILCompiler.CompilerTypeSystemContext.EnsureLoadableType(TypeDesc) in /_/src/coreclr/tools/Common/Compiler/CompilerTypeSystemContext.Validation.cs:line 83
Crossgen2 failed with exitcode: 134
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
First build it occurred: 1584279
Related: #133303 (distinct compile-time crossgen2 TypeMapMetadata.CreateFromAssembly break)
Duplicate search
Searched open/closed Known Build Error issues and merged PRs for the Negative002 / Gen1(System.__Canon)/ crossgen2TypeLoadException signatures. Open dotnet/runtime#133303 tracks a different compile-time crossgen2 break (Failed to load assembly 'TypeMapApp'fromTypeMapMetadata.CreateFromAssembly). No open KBE matches this Negative002invalid-formatTypeLoadException`, and 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 · 990.8 AIC · ⌖ 13.1 AIC · ⊞ 20.7K · ◷
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 0 |
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
dotnet-policy-service commentedon Sep 8, 2026
Tagging subscribers to this area: @dotnet/crossgen-contrib
See info in area-owners.md if you want to be subscribed.