[Bug 1204710] New: LD_DEBUG=bindings provides no useful output on TW
https://bugzilla.suse.com/show_bug.cgi?id=1204710 Bug ID: 1204710 Summary: LD_DEBUG=bindings provides no useful output on TW Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: martin.wilck@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- LD_DEBUG=bindings provides almost no useful output on Tumbleweed: # rpm -q glibc glibc-2.36-5.1.x86_64 # LD_DEBUG=bindings /bin/ls 19916: 19916: calling init: /lib64/ld-linux-x86-64.so.2 19916: 19916: 19916: calling init: /lib64/libc.so.6 19916: 19916: 19916: calling init: /lib64/libpcre2-8.so.0 19916: 19916: 19916: calling init: /lib64/libcap.so.2 19916: 19916: 19916: calling init: /lib64/libselinux.so.1 19916: 19916: 19916: initialize program: /bin/ls 19916: 19916: 19916: transferring control: /bin/ls 19916: lib64 sbin usr On Leap 15.3, I get lots of useful binding information instead: # LD_DEBUG=bindings /bin/ls 1149: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_gettime' [LINUX_2.6] 1149: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_gettimeofday' [LINUX_2.6] 1149: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_time' [LINUX_2.6] 1149: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_getcpu' [LINUX_2.6] 1149: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_getres' [LINUX_2.6] ... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1204710 https://bugzilla.suse.com/show_bug.cgi?id=1204710#c1 --- Comment #1 from Martin Wilck <martin.wilck@suse.com> --- Michael Matz thinks that this might be related to our use of the "-z now" linker flag. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1204710 https://bugzilla.suse.com/show_bug.cgi?id=1204710#c2 Michael Matz <matz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz@suse.com, | |schwab@suse.com --- Comment #2 from Michael Matz <matz@suse.com> --- Yhat was only speculation, though. I think it's not triggered by that: % cat hello.c #include <stdio.h> int main(void) { printf ("hello\n"); return 0; } % gcc hello.c % readelf -d a.out | grep NOW % LD_DEBUG=bindings ./a.out 19645: 19645: calling init: /lib64/ld-linux-x86-64.so.2 19645: 19645: 19645: calling init: /lib64/libc.so.6 19645: 19645: 19645: initialize program: ./a.out 19645: 19645: 19645: transferring control: ./a.out 19645: hello 19645: 19645: calling fini: ./a.out [0] 19645: So, something in ld.so changed that the bindings debug messages aren't emitted anymore, and if that wasn't by design we have a regression. I can see this behaviour with glibc 2.36 on tumbleweed. With glibc 2.35 (on an older TW): % gcc -Wl,-z,now hello.c % LD_DEBUG=bindings ./a.out 30703: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_clock_gettime' [LINUX_2.6] 30703: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_gettimeofday' [LINUX_2.6] 30703: binding file linux-vdso.so.1 [0] to linux-vdso.so.1 [0]: normal symbol `__vdso_time' [LINUX_2.6] ... 30703: binding file ./a.out [0] to /lib64/libc.so.6 [0]: normal symbol `puts' [GLIBC_2.2.5] ... and so on. This is just to demonstrate the -znow in itself is not the cause, but the glibc version is. CCing Andreas. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1204710 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |schwab@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1204710 https://bugzilla.suse.com/show_bug.cgi?id=1204710#c4 Andreas Schwab <schwab@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Andreas Schwab <schwab@suse.de> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com