Skip to content

"ERROR: No CLR runtime found." analyzing dump taken from Linux .Net 8.0.5 #4686

Closed

Description

@davevans

Description

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]
dotnet-dump --version
8.0.510501+8c08c89a0643d31db91e119b1adb463be3e0ffe5

If I copy the dump to Windows 10 and open in Visual Studio 2022 the dump shows as not having "Heap Information".

dump

Activity

  1. tommcdon commented on May 27, 2024

    @tommcdon
    Member
  2. added this to the 9.0.0 milestone on May 28, 2024
  3. mikem8361 commented on May 28, 2024

    @mikem8361
    Contributor

    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.

  4. davevans commented on May 29, 2024

    @davevans
    Author

    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?

  5. mikem8361 commented on May 29, 2024

    @mikem8361
    Contributor
  6. shanselman commented on May 30, 2024

    @shanselman

    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.

    That's super interesting! Why is that?

    @richlander

  7. mikem8361 commented on May 30, 2024

    @mikem8361
    Contributor

    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.

  8. MRT201 commented on Jun 3, 2024

    @MRT201

    Does the v9 milestone suggest this will work in the future or is it that the error message be improved?

  9. mikem8361 commented on Jun 3, 2024

    @mikem8361
    Contributor

    We are going to improve the error message as soon as possible.

  10. hoyosjs commented on Jun 6, 2024

    @hoyosjs
    Member

    Error message improved by (#4713)

  11. locked and limited conversation to collaborators on Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions