dotnet / diagnostics

This repository contains the source code for various .NET Core runtime diagnostic tools and documents.
MIT License
1.19k stars 355 forks source link

gctonative requires IMemoryRegionService #3913

Open kevingosse opened 1 year ago

kevingosse commented 1 year ago

I tried the gctonative command in dotnet-dump (which was introduced recently I believe?) and it fails with this message:

The IMemoryRegionService service is required by the MemoryRegionService property

This is a Linux/.NET 6 core dump. I tried opening in Linux and Windows, without any success.

mikem8361 commented 1 year ago

Those commands like gctonative currently only work under windbg/cdb. I think they will work for Linux core dumps under windbg, too.

kevingosse commented 1 year ago

Thanks. Is there a plan to support them in dotnet-dump soon? If not, it may be worth adding a more explicit error message.

mikem8361 commented 1 year ago

On the next tools/SOS release the error message will be a lot more informative.

I'm going to mark this as enhancement/9.0 to implement IMemoryRegionService on Linux/OSX for the gctonative (and other commands that require it).