[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
re-opening ** Changed in: glibc (Ubuntu Focal) Status: Fix Released => New ** Tags added: rls-ff-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
libc6-dbg (2.31-0ubuntu9.9) is broken. No ld-2.31.so exists: $ dpkg -L libc6-dbg | grep /ld-2.31; echo $? 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
This bug was fixed in the package glibc - 2.31-0ubuntu9.9 --- glibc (2.31-0ubuntu9.9) focal; urgency=medium * Disable testsuite on riscv64. It is failing maths tests intermittently in ways that cannot be a glibc regression and is disabled in later series anyway. glibc (2.31-0ubuntu9.8) focal; urgency=medium * Update for 20.04. (LP: #1951033) [ Balint Reczey ] * Cherry-pick upstream patch to fix building with -moutline-atomics * Prevent rare deadlock in pthread_cond_signal (LP: #1899800) [ Matthias Klose ] * Revert: Use DH_COMPAT=8 for dh_strip to fix debug sections for valgrind. Enables debugging ld.so related issues. (LP: #1918035) * Don't strip ld.so on armhf. (LP: #1927192) [ Gunnar Hjalmarsson ] * d/local/usr_sbin/update-locale: improve sanity checks. (LP: #1892825) [ Heitor Alves de Siqueira ] * d/p/u/git-lp1928508-reversing-calculation-of-__x86_shared_non_temporal.patch: - Fix memcpy() performance regression on x86 AMD systems (LP: #1928508) [ Aurelien Jarno ] * debian/debhelper.in/libc.preinst: drop the check for kernel release > 255 now that glibc and preinstall script are fixed. (LP: #1962225) [ Michael Hudson-Doyle ] * libc6 on arm64 is now built with -moutline-atomics so libc6-lse can now be an empty package that is safe to remove. (LP: #1912652) * d/patches/u/aarch64-memcpy-improvements.patch: Backport memcpy improvements. (LP: #1951032) * Add test-float64x-yn to xfails on riscv64. -- Michael Hudson-Doyle Thu, 07 Apr 2022 13:24:41 +1200 ** Changed in: glibc (Ubuntu Focal) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
verified: root@focal-vm:~# dpkg -l libc6-dbg | grep ^ii ii libc6-dbg:amd64 2.31-0ubuntu9.7 amd64GNU C Library: detached debugging symbols root@focal-vm:~# gdb -q /bin/date Reading symbols from /bin/date... (No debugging symbols found in /bin/date) (gdb) starti Starting program: /usr/bin/date Program stopped. 0x77fd0100 in ?? () from /lib64/ld-linux-x86-64.so.2 (gdb) br _dl_debug_state Breakpoint 1 at 0x77fe11d0 (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /usr/bin/date Breakpoint 1, 0x77fe11d0 in _dl_debug_state () from /lib64/ld-linux-x86-64.so.2 (gdb) bt #0 0x77fe11d0 in _dl_debug_state () from /lib64/ld-linux-x86-64.so.2 #1 0x77fd2fd1 in ?? () from /lib64/ld-linux-x86-64.so.2 #2 0x77febc3b in ?? () from /lib64/ld-linux-x86-64.so.2 #3 0x77fd104c in ?? () from /lib64/ld-linux-x86-64.so.2 #4 0x77fd0108 in ?? () from /lib64/ld-linux-x86-64.so.2 #5 0x0001 in ?? () #6 0x7fffe8e9 in ?? () #7 0x in ?? () (gdb) quit A debugging session is active. Inferior 1 [process 13368] will be killed. Quit anyway? (y or n) y root@focal-vm:~# apt install --allow-downgrades -t focal-proposed libc6-dbg [...] Unpacking libc6-dbg:amd64 (2.31-0ubuntu9.9) over (2.31-0ubuntu9.7) ... [...] root@focal-vm:~# gdb -q /bin/date Reading symbols from /bin/date... (No debugging symbols found in /bin/date) (gdb) starti Starting program: /usr/bin/date Program stopped. 0x77fd0100 in _start () from /lib64/ld-linux-x86-64.so.2 (gdb) br _dl_debug_state Breakpoint 1 at 0x77fe11e0: file dl-debug.c, line 73. (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) n Program not restarted. (gdb) c Continuing. Breakpoint 1, __GI__dl_debug_state () at dl-debug.c:73 73 dl-debug.c: No such file or directory. (gdb) bt #0 __GI__dl_debug_state () at dl-debug.c:73 #1 0x77fd2fd1 in dl_main (phdr=, phnum=, user_entry=, auxv=) at rtld.c:1661 #2 0x77febc4b in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffe6f0, dl_main=dl_main@entry=0x77fd15e0 ) at ../elf/dl-sysdep.c:252 #3 0x77fd104c in _dl_start_final (arg=0x7fffe6f0) at rtld.c:449 #4 _dl_start (arg=0x7fffe6f0) at rtld.c:539 #5 0x77fd0108 in _start () from /lib64/ld-linux-x86-64.so.2 #6 0x0001 in ?? () #7 0x7fffe8e9 in ?? () #8 0x in ?? () (gdb) Quit ** Tags removed: verification-needed verification-needed-focal ** Tags added: verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
** Changed in: glibc (Ubuntu Hirsute) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
Hello Ppluzhnikov-google, or anyone else affected, Accepted glibc into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/glibc/2.31-0ubuntu9.5 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-focal. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Tags removed: verification-done verification-done-focal ** Tags added: verification-needed verification-needed-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
Verified: root@focal:~# dpkg-query -W libc6 libc6:amd64 2.31-0ubuntu9.2 root@focal:~# gdb -q /bin/date Reading symbols from /bin/date... (No debugging symbols found in /bin/date) (gdb) starti Starting program: /usr/bin/date Program stopped. 0x77fd0100 in ?? () from /lib64/ld-linux-x86-64.so.2 (gdb) br _dl_debug_state Breakpoint 1 at 0x77fe11d0 (gdb) c Continuing. Breakpoint 1, 0x77fe11d0 in _dl_debug_state () from /lib64/ld-linux-x86-64.so.2 (gdb) bt #0 0x77fe11d0 in _dl_debug_state () from /lib64/ld-linux-x86-64.so.2 #1 0x77fd2fd1 in ?? () from /lib64/ld-linux-x86-64.so.2 #2 0x77febc3b in ?? () from /lib64/ld-linux-x86-64.so.2 #3 0x77fd104c in ?? () from /lib64/ld-linux-x86-64.so.2 #4 0x77fd0108 in ?? () from /lib64/ld-linux-x86-64.so.2 #5 0x0001 in ?? () #6 0x7fffe8f2 in ?? () #7 0x in ?? () root@focal:~# apt install -qq libc6/focal-proposed libc-bin/focal-proposed locales/focal-proposed libc6-dev/focal-proposed libc6-dbg/focal-proposed libc-dev-bin/focal-proposed [...] root@focal:~# dpkg-query -W libc6 libc6:amd64 2.31-0ubuntu9.4 root@focal:~# gdb -q /bin/date Reading symbols from /bin/date... (No debugging symbols found in /bin/date) (gdb) starti Starting program: /usr/bin/date Program stopped. 0x77fd0100 in _start () from /lib64/ld-linux-x86-64.so.2 (gdb) b _dl_debug_state Breakpoint 1 at 0x77fe11e0: file dl-debug.c, line 73. (gdb) c Continuing. Breakpoint 1, __GI__dl_debug_state () at dl-debug.c:73 73 dl-debug.c: No such file or directory. (gdb) bt #0 __GI__dl_debug_state () at dl-debug.c:73 #1 0x77fd2fd1 in dl_main (phdr=, phnum=, user_entry=, auxv=) at rtld.c:1661 #2 0x77febc4b in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffe700, dl_main=dl_main@entry=0x77fd15e0 ) at ../elf/dl-sysdep.c:252 #3 0x77fd104c in _dl_start_final (arg=0x7fffe700) at rtld.c:449 #4 _dl_start (arg=0x7fffe700) at rtld.c:539 #5 0x77fd0108 in _start () from /lib64/ld-linux-x86-64.so.2 #6 0x0001 in ?? () #7 0x7fffe8f2 in ?? () #8 0x in ?? () ** Tags removed: verification-needed verification-needed-focal ** Tags added: verification-done verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
Hello Ppluzhnikov-google, or anyone else affected, Accepted glibc into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/glibc/2.31-0ubuntu9.4 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-focal. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: glibc (Ubuntu Focal) Status: In Progress => Fix Committed ** Tags added: verification-needed verification-needed-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
** Changed in: glibc (Ubuntu Groovy) Status: New => Won't Fix ** Changed in: glibc (Ubuntu Focal) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
Hi, thanks for reporting and for fixing this! Unfortunately, I'm on Ubuntu 21.04 where the fix hasn't arrived yet as we're still on 2.33-0ubuntu5 [1], and I was wondering if it could be possible to release at least the update to 2.33-0ubuntu6 in there as well, so that we can have sane stack traces again without waiting for the 21.10 release (which I see already have 2.33-0ubuntu9 [2]). WDYT? Would that be possible? Thanks in advance! [1] https://packages.ubuntu.com/source/hirsute/glibc [2] https://packages.ubuntu.com/source/impish/glibc -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
** Description changed: + [Impact] + + * Debug files for ld-linux are not found by gdb making debugging + programs harder. + + [Test Plan] + + * Run a gdb debugging session and observe symbols from ld-linux shown + properly: + + root@ii:~# gdb -q /bin/date + Reading symbols from /bin/date... + Download failed: Function not implemented. Continuing without debug info for /bin/date. + (No debugging symbols found in /bin/date) + (gdb) starti + Starting program: /usr/bin/date + Download failed: Function not implemented. Continuing without debug info for /root/system-supplied DSO at 0x77fc6000. + + Program stopped. + 0x77fc90d0 in _start () from /lib64/ld-linux-x86-64.so.2 + (gdb) b _dl_debug_state + Download failed: Function not implemented. Continuing without source file ./elf/dl-debug.c. + Breakpoint 1 at 0x77fd9fc0: file dl-debug.c, line 73. + (gdb) c + Continuing. + + Breakpoint 1, __GI__dl_debug_state () at dl-debug.c:73 + Download failed: Function not implemented. Continuing without source file ./elf/dl-debug.c. + 73dl-debug.c: No such file or directory. + (gdb) bt + #0 __GI__dl_debug_state () at dl-debug.c:73 + #1 0x77fcc18e in dl_main (phdr=, phnum=, user_entry=, auxv=) at rtld.c:1810 + #2 0x77fe73df in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffe5c0, dl_main=dl_main@entry=0x77fca610 ) at ../elf/dl-sysdep.c:250 + #3 0x77fca11a in _dl_start_final (arg=0x7fffe5c0) at rtld.c:490 + #4 _dl_start (arg=0x7fffe5c0) at rtld.c:583 + #5 0x77fc90d8 in _start () from /lib64/ld-linux-x86-64.so.2 + #6 0x0001 in ?? () + #7 0x7fffe7fa in ?? () + #8 0x in ?? () + + + [Where problems could occur] + + * The fix is dropping using DH_COMPAT=8 for dh_strip. This override for + compat level was in place to work around a valgrind issue ( + https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677876 ) that has been + fixed already in Ubuntu 18.04 and later releases. Almost all other + packages use the default compat level for dh_strip thus there is no + expected problem to occur. + + [Original Bug Text] + lsb_release -rd Description:Ubuntu 20.04.2 LTS Release:20.04 Using gdb 9.2-0ubuntu1~20.04, libc6 and libc6-dbg 2.31-0ubuntu9.2 gdb -q /bin/date Reading symbols from /bin/date... (No debugging symbols found in /bin/date) (gdb) starti Starting program: /usr/bin/date Program stopped. 0x77fd0100 in ?? () from /lib64/ld-linux-x86-64.so.2 (gdb) b _dl_debug_state Breakpoint 1 at 0x77fe11d0 (gdb) c Continuing. Breakpoint 1, 0x77fe11d0 in _dl_debug_state () from /lib64/ld-linux-x86-64.so.2 (gdb) bt #0 0x77fe11d0 in _dl_debug_state () from /lib64/ld-linux-x86-64.so.2 #1 0x77fd2fd1 in ?? () from /lib64/ld-linux-x86-64.so.2 #2 0x77febc3b in ?? () from /lib64/ld-linux-x86-64.so.2 #3 0x77fd104c in ?? () from /lib64/ld-linux-x86-64.so.2 #4 0x77fd0108 in ?? () from /lib64/ld-linux-x86-64.so.2 #5 0x0001 in ?? () #6 0x7fffe58c in ?? () #7 0x in ?? () Note that debug info for ld-linux is missing despite libc6-dbg being installed. (gdb) disable 1 (gdb) catch syscall exit_group Catchpoint 2 (syscall 'exit_group' [231]) (gdb) c Continuing. Sat Mar 6 22:47:08 PST 2021 Catchpoint 2 (call to syscall exit_group), __GI__exit (status=status@entry=0) at ../sysdeps/unix/sysv/linux/_exit.c:31 31 ../sysdeps/unix/sysv/linux/_exit.c: No such file or directory. Note that debug info for `libc.so.6` was loaded correctly, but debug info for ld-linux was not. (gdb) info shared FromTo Syms Read Shared Object Library 0x77fd0100 0x77ff2674 Yes (*) /lib64/ld-linux-x86-64.so.2 0x77df4630 0x77f6920d Yes /lib/x86_64-linux-gnu/libc.so.6 (*): Shared library is missing debugging information. As far as I can tell, this is happening because libc6-dbg installs ld-2.31.so into the wrong place: dpkg -L libc6-dbg | grep /ld-2.31 /usr/lib/debug/lib/libc6-prof/x86_64-linux-gnu/ld-2.31.so /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.31.so Since ld-linux resolves to /lib64/ld-linux-x86-64.so.2, GDB looks for debug symbols in the following paths: /lib64/.debug/ld-2.31.so /usr/lib/debug/lib64/ld-2.31.so /usr/lib/x86_64-linux-gnu/.debug/ld-2.31.so /usr/lib/debug/usr/lib/x86_64-linux-gnu/ld-2.31.so /usr/lib/x86_64-linux-gnu/.debug/ld-2.31.so /usr/lib/debug/usr/lib/x86_64-linux-gnu/ld-2.31.so None of these matches the actual installed path, so debug symbols are not loaded. P.S. Manually adding symbols via add-symbol-file /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.31.so works fine, but this should be automatic. P.P.S. After running sudo mkdir
[Bug 1918035] Re: ld-2.31.so is not correctly packaged in libc6-dbg
Fixed in 2.33-0ubuntu6. ** Also affects: glibc (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: glibc (Ubuntu Hirsute) Importance: Undecided Status: New ** Also affects: glibc (Ubuntu Groovy) Importance: Undecided Status: New ** Changed in: glibc (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1918035 Title: ld-2.31.so is not correctly packaged in libc6-dbg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1918035/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs