I can not anymore reproduce the issue anymore: while trying to capture
the full error message, I created an initrd without libgcc_s in it and
it booted up. Below I added some--hopefully relevant-- parts of the
dpkg log and original requested phread output, maybe that still sheds
some light on this. If not I guess this can be closed.

On Fri, 12 Apr 2024 at 16:23, Guilhem Moulin <guil...@debian.org> wrote:
> FWIW, I later noticed you used a splash screen (plymouth) and thought it

yes, sorry: GUI = Splash screen

> Otherwise, my guess is a race where the initramfs image was somehow
> rebuilt before libcryptsetup12 was upgraded, but AFAICT the dependencies
> are properly set to avoid that.  Does the broken initramfs image contain
> libargon2.so, if so does its libcryptsetup12 use it?

According to `lsinitramfs initrd.img-6.7.9-amd64 |grep libargon2.so`
it's not used.

I've saved away the dpkg.log and this is an excerpt (via `rg "trigproc
initramfs-tools|libcryptsetup12|libargon2|libssl3t64|libc6|libglib2|libgcc"
~/tmp/dpkg.log`) with added output from `rg "Start-Date|Commandline"
/var/log/apt/history.log`. The last two initramfs-tools trigger calls
should correspond to me trying to fix the problem by reinstalling some
packages and maybe not even realizing it's already fixed by the
dist-upgrade?

2:Start-Date: 2024-04-10  11:30:00
3:Commandline: apt upgrade -y
7:End-Date: 2024-04-10  11:33:19

87:2024-04-10 11:30:04 upgrade libgcc-13-dev:amd64 13.2.0-18 13.2.0-23
88:2024-04-10 11:30:04 status half-configured libgcc-13-dev:amd64 13.2.0-18
89:2024-04-10 11:30:04 status unpacked libgcc-13-dev:amd64 13.2.0-18
90:2024-04-10 11:30:04 status half-installed libgcc-13-dev:amd64 13.2.0-18
91:2024-04-10 11:30:04 status unpacked libgcc-13-dev:amd64 13.2.0-23
107:2024-04-10 11:30:06 upgrade libgcc-12-dev:amd64 12.3.0-15 12.3.0-17
108:2024-04-10 11:30:06 status half-configured libgcc-12-dev:amd64 12.3.0-15
109:2024-04-10 11:30:06 status unpacked libgcc-12-dev:amd64 12.3.0-15
110:2024-04-10 11:30:06 status half-installed libgcc-12-dev:amd64 12.3.0-15
111:2024-04-10 11:30:06 status unpacked libgcc-12-dev:amd64 12.3.0-17
158:2024-04-10 11:30:07 upgrade libgcc-s1:amd64 14-20240303-1 14-20240330-1
159:2024-04-10 11:30:07 status half-configured libgcc-s1:amd64 14-20240303-1
160:2024-04-10 11:30:07 status unpacked libgcc-s1:amd64 14-20240303-1
161:2024-04-10 11:30:07 status half-installed libgcc-s1:amd64 14-20240303-1
162:2024-04-10 11:30:07 status unpacked libgcc-s1:amd64 14-20240330-1
164:2024-04-10 11:30:07 configure libgcc-s1:amd64 14-20240330-1 <none>
165:2024-04-10 11:30:07 status unpacked libgcc-s1:amd64 14-20240330-1
166:2024-04-10 11:30:07 status half-configured libgcc-s1:amd64 14-20240330-1
167:2024-04-10 11:30:07 status installed libgcc-s1:amd64 14-20240330-1
210:2024-04-10 11:30:08 upgrade libc6-dev:amd64 2.37-15.1 2.37-16
211:2024-04-10 11:30:08 status half-configured libc6-dev:amd64 2.37-15.1
212:2024-04-10 11:30:08 status unpacked libc6-dev:amd64 2.37-15.1
213:2024-04-10 11:30:08 status half-installed libc6-dev:amd64 2.37-15.1
214:2024-04-10 11:30:08 status unpacked libc6-dev:amd64 2.37-16
235:2024-04-10 11:30:09 upgrade libc6:amd64 2.37-15.1 2.37-16
236:2024-04-10 11:30:09 status half-configured libc6:amd64 2.37-15.1
237:2024-04-10 11:30:09 status unpacked libc6:amd64 2.37-15.1
238:2024-04-10 11:30:09 status half-installed libc6:amd64 2.37-15.1
239:2024-04-10 11:30:09 status unpacked libc6:amd64 2.37-16
241:2024-04-10 11:30:09 configure libc6:amd64 2.37-16 <none>
242:2024-04-10 11:30:09 status unpacked libc6:amd64 2.37-16
243:2024-04-10 11:30:09 status half-configured libc6:amd64 2.37-16
244:2024-04-10 11:30:10 status installed libc6:amd64 2.37-16
755:2024-04-10 11:30:33 upgrade libgcc-11-dev:amd64 11.4.0-7 11.4.0-8
756:2024-04-10 11:30:33 status half-configured libgcc-11-dev:amd64 11.4.0-7
757:2024-04-10 11:30:33 status unpacked libgcc-11-dev:amd64 11.4.0-7
758:2024-04-10 11:30:33 status half-installed libgcc-11-dev:amd64 11.4.0-7
759:2024-04-10 11:30:34 status unpacked libgcc-11-dev:amd64 11.4.0-8
951:2024-04-10 11:30:43 status triggers-pending libglib2.0-0:amd64 2.78.4-1
1491:2024-04-10 11:31:04 upgrade libglib2.0-data:all 2.78.4-4 2.78.4-6
1492:2024-04-10 11:31:04 status half-configured libglib2.0-data:all 2.78.4-4
1493:2024-04-10 11:31:04 status unpacked libglib2.0-data:all 2.78.4-4
1494:2024-04-10 11:31:04 status half-installed libglib2.0-data:all 2.78.4-4
1495:2024-04-10 11:31:04 status unpacked libglib2.0-data:all 2.78.4-6
2711:2024-04-10 11:32:13 configure libglib2.0-data:all 2.78.4-6 <none>
2712:2024-04-10 11:32:13 status unpacked libglib2.0-data:all 2.78.4-6
2713:2024-04-10 11:32:13 status half-configured libglib2.0-data:all 2.78.4-6
2714:2024-04-10 11:32:13 status installed libglib2.0-data:all 2.78.4-6
3527:2024-04-10 11:32:42 configure libgcc-12-dev:amd64 12.3.0-17 <none>
3528:2024-04-10 11:32:42 status unpacked libgcc-12-dev:amd64 12.3.0-17
3529:2024-04-10 11:32:42 status half-configured libgcc-12-dev:amd64 12.3.0-17
3530:2024-04-10 11:32:42 status installed libgcc-12-dev:amd64 12.3.0-17
3567:2024-04-10 11:32:43 configure libgcc-11-dev:amd64 11.4.0-8 <none>
3568:2024-04-10 11:32:43 status unpacked libgcc-11-dev:amd64 11.4.0-8
3569:2024-04-10 11:32:43 status half-configured libgcc-11-dev:amd64 11.4.0-8
3570:2024-04-10 11:32:43 status installed libgcc-11-dev:amd64 11.4.0-8
3571:2024-04-10 11:32:43 configure libgcc-13-dev:amd64 13.2.0-23 <none>
3572:2024-04-10 11:32:43 status unpacked libgcc-13-dev:amd64 13.2.0-23
3573:2024-04-10 11:32:43 status half-configured libgcc-13-dev:amd64 13.2.0-23
3574:2024-04-10 11:32:43 status installed libgcc-13-dev:amd64 13.2.0-23
3583:2024-04-10 11:32:43 configure libc6-dev:amd64 2.37-16 <none>
3584:2024-04-10 11:32:43 status unpacked libc6-dev:amd64 2.37-16
3585:2024-04-10 11:32:43 status half-configured libc6-dev:amd64 2.37-16
3586:2024-04-10 11:32:43 status installed libc6-dev:amd64 2.37-16
3772:2024-04-10 11:32:52 trigproc initramfs-tools:all 0.142 <none>
3782:2024-04-10 11:33:13 trigproc libglib2.0-0:amd64 2.78.4-1 <none>
3783:2024-04-10 11:33:13 status half-configured libglib2.0-0:amd64 2.78.4-1
3792:2024-04-10 11:33:13 status installed libglib2.0-0:amd64 2.78.4-1

#####
# <- Boot failure happened here
#####

28:Start-Date: 2024-04-10  12:01:05
29:Commandline: apt dist-upgrade
34:End-Date: 2024-04-10  12:09:22

4258:2024-04-10 12:01:17 status triggers-pending libglib2.0-0:amd64 2.78.4-1
4340:2024-04-10 12:01:19 status triggers-pending libglib2.0-0:amd64 2.78.4-1
8462:2024-04-10 12:04:13 upgrade libglib2.0-bin:amd64 2.78.4-1 2.78.4-6
8463:2024-04-10 12:04:13 status half-configured libglib2.0-bin:amd64 2.78.4-1
8464:2024-04-10 12:04:13 status unpacked libglib2.0-bin:amd64 2.78.4-1
8465:2024-04-10 12:04:13 status half-installed libglib2.0-bin:amd64 2.78.4-1
8466:2024-04-10 12:04:13 status unpacked libglib2.0-bin:amd64 2.78.4-6
8467:2024-04-10 12:04:13 upgrade libglib2.0-0:amd64 2.78.4-1 2.78.4-6
8468:2024-04-10 12:04:13 status half-configured libglib2.0-0:amd64 2.78.4-1
8469:2024-04-10 12:04:13 status unpacked libglib2.0-0:amd64 2.78.4-1
8470:2024-04-10 12:04:13 status half-installed libglib2.0-0:amd64 2.78.4-1
8471:2024-04-10 12:04:13 status unpacked libglib2.0-0:amd64 2.78.4-6
8472:2024-04-10 12:04:13 install libglib2.0-0t64:amd64 <none> 2.78.4-6
8473:2024-04-10 12:04:13 status half-installed libglib2.0-0t64:amd64 2.78.4-6
8474:2024-04-10 12:04:13 status unpacked libglib2.0-0t64:amd64 2.78.4-6
8654:2024-04-10 12:04:20 install libssl3t64:amd64 <none> 3.2.1-3
8655:2024-04-10 12:04:20 status half-installed libssl3t64:amd64 3.2.1-3
8656:2024-04-10 12:04:21 status unpacked libssl3t64:amd64 3.2.1-3
8658:2024-04-10 12:04:21 configure libssl3t64:amd64 3.2.1-3 <none>
8659:2024-04-10 12:04:21 status unpacked libssl3t64:amd64 3.2.1-3
8660:2024-04-10 12:04:21 status half-configured libssl3t64:amd64 3.2.1-3
8661:2024-04-10 12:04:21 status installed libssl3t64:amd64 3.2.1-3
8981:2024-04-10 12:04:34 upgrade libcryptsetup12:amd64 2:2.7.0-1 2:2.7.2-1
8982:2024-04-10 12:04:34 status half-configured libcryptsetup12:amd64 2:2.7.0-1
8983:2024-04-10 12:04:34 status unpacked libcryptsetup12:amd64 2:2.7.0-1
8984:2024-04-10 12:04:34 status half-installed libcryptsetup12:amd64 2:2.7.0-1
8985:2024-04-10 12:04:34 status unpacked libcryptsetup12:amd64 2:2.7.2-1
10927:2024-04-10 12:05:18 configure libglib2.0-0t64:amd64 2.78.4-6 <none>
10928:2024-04-10 12:05:18 status unpacked libglib2.0-0t64:amd64 2.78.4-6
10929:2024-04-10 12:05:18 status half-configured libglib2.0-0t64:amd64 2.78.4-6
10930:2024-04-10 12:05:18 status installed libglib2.0-0t64:amd64 2.78.4-6
11269:2024-04-10 12:05:21 configure libcryptsetup12:amd64 2:2.7.2-1 <none>
11270:2024-04-10 12:05:21 status unpacked libcryptsetup12:amd64 2:2.7.2-1
11271:2024-04-10 12:05:21 status half-configured libcryptsetup12:amd64 2:2.7.2-1
11272:2024-04-10 12:05:21 status installed libcryptsetup12:amd64 2:2.7.2-1
11721:2024-04-10 12:05:29 configure libglib2.0-0:amd64 2.78.4-6 <none>
11722:2024-04-10 12:05:29 status unpacked libglib2.0-0:amd64 2.78.4-6
11723:2024-04-10 12:05:29 status half-configured libglib2.0-0:amd64 2.78.4-6
11724:2024-04-10 12:05:29 status installed libglib2.0-0:amd64 2.78.4-6
11826:2024-04-10 12:05:32 configure libglib2.0-bin:amd64 2.78.4-6 <none>
11827:2024-04-10 12:05:32 status unpacked libglib2.0-bin:amd64 2.78.4-6
11828:2024-04-10 12:05:32 status half-configured libglib2.0-bin:amd64 2.78.4-6
11829:2024-04-10 12:05:32 status installed libglib2.0-bin:amd64 2.78.4-6
14674:2024-04-10 12:08:01 trigproc initramfs-tools:all 0.142 <none>

36:Start-Date: 2024-04-10  12:24:42
37:Commandline: apt reinstall cryptsetup
40:End-Date: 2024-04-10  12:24:43
42:Start-Date: 2024-04-10  12:25:39
43:Commandline: apt reinstall initramfs-tools
46:End-Date: 2024-04-10  12:25:56

14853:2024-04-10 12:25:40 trigproc initramfs-tools:all 0.142 <none>

48:Start-Date: 2024-04-10  12:34:53
49:Commandline: apt reinstall cryptsetup-initramfs
52:End-Date: 2024-04-10  12:35:11

14868:2024-04-10 12:34:53 trigproc initramfs-tools:all 0.142 <none>

I guess the below is not anymore relevant as both initrds now booted
up, so whatever it is showing, it now works.

> Erm no, that likely won't work since pthread functions have moved from
> libpthread.so.1 to libc.so.6 with glibc 2.34.  Otherwise copy_exec()
> would have pulled in libgcc_s.  New attempt:

The following is with the 6.7.7 image, I just reran with the a freshly
created 6.7.9 image and it showed basically the same output

λ  unmkinitramfs ./initrd.img-6.7.7-amd64 /tmp/initramfs-destdir
λ  for p in $(find /tmp/initramfs-destdir/main -type f | sort); do \
      objdump -T "$p" 2>&1 | grep pthread_exit && echo "^^ $p"; \
    done
0000000000000000      DF *UND*  0000000000000000 (GLIBC_2.2.5) pthread_exit
^^ /tmp/initramfs-destdir/main/usr/lib/x86_64-linux-gnu/libcrypto.so.3
0000000000089560  w   DF .text  0000000000000042  GLIBC_2.2.5 pthread_exit
^^ /tmp/initramfs-destdir/main/usr/lib/x86_64-linux-gnu/libc.so.6
0000000000000000      DF *UND*  0000000000000000 (GLIBC_2.2.5) pthread_exit
^^ /tmp/initramfs-destdir/main/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7800.4

λ  dpkg -S ibcrypto.so.3
libssl3t64:amd64: /usr/lib/x86_64-linux-gnu/libcrypto.so.3

λ  dpkg -S libc.so.6
libc6-dev:amd64: /usr/share/gdb/auto-load/lib/x86_64-linux-gnu/libc.so.6-gdb.py
libc6:amd64: /lib/x86_64-linux-gnu/libc.so.6

λ  dpkg -S libglib-2.0.so.0
libglib2.0-0t64:amd64: /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
libglib2.0-0t64:amd64: /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7800.4

λ  dpkg -s libglib2.0-0t64 | grep Version
Version: 2.78.4-6

λ  dpkg -s libssl3t64 | grep Version
Version: 3.2.1-3

λ  dpkg -s libc6 | grep Version
Version: 2.37-16

And just because it was mentioned:

λ  dpkg -s  libcryptsetup12 | grep Version
Version: 2:2.7.2-1

--
Thanks!

Jan

Reply via email to