diagnostics icon indicating copy to clipboard operation
diagnostics copied to clipboard

dotnet-sos for .NET 9

Open tmds opened this issue 10 months ago • 4 comments

We have a test for debugging .NET apps using lldb and sos. The test has been failing for our .NET 9 builds because there is no sos version that runs on .NET 9 yet.

When will there be a version of sos that runs on .NET 9?

cc @noahfalk @omajid

tmds avatar Apr 09 '24 11:04 tmds

@mikem8361

noahfalk avatar Apr 09 '24 12:04 noahfalk

The current released SOS should work just fine with .NET 9. What exactly is the problem?

mikem8361 avatar Apr 09 '24 16:04 mikem8361

The environment only has .NET 9 available.

The first command the test runs in lldb is dso, and that prints the following error:

Error: Failed to find a supported runtime within /path/to/dotnet_root/shared/Microsoft.NETCore.App/`

tmds avatar Apr 09 '24 16:04 tmds

Sorry, you are right the released SOS tooling doesn't look for .NET 9 for hosting so if that is the only installed runtime you get that error message. The main branch does look for .NET 9. We need to do a tools release to get this fix. We will try to do that soon.

You can work around this by installing .NET 8 or below or building/using "main".

mikem8361 avatar Apr 09 '24 17:04 mikem8361

@mikem8361 do you have an idea when there will be a version of dotnet-sos that includes a net9.0 target on nuget.org?

tmds avatar May 28 '24 03:05 tmds

We are working on doing a tools release with this fix but we are having some infrastructure problems. It will be soon. Sorry for the delay.

mikem8361 avatar May 28 '24 16:05 mikem8361

This will be in the next release which will hopefully be this week or next.

mikem8361 avatar Jun 06 '24 21:06 mikem8361