dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.95k stars 4.65k forks source link

[NativeAOT] Out of memory reporting on Linux #82337

Open jkotas opened 1 year ago

jkotas commented 1 year ago

Repro

var l = new List<object>();
for (; ; ) l.Add(new object());

Run the native aot compiled binary with with export DOTNET_GCHeapHardLimit=2000000 set

Actual result

Aborted

Expected result

Process is terminating due to OutOfMemoryException

(Reported by partner team.)

ghost commented 1 year ago

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.

Issue Details
### Repro ```csharp var l = new List(); for (; ; ) l.Add(new object()); ``` Run the native aot compiled binary with with `export DOTNET_GCHeapHardLimit=2000000` set ### Actual result `Aborted` ### Expected result `Process is terminating due to OutOfMemoryException` (Reported by partner team.)
Author: jkotas
Assignees: -
Labels: `area-NativeAOT-coreclr`
Milestone: 8.0.0