RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2032913 - sos: Please capture ld.so diagnostics output
Summary: sos: Please capture ld.so diagnostics output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: sos
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On: 2023422
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-15 13:16 UTC by Florian Weimer
Modified: 2022-11-15 12:54 UTC (History)
8 users (show)

Fixed In Version: sos-4.3-1.el9
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 11:12:24 UTC
Type: Enhancement
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 2812 0 None open [system] Collect glibc tuning decisions 2021-12-30 08:43:50 UTC
Red Hat Issue Tracker RHELPLAN-105889 0 None None None 2021-12-15 13:19:20 UTC
Red Hat Product Errata RHEA-2022:8275 0 None None None 2022-11-15 11:12:38 UTC

Description Florian Weimer 2021-12-15 13:16:48 UTC
Would you please update the sosreport tool so that it captures the output of these commands:

/usr/bin/ld.so --help
/usr/bin/ld.so --list-diagnostics

assuming that /usr/bin/ld.so exists? This data is helpful for diagnosing glibc tuning decisions (such as optimized string function selection).

For testing, you can use glibc-2.34-12.el9 or later.

Comment 1 Pavel Moravec 2021-12-19 18:45:44 UTC
> /usr/bin/ld.so --help

1) Is there something useful in collecting _help_ of a command? Or did you mean --list ? But that does not work without an argument..?

Also I assume the hardcoded path is essential, right?


2) Further, *when* to collect such commands output automatically / by default? sos uses "plugins" - improper term standing for a component responsible for gathering info from some area, like kernel, apache httpd or chronyd. Each plugin is enabled automatically by presence of either a package, or kernel module loaded, or a file present.

Should we collect this iin a new tiny glibc plugin? Or in "system" plugin[1] that is the only one collecting *anything* about glibc ("rpm -V glibc*")? Or in some another plugin?

[1] https://github.com/sosreport/sos/blob/main/sos/report/plugins/system.py


3) Does this require to be in 9.0 already? We are on tight schedule esp. in QE.

Comment 2 Florian Weimer 2021-12-20 07:51:04 UTC
(In reply to Pavel Moravec from comment #1)
> > /usr/bin/ld.so --help
> 
> 1) Is there something useful in collecting _help_ of a command? Or did you
> mean --list ? But that does not work without an argument..?

--help output contains some diagnostic output, too, perhaps in a more digestable form. It shows the search paths being used.

> Also I assume the hardcoded path is essential, right?

You mean /usr/bin/ld.so? I added that to make it clear where the ld.so command comes from (because it is a recent addition), in case you look at this and it's not in your file system yet.

> 2) Further, *when* to collect such commands output automatically / by
> default? sos uses "plugins" - improper term standing for a component
> responsible for gathering info from some area, like kernel, apache httpd or
> chronyd. Each plugin is enabled automatically by presence of either a
> package, or kernel module loaded, or a file present.
> 
> Should we collect this iin a new tiny glibc plugin? Or in "system" plugin[1]
> that is the only one collecting *anything* about glibc ("rpm -V glibc*")? Or
> in some another plugin?

I don't know. There might be additional glibc-specific data to collect in the future.

> 3) Does this require to be in 9.0 already? We are on tight schedule esp. in
> QE.

It's not absolutely required. If necessary, support can ask to run the command manually.

Comment 3 Pavel Moravec 2021-12-30 08:43:50 UTC
Thanks for the feedback.

I raised https://github.com/sosreport/sos/pull/2812, by default sos will start capturing this since RHEL 9.1 .

Comment 4 Pavel Moravec 2022-01-04 07:41:45 UTC
Hello,
isn't subcommand

--list-tunables       list all tunables with minimum and maximum values

also worth to collect? If the intention of this BZ is to improve diagnosing glibc tuning decisions?

Please comment here or ideally in the upstream PR

https://github.com/sosreport/sos/pull/2812#discussion_r777801123

Thanks in advance.

Comment 5 Florian Weimer 2022-01-10 07:17:20 UTC
Siddhesh and I commented on the upstream pull request. Thanks for the suggestion to include --list-tunables as well.

Comment 6 Pavel Moravec 2022-03-18 11:08:43 UTC
Florian,
would you be able to verify the fix once a candidate build for 9.1 is available, please?

Comment 8 Carlos O'Donell 2022-03-28 16:15:29 UTC
(In reply to Pavel Moravec from comment #6)
> Florian,
> would you be able to verify the fix once a candidate build for 9.1 is
> available, please?

Either Florian or I will be able to verify the fix once a candidate build for 9.1 is ready.

Thank you!

Comment 9 Pavel Moravec 2022-03-28 19:05:56 UTC
Thanks for committing to the OtherQA.

Comment 23 errata-xmlrpc 2022-11-15 11:12:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sos bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:8275


Note You need to log in before you can comment on or make changes to this bug.