-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
dotnet-dump fails with "Core dump generation FAILED 0x80004005" on WSL #548
Comments
dotnet-dump collect (and createdump) is currently not supported on WSL. This is an limitation in WSL (no /proc//mem support) that may be fixed in WSL 2. Issue microsoft/WSL#2028 is related but more about lldb not working. |
Available since Linux 3.2 so it (coreclr code?) should try |
I also receive this error while running in a docker container using the official microsoft core 3.0 sdk docker image
|
Same issue as @phillijw but for .net core 3.1 runtime docker images running on Azure. |
@phillijw, @SidShetye, this issue is about the problems with WSL that cause creating a core dump to fail. Your docker problems are probably because you don't have the SYS_TRACE capability. You can enable that with the --cap-add=SYS_PTRACE or --privileged docker options. See FAQ for more information. |
@mikem8361 I suspect the same. But the docker containers are spawned by Any other diagnostics to debug the working set for an asp.net core 3.1 service in such a situation? We're investigating a |
We are looking into ways for dotnet-dump to take coredumps without using ptrace but we are stilling in the planning stages. I'll let you know when we come up with something to help debug your problem. |
In the end, dotnet-dump collect isn't supported on WSL 1.0 (but it will probably work on WSL 2.0) so i'm going to close this issue. |
@mikem8361 Is there a github issue tracking the above? My issue wasn't WSL but |
Created issue #896 to track this.
|
In WSL environment running Ubuntu 18.04:
dotnet new console
Console.ReadLine()
so that the process doesn't immediately exit.dotnet run
dotnet dump collect --diag -p [PID for the console app]
sudo
does not change the behavior. With or without gives the same results.Expectation: A dump should successfully be collected.
Actual: The
dotnet dump
command fails and prints:In the console app's output, the following message appears:
Additional information
The text was updated successfully, but these errors were encountered: