Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
Hi, here it is: Log started: 2023-07-06 15:18:56 (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 597541 files and directories currently installed.) Preparing to unpack .../debianutils_5.7-0.5_amd64.deb ... Unpacking debianutils (5.7-0.5) over (5.7-0.4) ... Setting up debianutils (5.7-0.5) ... (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 597541 files and directories currently installed.) Preparing to unpack .../findutils_4.9.0-5_amd64.deb ... Unpacking findutils (4.9.0-5) over (4.9.0-4) ... Setting up findutils (4.9.0-5) ... (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 597541 files and directories currently installed.) Preparing to unpack .../0-libc-l10n_2.37-3_all.deb ... Unpacking libc-l10n (2.37-3) over (2.36-9) ... Preparing to unpack .../1-libc6-dbg_2.37-3_amd64.deb ... Unpacking libc6-dbg:amd64 (2.37-3) over (2.36-9) ... Preparing to unpack .../2-libc6-i386_2.37-3_amd64.deb ... Unpacking libc6-i386 (2.37-3) over (2.36-9) ... Preparing to unpack .../3-libc-devtools_2.37-3_amd64.deb ... Unpacking libc-devtools (2.37-3) over (2.36-9) ... Preparing to unpack .../4-libc-dev-bin_2.37-3_amd64.deb ... Unpacking libc-dev-bin (2.37-3) over (2.36-9) ... Preparing to unpack .../5-libc6-dev_2.37-3_amd64.deb ... Unpacking libc6-dev:amd64 (2.37-3) over (2.36-9) ... Preparing to unpack .../6-locales_2.37-3_all.deb ... Unpacking locales (2.37-3) over (2.36-9) ... Preparing to unpack .../7-libc6_2.37-3_amd64.deb ... Checking for services that may need to be restarted... Checking init scripts... Unpacking libc6:amd64 (2.37-3) over (2.36-9) ... Setting up libc6:amd64 (2.37-3) ... Checking for services that may need to be restarted... Checking init scripts... [?1049h[22;0;0t[1;43r[4l[?25l(B[m[37m[40m[1;43r[H[2J[1;1H[97m[44m[K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K [K[1;1H[?25l[?12l[?25h[37mPackage configuration[16;2H[30m[47m┌─┤ [31mConfiguring libc6:amd64[30m ├──┐[17;2H│ Running services and programs that are using NSS need to be restarted, otherwise they might not be able to do lookup or authentication any more (for services such as ssh, this can affect your ability to │[97m[40m [18;2H[30m[47m│ login). Please review the following space-separated list of init.d scripts for services to be restarted now, and correct it if needed. │[97m[40m [19;2H[30m[47m│ │[97m[40m [20;2H[30m[47m│ Note: restarting sshd/telnetd should not affect any existing connections. │[97m[40m [21;2H[30m[47m│ │[97m[40m [22;2H[30m[47m│ Services to restart for GNU libc library upgrade: │[97m[40m [23;2H[30m[47m│ │[97m[40m [24;2H[30m[47m│ [37m[44mpostgresql exim4 cups cron__[30m[47m │[97m[40m [25;2H[30m[47m│ │[97m[40m [26;2H[30m[47m│
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
Hi, On 2023-07-07 07:00, matteo wrote: > Hi, > > same here. I have the full log of apt upgrade: > > ... skipping the initial part without errors ... > > Running mktexlsr. This may take some time... done. > /usr/sbin/update-fmtutil: line 213: 93596 Segmentation fault find > "$SNIPPET_BASE/$tree" -maxdepth 1 -type f -name '*'$EXT -exec cat '{}' \; >> > "$tempfile" > dpkg: error processing package tex-common (--configure): > installed tex-common package post-installation script subprocess returned > error exit status 139 > Processing triggers for dbus (1.14.8-1) ... > Processing triggers for shared-mime-info (2.2-1) ... > Processing triggers for ca-certificates-java (20230620) ... > done. > Processing triggers for install-info (6.8-6+b1) ... > Processing triggers for mailcap (3.70+nmu1) ... > Processing triggers for desktop-file-utils (0.26-1) ... > Processing triggers for initramfs-tools (0.142) ... > update-initramfs: Generating /boot/initrd.img-6.3.0-2-amd64 > Segmentation fault Thanks for the log. Would it be possible to share the initial part without errors? It seems the problem is not in the content of the packages, but in the sequence of installation, so it would be useful to know what got unpack and what didn't. Just two random things to test to try to unbrick the system: - Try running 'ldconfig'. As it seems that some postinst scripts have been able to run before things start to crash, it could be that it is not run properly. - Try unsetting LC_ALL (and possibly LC_*) and LANGUAGES environment variables. Given the issue appears in the tolower function, it could be a problem with the locales. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://aurel32.net
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
Hey Aurelien, Aurelien Jarno wrote on 06.07.23 21:43: Hi, On 2023-07-06 08:14, Kai Wasserbäch wrote: OK, downgrading from the broken system state didn't work either and left me with a lot of segfaulting programs. In the end it seems that 2.73-3 isn't really broken, but the update process is somehow. After I went to a rescue system and redid the update from there, everything worked out. Now 2.73-3 is working here as well. In the rescue system environment the post-install scripts ran successfully. This looks very strange that downgrading and re-upgrading fixes the issue. Did the initial upgrade finished properly? You might want to look for issues in /var/log/dpkg.log or /var/log/apt/term.log. the logs I can only check on Monday, but as I've written in my first e-mail: the post-install scripts failed with segmentation faults. And the re-upgrade only succeeded from a rescue environment (with its own, working libc). Cheers, Kai OpenPGP_signature.asc Description: OpenPGP digital signature
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
Hi, same here. I have the full log of apt upgrade: ... skipping the initial part without errors ... Running mktexlsr. This may take some time... done. /usr/sbin/update-fmtutil: line 213: 93596 Segmentation fault find "$SNIPPET_BASE/$tree" -maxdepth 1 -type f -name '*'$EXT -exec cat '{}' \; >> "$tempfile" dpkg: error processing package tex-common (--configure): installed tex-common package post-installation script subprocess returned error exit status 139 Processing triggers for dbus (1.14.8-1) ... Processing triggers for shared-mime-info (2.2-1) ... Processing triggers for ca-certificates-java (20230620) ... done. Processing triggers for install-info (6.8-6+b1) ... Processing triggers for mailcap (3.70+nmu1) ... Processing triggers for desktop-file-utils (0.26-1) ... Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-6.3.0-2-amd64 Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault Segmentation fault awk: cmd. line:3: fatal error: internal error: segfault awk: cmd. line:3: fatal error: internal error: segfault Segmentation fault Segmentation fault E: /usr/share/initramfs-tools/hooks/udev failed with return 139. update-initramfs: failed for /boot/initrd.img-6.3.0-2-amd64 with 139. dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 139 Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1.1) ... Processing triggers for libglib2.0-0:amd64 (2.74.6-2) ... Setting up openjdk-17-jre:amd64 (17.0.8~6-3) ... Processing triggers for libc-bin (2.37-3) ... Processing triggers for ccache (4.8+really4.7.5-1) ... Updating symlinks in /usr/lib/ccache ... Setting up openjdk-11-jre:amd64 (11.0.20~7-1) ... Setting up openjdk-17-jdk-headless:amd64 (17.0.8~6-3) ... Setting up libedataserver-1.2-27:amd64 (3.48.4-1) ... Setting up libecal-2.0-2:amd64 (3.48.4-1) ... Setting up libedataserverui4-1.0-0:amd64 (3.48.4-1) ... Setting up libebook-contacts-1.2-4:amd64 (3.48.4-1) ... Setting up openjdk-17-jdk:amd64 (17.0.8~6-3) ... Setting up gir1.2-edataserver-1.2:amd64 (3.48.4-1) ... Setting up libedataserverui-1.2-4:amd64 (3.48.4-1) ... Setting up libebackend-1.2-11:amd64 (3.48.4-1) ... Setting up libedata-cal-2.0-2:amd64 (3.48.4-1) ... Setting up gir1.2-ecal-2.0:amd64 (3.48.4-1) ... Setting up libedata-book-1.2-27:amd64 (3.48.4-1) ... Setting up libebook-1.2-21:amd64 (3.48.4-1) ... Setting up libevolution (3.48.4-1) ... Setting up evolution-data-server (3.48.4-1) ... Setting up evolution (3.48.4-1) ... Setting up evolution-plugins (3.48.4-1) ... Setting up evolution-plugin-bogofilter (3.48.4-1) ... Setting up evolution-plugin-pstimport (3.48.4-1) ... Processing triggers for libvlc-bin:amd64 (3.0.18-3) ... Segmentation fault dpkg: error processing package libvlc-bin:amd64 (--configure): installed libvlc-bin:amd64 package post-installation script subprocess returned error exit status 139 Processing triggers for libc-bin (2.37-3) ... Errors were encountered while processing: tex-common initramfs-tools libvlc-bin:amd64 Log ended: 2023-07-06 15:22:25 In my case I cannot use apt or apt-get anymore. This is the journalctl log when using apt: Jul 07 06:59:22 debian kernel: apt[111774]: segfault at 7fe480492006 ip 7fe47fd2af36 sp 7ffdd53c6398 error 4 in libc.so.6[7fe47fc44000+155000] likely on CPU 0 (core 0, socket 0) Cheers Matteo On Thu, 6 Jul 2023 21:43:32 +0200 Aurelien Jarno wrote: Hi, On 2023-07-06 08:14, Kai Wasserbäch wrote: > OK, downgrading from the broken system state didn't work either and left me > with a lot of segfaulting programs. In the end it seems that 2.73-3 isn't > really broken, but the update process is somehow. After I went to a rescue > system and redid the update from there, everything worked out. Now 2.73-3 is > working here as well. In the rescue system environment the post-install > scripts ran successfully. This looks very strange that downgrading and re-upgrading fixes the issue. Did the initial upgrade finished properly? You might want to look for issues in /var/log/dpkg.log or /var/log/apt/term.log. > In case it matters: I made the initial update with aptitude in my graphical > session (KDE on X11). It should not matter how the upgrade is performed, and in any case doesn't explain why your tests on tty2 and tty3 are also affected. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://aurel32.net
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
Hi, On 2023-07-06 08:14, Kai Wasserbäch wrote: > OK, downgrading from the broken system state didn't work either and left me > with a lot of segfaulting programs. In the end it seems that 2.73-3 isn't > really broken, but the update process is somehow. After I went to a rescue > system and redid the update from there, everything worked out. Now 2.73-3 is > working here as well. In the rescue system environment the post-install > scripts ran successfully. This looks very strange that downgrading and re-upgrading fixes the issue. Did the initial upgrade finished properly? You might want to look for issues in /var/log/dpkg.log or /var/log/apt/term.log. > In case it matters: I made the initial update with aptitude in my graphical > session (KDE on X11). It should not matter how the upgrade is performed, and in any case doesn't explain why your tests on tty2 and tty3 are also affected. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://aurel32.net
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
OK, downgrading from the broken system state didn't work either and left me with a lot of segfaulting programs. In the end it seems that 2.73-3 isn't really broken, but the update process is somehow. After I went to a rescue system and redid the update from there, everything worked out. Now 2.73-3 is working here as well. In the rescue system environment the post-install scripts ran successfully. In case it matters: I made the initial update with aptitude in my graphical session (KDE on X11).
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
I did manage do get a full back trace for man: $ gdb --args man apt-get GNU gdb (Debian 13.2-1) 13.2 [...] Reading symbols from man... Reading symbols from /usr/lib/debug/.build-id/70/bd707aa6a7ea95d80aaa2933e2d49f1cc56c5f.debug... (gdb) r Starting program: /usr/bin/man apt-get [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x7f557d18ff36 in towlower () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt full #0 0x7f557d18ff36 in towlower () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x7f557d15dd49 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #2 0x7f557d15f26d in fnmatch () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #3 0x5586d79b6a49 in match_wildcard_in_directory (path=0x5586d99f4460 "/usr/share/man/man8", pattern=0x5586d99ecea0 "apt-get.8*", opts=, matched=0x5586d99ea4d0, cache=0x5586d99ece80) at ../../../src/globbing.c:273 flags = 16 pattern_start = {pattern = 0x5586d9a1bf60 "apt-get.8", len = } bsearched = i = 22 #4 0x5586d79b7042 in look_for_file (hier=hier@entry=0x5586d99f0140 "/usr/share/man", sec=sec@entry=0x5586d99e7a70 "8", unesc_name=unesc_name@entry=0x7ffef1c470b2 "apt-get", cat=cat@entry=false, opts=opts@entry=0) at ../../../src/globbing.c:343 dirs_node = 0x1 dirs_iter = {vtable = 0x5586d79cb500 , list = 0x5586d99f3400, count = 1, p = 0x5586d99f01e8, q = 0x5586d99f01e8, i = 0, j = 0} dirs = 0x5586d99f3400 dir = 0x5586d99f4460 "/usr/share/man/man8" matched = 0x5586d99ea4d0 pattern = 0x5586d99ecea0 "apt-get.8*" path = 0x0 layout = 1 name = 0x5586d99e7fd0 "apt-get" __PRETTY_FUNCTION__ = "look_for_file" MPI_LABEL_4_break_340 = #5 0x5586d79ba18c in try_section (cand_head=0x7ffef1c46038, name=0x7ffef1c470b2 "apt-get", sec=0x5586d99e7a70 "8", path=0x5586d99f0140 "/usr/share/man") at ../../../src/man.c:3172 found = 0 lff_opts = 0 names = 0x0 cat = 0 '\000' MPI_LABEL_4_break_3197 = found_name = 0x5586d99e80c8 " utility -- command-line interface" found = names = found_name = cat = lff_opts = MPI_LABEL_1_body_3197 = MPI_LABEL_1_done_3197 = MPI_LABEL_2_body_3197 = MPI_LABEL_2_done_3197 = MPI_LABEL_4_body_3197 = MPI_LABEL_4_break_3197 = MPI_LABEL_4_finish_3197 = names_iter = names_node = info = ult = f = #6 locate_page (candidates=0x7ffef1c46038, name=0x7ffef1c470b2 "apt-get", sec=0x5586d99e7a70 "8", manpath=0x5586d99f0140 "/usr/share/man") at ../../../src/man.c:3613 found = db_ok = found = db_ok = #7 locate_page_in_manpath (page_section=, page_name=page_name@entry=0x7ffef1c470b2 "apt-get", candidates=candidates@entry=0x7ffef1c46038, found=found@entry=0x7ffef1c460f4) at ../../../src/man.c:3971 manpathlist_node = 0x2 manpathlist_iter = {vtable = 0x5586d79cb500 , list = 0x5586d99e7e30, count = 2, p = 0x5586d99f0130, q = 0x5586d99f0130, i = 0, j = 0} mp = 0x5586d99f0140 "/usr/share/man" MPI_LABEL_1_done_3970 = MPI_LABEL_2_done_3970 = MPI_LABEL_4_break_3970 = #8 0x5586d79bd29b in man (name=0x7ffef1c470b2 "apt-get", found=0x7ffef1c460f4) at ../../../src/man.c:4003 section_list_node = 0x4 section_list_iter = {vtable = 0x5586d79cb500 , list = 0x5586d99e57a0, count = 17, p = 0x5586d99e7cd0, q = 0x5586d99e7d38, i = 0, j = 0} sec = 0x5586d99e7a70 "8" page_name = page_section = candidates = 0x0 cand = candnext = MPI_LABEL_1_done_4002 = MPI_LABEL_2_done_4002 = MPI_LABEL_4_break_4002 = #9 0x5586d79b5786 in main (argc=, argv=out>) at ../../../src/man.c:4385 found_subpage = status = found = 0 maybe_section = false nextarg = 0x7ffef1c470b2 "apt-get" argc_env = exit_status = 0 argv_env = tmp = __PRETTY_FUNCTION__ = "main" (gdb) info registers rax0x7f557cc84e98 140005142449816 rbx0x7ffef1c45940 140732954597696 rcx0x7f557cc84e98 140005142449816 rdx0x3048 rsi0x2010201 33620481 rdi0x6197 rbp0x100x10 rsp0x7ffef1c42be8 0x7ffef1c42be8 r8 0x1016 r9 0x0 0 r100x7ffef1c45310 140732954596112 r110x7ffef1c45940 140732954597696 r120x7ffef1c45530 140732954596656 r130x61
Bug#1040452: libc6: upgrading libc6 to version 2.37-3 break almost every program (especially in a shell)
Package: libc6 Version: 2.37-3 Severity: important Dear maintainers, I've just upgraded to libc6 2.37-3 and now I have an almost broken system. But broken in a very weird way: the graphical user interface (KDE Plasma) is coming up, I can start big programs like Firefox, Thunderbird, etc., but as soon as I go to a shell — it doesn't matter if I'm inside or outside the graphical session, ie. tty2 vs. tty3 — I can execute almost no program. ldd works, surprisingly gdb works as well, but eg. man or apt-get or perl do not. They all end with $ man apt-get Segmentation fault (core dumped) Since gdb is working, I got a backtrace, even though that is not that helpful, I fear. $ gdb --args man apt-get GNU gdb (Debian 13.2-1) 13.2 [...] Reading symbols from man... (No debugging symbols found in man) (gdb) r Starting program: /usr/bin/man apt-get [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x7ffa2b4f8f36 in towlower () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt full #0 0x7ffa2b4f8f36 in towlower () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x7ffa2b4c6d49 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #2 0x7ffa2b4c826d in fnmatch () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #3 0x561538c0ca49 in ?? () No symbol table info available. #4 0x561538c0d042 in ?? () No symbol table info available. #5 0x561538c1018c in ?? () No symbol table info available. #6 0x561538c1329b in ?? () No symbol table info available. #7 0x561538c0b786 in ?? () No symbol table info available. #8 0x7ffa2b4136ca in ?? () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #9 0x7ffa2b413785 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #10 0x561538c0bca1 in ?? () No symbol table info available. (gdb) info registers rax0x7ffa2b084e98 140712440516248 rbx0x7ffca64594a0 140723098064032 rcx0x7ffa2b084e98 140712440516248 rdx0x3048 rsi0x2010201 33620481 rdi0x6197 rbp0x100x10 rsp0x7ffca6456748 0x7ffca6456748 r8 0x1016 r9 0x0 0 r100x7ffca6458e70 140723098062448 r110x7ffca64594a0 140723098064032 r120x7ffca6459090 140723098062992 r130x6197 r140x1016 r150x7ffca6459094 140723098062996 rip0x7ffa2b4f8f36 0x7ffa2b4f8f36 eflags 0x10246 [ PF ZF IF RF ] cs 0x3351 ss 0x2b43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 Perl was failing with a call to towupper(). The KDE session is also incomplete, eg. audio devices are no longer found. During the update I saw errors towards the end (post-install scripts) for libc6 (and some others, which should not matter here). Ie. the post-install script could not be executed with the core dumped/segmentation fault. It also doesn't matter what shell I use, I've tried bash and dash. This might be related to #1040140 reportbug is not working either, so you have to do without the automatically generated system information, but I do try to reproduce it here as close as I can. Now I will try to downgrade my system and get it fully functional again. Cheers, Kai -- System Information: Debian Release: trixie/sid APT prefers testing Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.3.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1 (2023-06-12) x86_64 GNU/Linux Locale: LANG=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system)