Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xPaw opened this issue Feb 11, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xPaw
Copy link

xPaw commented Feb 11, 2025

$ 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.

@xPaw xPaw added the bug Something isn't working label Feb 11, 2025
@mikem8361 mikem8361 self-assigned this Feb 11, 2025
@hoyosjs
Copy link
Member

hoyosjs commented Feb 11, 2025

There's two issues:

  • the IPC should have an error code.
  • The errors are directed stream - it should have displayed on your side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants