'WriteDump failed hresult: 0x00000000

I'm on raspian, and issue dotnet-dump collect -p (processID Here) And I'm getting

writing full to /home/UserID/core_date_time WriteDump failed - HRESULT: 0X00000000

I've checked, and the process has -X permissions.



Solution 1:[1]

If you get the SDK installed on the device, createdump can be used to dump single file apps.

curl -fsSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh | bash -s -- --no-path --install-dir ~/dotnet-sdk --channel 6.0
~/dotnet-sdk/dotnet tool install --tool-path ~/dotnet-sdk/tools dotnet-dump
DOTNET_ROOT=~/dotnet-sdk ~/dotnet-sdk/tools/dotnet-dump ps

# use the PID of your process
DOTNET_ROOT=~/dotnet-sdk ~/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.4/createdump <pid>

# load the dump into dotnet-dump
DOTNET_ROOT=~/dotnet-sdk ~/dotnet-sdk/tools/dotnet-dump analyze /tmp/coredump.95680

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dustin