diagnostics icon indicating copy to clipboard operation
diagnostics copied to clipboard

gctonative requires IMemoryRegionService

Open kevingosse opened this issue 1 year ago • 3 comments

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.

kevingosse avatar May 25 '23 16:05 kevingosse

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

mikem8361 avatar May 25 '23 17:05 mikem8361

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

kevingosse avatar May 25 '23 18:05 kevingosse

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).

mikem8361 avatar Oct 09 '23 23:10 mikem8361