Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sos command fails with The ClrRuntime service is required by the Runtime property with .NET 8 on RHEL8 arm64 #4220

Closed
tmds opened this issue Sep 8, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tmds
Copy link
Member

tmds commented Sep 8, 2023

We have a test that checks lldb+sos is working on RHEL .NET builds.

With .NET 8, this test passes on x64 for RHEL8 and RHEL9.
On arm64, the test passes on RHEL9, and on RHEL8 it fails most of the time.

When it fails, it prints a message on the first sos command that is executed against the coredump:

+ lldb --batch -c coredump.237375 --one-line dso
The ClrRuntime service is required by the Runtime property

On a successful run, the The ClrRuntime service is required by the Runtime property is not printed.

I don't know what the message means.
Is there an issue with the coredump which causes sos to not work? Or some issue initializing sos?

cc @mikem8361 @hoyosjs @leculver @omajid

@hoyosjs
Copy link
Member

hoyosjs commented Sep 8, 2023

That means that the DAC that's related to that dump couldn't be loaded. There's a few reasons:

  • it is not on a path thats seen by sos
  • sos initialization can't find a runtime in the dump
  • there's metadata that we use to locate which version of the DAC to load that's missing.

If you can share the dump and the runtime that might be the easiest. Also, you can try logging enable before running any other command to get a bit more information

@tmds
Copy link
Member Author

tmds commented Sep 11, 2023

I was looking in another issue on arm64 RHEL8 today: dotnet/runtime#91864 which was a segfault while writing the dump info.

A build patched with dotnet/runtime#91865 seems to fix this issue as well.

We were probably in a case of:

sos initialization can't find a runtime in the dump

@hoyosjs if this makes sense, you can close this issue.

@tmds
Copy link
Member Author

tmds commented Sep 12, 2023

Fixed by dotnet/runtime#91865

@tmds tmds closed this as completed Sep 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants