diagnostics icon indicating copy to clipboard operation
diagnostics copied to clipboard

WinDbg Linux dump "No CLR runtime found"

Open ysiivan opened this issue 9 months ago • 0 comments

WinDbg some SOS commands fail with "No CLR runtime found"

0:000> !dumpheap -stat
 Error: 0 : Microsoft.Diagnostics.DebugServices.CommandNotFoundException: No CLR runtime found.
This means that a .NET runtime module or the DAC for the runtime can not be found, loaded or downloaded.
For more information see https://go.microsoft.com/fwlink/?linkid=2135652
   at Microsoft.Diagnostics.DebugServices.Implementation.CommandService.Execute(String commandName, String[] commandLineArray, IServiceProvider services)
   at Microsoft.Diagnostics.DebugServices.Implementation.CommandService.Execute(String commandName, String commandArguments, IServiceProvider services)
   at SOS.Extensions.HostServices.DispatchCommand(IntPtr self, String commandName, String commandArguments, Boolean displayCommandNotFound)
No CLR runtime found.
This means that a .NET runtime module or the DAC for the runtime can not be found, loaded or downloaded.
For more information see https://go.microsoft.com/fwlink/?linkid=2135652
0:000> !sosstatus
Target OS: LINUX Architecture: X64 ProcessId: 1 (0x1)
    #0 .NET Core runtime 8.0.1224.60305 at 00007F9BCE5F8000 size 0069C000 index 1f073923a95a35717d456956d6b0194f3f3f360d
    Runtime module path: /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.12/libcoreclr.so
        Exports:
            DotNetRuntimeInfo       : <NO SYMBOL>
            g_dacTable              : 00007F9BCECA6E48
            DotNetRuntimeDebugHeader: <NO SYMBOL>
SpecialDiagInfoHeader   : 00007FFFFFF10000
    Signature:              DIAGINFOHEADER
    Version:                2
    ExceptionRecordAddress: 0000000000000000
    RuntimeBaseAddress:     00007F9BCE5F8000
    Exports:
        DotNetRuntimeInfo       : <NO SYMBOL>
        g_dacTable              : 00007F9BCECA6E48
        DotNetRuntimeDebugHeader: <NO SYMBOL>
Current symbol store settings:
-> Directory: C:\dumps\20250317-<redacted>\core_20250310_134844\symbols
Extensions loaded:
-> 9.0.607501+a651406e39038aef1dbc7c8097b52953284dba27 C:\Users\redacted\.dotnet\sos\Microsoft.Diagnostics.ExtensionCommands.dll
GC memory usage for managed SOS components: 1,764,944 bytes

Configuration

WinDbg (windows store installed) on Windows 11 VM Dump from a Debian based .NET 8 K8s pod

Other information

Same SOS commands appear to work with dotnet-dump analyze on the same dump file.

ysiivan avatar Mar 24 '25 22:03 ysiivan