FS#74847 - sprof example as in "man sprof" fails with an assertion failed

Attached to Project: Arch Linux
Opened by Giacomo (delleceste) - Wednesday, 25 May 2022, 06:51 GMT
Last edited by Toolybird (Toolybird) - Friday, 29 July 2022, 03:30 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

create a simple main and a library by copy/pasting the code in

> man sprof

Then execute

> sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile

*exactly* as in the manual page.

You will get:

Inconsistency detected by ld.so: dl-open.c: 929: _dl_open: Assertion `_dl_debug_update (args.nsid)->r_state == RT_CONSISTENT' failed!



Additional info:
* package version(s)

ldd --version
ldd (GNU libc) 2.35

glibc 2.35-5
binutils-2.38-5

* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

See description

Regards
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 29 July 2022, 03:30 GMT
Reason for closing:  Upstream
Comment by Toolybird (Toolybird) - Friday, 29 July 2022, 03:30 GMT
Did you search before filing this against Arch? It's clearly an upstream issue. sprof is from glibc but man page is from the man pages project. I found some references [1][2].

[1] https://stackoverflow.com/questions/47049242
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=22380

Loading...