You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"ERROR: No CLR runtime found." analyzing dump taken from Linux .Net 8.0.5 #4686
I am attempting to analyze a dump taken using dotnet-dump collect from within a Linux (debian) container within AWS EKS. From within the container I am able to run dotnet-dump analyze dumpfile.dmp and then dumpheap -stat and successfully see objects on the heap.
If I copy the dump file off of the container using kubectl cp and re-run dotnet-dump analyze dumpfile.dmp from macos and then dumpheap -stat I get the below error.
ERROR: No CLR runtime found. This means that a .NET runtime module or the DAC for the runtime can not be found or downloaded.
Configuration
The container image FROM dotnet/sdk:8.0-bookworm-slim
dotnet --info
.NET SDK:
Version: 8.0.300
Commit: 326f6e68b2
Workload version: 8.0.300-manifests.c1c70047
MSBuild version: 17.10.4+10fbfbf2e
Runtime Environment:
OS Name: debian
OS Version: 12
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/8.0.300/
Host:
Version: 8.0.5
Architecture: x64
Commit: 087e15321b
.NET SDKs installed:
8.0.300 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
If I understand your scenario properly, you are loading a Linux dump with dotnet-dump analyze on a MacOS machine. That is not supported. Linux dumps can be loaded on Windows, but not MacOS.
We will document and add a better error message for this case.
Thanks for the info re MacOS @mikem8361. As far as analyzing the dump on windows, with dotnet-dump analyze we are able to see the heap with dumpheap, however Visual Studio 2022 on Windows 10 tells us Heap Information is not present. Is it expected?
There is no cross OS DACs that can be hosted on MacOS. Just Windows and just for Linux. We didn't have the resources to develop the any MacOS hosted cross-DACs.
Activity
tommcdon commentedon May 27, 2024
@mikem8361
mikem8361 commentedon May 28, 2024
If I understand your scenario properly, you are loading a Linux dump with
dotnet-dump analyzeon a MacOS machine. That is not supported. Linux dumps can be loaded on Windows, but not MacOS.We will document and add a better error message for this case.
davevans commentedon May 29, 2024
Thanks for the info re MacOS @mikem8361. As far as analyzing the dump on windows, with
dotnet-dump analyzewe are able to see the heap withdumpheap, however Visual Studio 2022 on Windows 10 tells us Heap Information is not present. Is it expected?mikem8361 commentedon May 29, 2024
shanselman commentedon May 30, 2024
That's super interesting! Why is that?
@richlander
mikem8361 commentedon May 30, 2024
There is no cross OS DACs that can be hosted on MacOS. Just Windows and just for Linux. We didn't have the resources to develop the any MacOS hosted cross-DACs.
MRT201 commentedon Jun 3, 2024
Does the v9 milestone suggest this will work in the future or is it that the error message be improved?
mikem8361 commentedon Jun 3, 2024
We are going to improve the error message as soon as possible.
Better dotnet-dump analyze error message for cross OS dumps
hoyosjs commentedon Jun 6, 2024
Error message improved by (#4713)