Skip to content

Linux-x64 Runtime CLR Corruption #123334

@stonstad

Description

@stonstad

Description

After upgrading from .NET 9.0 to 10.0, I have seen a consistent stream of runtime errors which appear to indicate type and runtime corruption in the CLR. Here is one example of an exception I am seeing.

Exception Message: "No parameterless constructor defined for type 'y.talMovingInHorizontalPlane'."
Exception Stack Trace: "Error Resolving StackTrace: Format of the executable (.exe) or library (.dll) is invalid."

'y.talMovingInHorizontalPlane'' isn't a valid type in my code and it likely refers to a public bool field named "IsOrbitalMovingInHorizontalPlane". The truncation and/or name corruption is suggestive of memory corruption.

This behavior does not manifest on windows-64. It does consistently manifest on linux-x64, via an Azure App Service configured for Linux and .NET 10.0.

Reproduction Steps

Unknown at this time.

Expected behavior

The runtime should not throw random exceptions with corrupt type names when running on Linux-64.

Actual behavior

The runtime throws random exceptions with corrupt type names. The associated stack trace is "Error Resolving StackTrace: Format of the executable (.exe) or library (.dll) is invalid.". The errors are seemingly random and involve non-sensical concepts, such as a bool field missing a parameterless constructor.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions