Skip to content

[dotnet-dump] collect permission issue fails collection with HRESULT: 0x00000000 #3423

Closed as not planned

Description

@michasHL

Description

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.

Configuration

root [ / ]# cat /etc/mariner-release
CBL-Mariner 2.0.20220731
MARINER_BUILD_NUMBER=4dba059

root [ / ]# uname -r
5.10.134.1-2.cm1

root [ /app ]# whoami
root

root [ /app ]# ls -all /proc/1/mem
-rw------- 1 root root 0 Sep 28 16:36 /proc/1/mem
root [ / ]# dotnet --info

global.json file:
  Not found

Host:
  Version:      6.0.8
  Architecture: x64
  Commit:       55fb7ef977

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

The app is not a self-contained application.

Regression?

We believe the LINUX kernel version upgrade from 5.10.117.1-2.cm1 -> 5.10.134.1-2.cm1 has caused this issue.

Activity

  1. added
    bug
    on Sep 28, 2022
  2. mikem8361 commented on Sep 29, 2022

    @mikem8361
    Contributor

    @hoyosjs can you look at this?

  3. hoyosjs commented on Sep 29, 2022

    @hoyosjs
    Member

    There's a thread going on about this. It's a mariner host issue looks like. Will post updates as I can.

  4. added this to the Future milestone on Oct 25, 2022
  5. leculver commented on Feb 16, 2026

    @leculver
    Contributor

    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.

  6. locked and limited conversation to collaborators on Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugtracking-external-issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions