Bug 36973 - sprof is unable to dlopen shared libraries
Summary: sprof is unable to dlopen shared libraries
Status: NEW
Alias: None
Product: Branch p10
Classification: Unclassified
Component: glibc-utils (show other bugs)
Version: не указана
Hardware: all Linux
: P3 minor
Assignee: Gleb F-Malinovskiy
QA Contact: qa-p10@altlinux.org
URL: https://bugzilla.redhat.com/show_bug....
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-04 13:25 MSK by ildar
Modified: 2023-09-29 12:27 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ildar 2019-07-04 13:25:28 MSK
https://bugzilla.redhat.com/show_bug.cgi?id=458861
Почему-то бага у нас проявляется на glibc-utils-2.27-alt8.x86_64 хотя в апстриме уже давно исправлено.
Comment 1 Dmitry V. Levin 2019-07-04 13:35:48 MSK
(In reply to comment #0)
> https://bugzilla.redhat.com/show_bug.cgi?id=458861

При чём тут glibc 2.5?

> Почему-то бага у нас проявляется на glibc-utils-2.27-alt8.x86_64 хотя в
> апстриме уже давно исправлено.

Может быть, сломали снова?
Comment 2 Dmitry V. Levin 2019-07-04 13:39:37 MSK
А что у вас не работает?
Comment 3 ildar 2019-07-04 14:23:05 MSK
Приблизительно так:
$ export LD_PROFILE_OUTPUT=`pwd`
$ export LD_PROFILE=./rpc.so
$ lua-5.1 test-server.lua
$ ls -l rpc.so.profile
-rw-r--r-- 1 ildar ildar 248200 июл  4 15:33 rpc.so.profile
$ sprof -q $PWD/rpc.so
Inconsistency detected by ld.so: dl-open.c: 630: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
Comment 4 ildar 2019-07-04 14:24:25 MSK
хотя фэйлит и простейший:
$ sprof -q /lib64/libbz2.so.1
Inconsistency detected by ld.so: dl-open.c: 630: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!

а не должен!
Comment 5 Alexander Makeenkov 2023-09-29 12:27:33 MSK
В сизифе ошибка не воспроизводится (версия 2.38.0.23.0e1ef6779a-alt1.x86_64).

Но всё ещё воспроизводится в p10:
$ rpm -q glibc-utils 
glibc-utils-2.32-alt5.x86_64

$ sprof /usr/lib64/libcurl.so.4
Inconsistency detected by ld.so: dl-open.c: 919: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!