Skip to content

Malformed recursive generic types can cause CrossGen crash or hang #5907

@JohnChen0

Description

@JohnChen0

Test case tests/src/Loader/classloader/generics/regressions/DD117522/Test.csproj contains a malformed infinitely recursive generic type definition. During app execution, this is correctly handled by throwing a TypeLoadException. However, CrossGen isn't able to handle this correctly, and either crashes with a stack overflow (on Windows) or hangs (on Ubuntu). This test case is being temporarily disabled by dotnet/coreclr#5122, but we need to find a proper fix for this in CrossGen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions