Skip to content

dotnet-dump collect silently fails if the user running the process does not have permission to write #5245

Open
@xPaw

Description

@xPaw
$ dotnet-dump collect -p 736578

Writing full to /home/xpaw/core_20250211_130126
Complete

But in reality the file was not actually written, because the process I was dumping was running as another user (I ran the dump command as root) which didn't have permissions to write to my home folder. When I changed working directory to /tmp it actually worked.

The tool should report an error if it fails to actually write the file instead of saying complete.

I am using .NET 9.0.102 on Debian 12.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions