Skip to content

.NET 10 runtime internal error with exit code 0x80131506. #122528

Description

@maxima120

Description

I encountered a fatal internal error in the .NET 10 runtime while running a console application.

This is a native crash inside CoreCLR, not a managed exception. Even if the application contains invalid IL or modified framework assemblies, the runtime should not crash with an internal fatal error.

The failure happens at more or less predictable time after start (give or take couple minutes).

The process terminates with:

Application: xx.exe
CoreCLR Version: 10.0.25.52411
.NET Version: 10.0.0
Description: The process was terminated due to an internal error in the .NET Runtime 
    at IP 0x00007FFBE578135D (0x00007FFBE5770000) with exit code 0x80131506.
Faulting application name: xx.exe, version: 1.0.0.0, time stamp: 0x68fa0000
Faulting module name: coreclr.dll, version: 10.0.25.52411, time stamp: 0x68fabec4
Exception code: 0xc0000005
Fault offset: 0x000000000001135d
Faulting process id: 0x5F98
Faulting application start time: 0x1DC6C6AC2C7BA82
Faulting application path: ..Release\net10.0\xx.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0\coreclr.dll
Report Id: 1ab7271f-72c1-41fb-937e-7be990998b49
Faulting package full name: 
Faulting package-relative application ID: 

Reproduction Steps

Unfortunately I cannot provide a minimal repro, but the crash occurs reliably under the following conditions:

.NET 10.0.0 SDK and runtime

Console application

Heavy multithreaded workload, reading from multiple disk binary files. parsing and processing records.

Server GC enabled <-- this appears to be the problem, once switched off the application managed to finish

High allocation rate (tens of millions of objects)

Expected behavior

The runtime should:

Throw a managed exception

The runtime should not:

Crash inside CoreCLR native code

Produce a fatal execution engine error (0x80131506)

Terminate the process without a stack trace

Actual behavior

Fatal error.

Regression?

it most likely is. <-- I changed to .net 9 and got the same problem with Server GC on

Known Workarounds

No response

Configuration

.NET SDK: 10.0.100
Runtime: .NET 10.0.0
OS: Windows 11 x64
GC: Server GC enabled
CPU: 32 logical cores

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-GC-coreclrtenet-reliabilityReliability/stability related issue (stress, load problems, etc.)

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions