dotnet / dotnet/diagnostics

A few SOS commands fail on a Linux single-file app under lldb at process launch

Open
#3,265 0 comments 0 reactions 1 assignee Claimed by @mikem8361 View on GitHub
sos
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 5h
Merged PRs (30d)
35

Description

When lldb stops on a `process launch -s` for a single-file app, the ELF symbol data structures are not initialized yet (RVA's instread of address), so SOS can't find the runtime info structure causing any command that needs to find the runtime (setclrpath, runtimes, etc.) fails. We may be able to detect this in the clrmd ELF reader used to find the runtime info symbol (RVA's vs. addresses).

Reenable the `setclrpath` command in the SOSRunner.cs (around line 927) after this is fixed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.