Open blushingpenguin opened 3 days ago
Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.
hello @blushingpenguin, thanks for reporting the issue. Can you please clarify what config are you specifying for memory limits? Also .NET 6 would be going out of support soon, so checking if this repros on 8 for you?
@mangod9 I can't check on .NET8 unfortunately, the app isn't (yet) compatible. For memory:
resources:
limits:
memory: 300Mi
requests:
memory: 250Mi
ok thanks. Is this a regression in a 6 servicing release, or is this a new application which is being tried with memory limits. Would be possible to share a dump of the failure?
@mangod9 I could share a dump privately. The regression is in adding newer nodes to the cluster and migrating workloads (they are 16 core / 32 threads vs 6 core / 12 threads). I suspect the difference in core count is involved somewhere -- the base OS of the new servers is ubuntu 24.04 vs 22.04 but they are the exact same containers, they crash on some nodes and not others.
I've tried playing around with GC settings in a container, and the two that make a difference are:
DOTNET_GCHeapHardLimit=10048576
if below 10Mb (tried in 1Mb chunks) then I get a segfault again, but anything higher and it works. Setting the container resource limit to 330Mi also works.
when setting DOTNET_gcServer=0, things work without limits (probably not so interesting)
Description
Running an app in a docker container on microk8s 1.30 fails with a segmentation fault. The segmentation fault does not occur if the RAM limit is removed from the container.
Reproduction Steps
I can reproduce this with several of our (similar) applications that are web apis, but I don't have a good isolated reproduction
Expected behavior
Does not crash
Actual behavior
from app...
collecting a core dump then creating a backtrace with lldb:
Regression?
No response
Known Workarounds
Removing or increasing the container ram limit seems to avoid the problem
Configuration
Microsoft.AspNetCore.App 6.0.33 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.33 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
running in a docker container based on ubuntu:22.04 running on microk8s 1.30 on a server running ubuntu24.04 (amd64)
Other information
No response