Description
On a RapspberryPI 3B+ with Raspbian OS (ARM32) I'm running a self-contained ASP.NET Core 3.0 app and currently investigating debugging it. The command and error message are as follows
pi@raspberrypi:~ $ sudo /home/pi/.dotnet/tools/dotnet-dump collect -p <pid>
Writing minidump with heap to /home/pi/core_20191118_083149
Core dump generation FAILED 0x80004005
Each time the command is run it results in what seems to be an orphaned process, which I either kill with sudo kill -9 <newPid>
or have to restart the host application. Unlike one of the other related issues I found the dump file is not created.
In trying to understand the current landscape of .NET Core debugging, I've tried using both lldb and dotnet-dump for analyzing dump files, and tried creating dump files using gcore, dotnet-dump, and createdump with no success thus far. I've also tried live-debugging in lldb with no success (tried versions 5.0, 6.0, and the current 7.0.1). I thought using the dotnet-dump tool would eliminate any versioning issues between the various dump generation/analysis methods and the host process but I'm stuck on the issue described above. In all other cases I've been able to generate dump files, load them, load the sos plugin, but running an actual SOS command always fails with a load issue on one of the lib core so files, regardless of what I setclrpath
to. It seems like the wild, wild west for .NET Core debugging - little, sparse, and out-dated documentation. I decided to start here but any help is much appreciated. I have several other questions to try and navigate all the information I've read, what is the best way to surface those questions?