Skip to content

dotnet-dump not working when process run as userΒ #4375

@valeriob

Description

@valeriob

Hi,
i think that collecting dumps in linux is still not really polished, i'm on Ubuntu 20.04 and dotnet 7, this is the process :

Run a dotnet7 application as user, in another console try to run
dotnet-dump collect -p
it fails with :

Writing full to /home/user/core_20231031_102955
[createdump] The process or container does not have permissions or access: open(/proc/7873/mem) FAILED Permission denied (13)
[createdump] Failure took 1ms

After 2h of reading and trying different things, the only way to collect a dump was to run the process as root, and run the dotnet-dump as root as well.

I did not find anything usefull in the docs, everybody talks about containers, and it was not usefull.
Thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions