-
Notifications
You must be signed in to change notification settings - Fork 385
Closed
dotnet/docs
#44714Labels
Milestone
Description
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
abulhol