You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[dotnet-dump] collect permission issue fails collection with HRESULT: 0x00000000 #3423
We're running our .NET services inside Azure Kubernetes Services. To help us with our performance testing we're installing a handful of dotnet tools (e.g. dotnet-dump) into our container using a step in our docker file.
After our nodes in our nodepools upgraded to a newer Linux kernel version 5.10.117.1-2.cm1 -> 5.10.134.1-2.cm1 we started to see the described issue below.
The following command is being executed when logged in to our pod:
dotnet-dump collect -p 1 --diag
We're seeing the following output of the command:
Writing full to /app/core_20220928_161225
Write dump failed - HRESULT: 0x00000000.
The logs show the following issue:
[createdump] open(/proc/1/mem) FAILED 13 (Permission denied)
[createdump] Target process is alive
The expected outcome would be to be able to create dumps using the dotnet-dump tool.
No activity since October 2022 (3+ years). On Linux (non-containerized), dotnet-dump collect works correctly. The two sub-problems were: (1) the createdump EPERM on /proc/PID/mem caused by restrictive kernel Yama LSM / ptrace_scope settings in containers, and (2) the misleading 'HRESULT: 0x00000000' error message. Both have been addressed: modern runtimes (.NET 7+) use GenerateCoreDump3 IPC command which returns actual error messages from createdump, and the createdump code now has improved error messages ('The process or container does not have permissions or access'). Since this is external, I'm closing it as stale at this point.
Activity
mikem8361 commentedon Sep 29, 2022
@hoyosjs can you look at this?
hoyosjs commentedon Sep 29, 2022
There's a thread going on about this. It's a mariner host issue looks like. Will post updates as I can.
leculver commentedon Feb 16, 2026
No activity since October 2022 (3+ years). On Linux (non-containerized), dotnet-dump collect works correctly. The two sub-problems were: (1) the createdump EPERM on /proc/PID/mem caused by restrictive kernel Yama LSM / ptrace_scope settings in containers, and (2) the misleading 'HRESULT: 0x00000000' error message. Both have been addressed: modern runtimes (.NET 7+) use GenerateCoreDump3 IPC command which returns actual error messages from createdump, and the createdump code now has improved error messages ('The process or container does not have permissions or access'). Since this is external, I'm closing it as stale at this point.