This bug was fixed in the package initramfs-tools - 0.140ubuntu12
---
initramfs-tools (0.140ubuntu12) jammy; urgency=medium
* Force copy pthread and libgcc_s libraries via a stub binary.
To avoid circular shared library dependencies between compiler and
libc, libpthreads
To be fair we don't need the empty pthread in the initramfs, we only
need the non-empty dynamically opened libgcc_s, but it shouldn't hurt
either.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
** Changed in: initramfs-tools (Ubuntu Jammy)
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot error: libgcc_s.so.1 must be installed for
With above, when testing I now get:
Adding binary /usr/lib/initramfs-tools/bin/gcc_s1-stub
Adding binary /lib/x86_64-linux-gnu/libgcc_s.so.1
Adding binary /lib/x86_64-linux-gnu/libc.so.6
Adding binary-link /usr/lib64/ld-linux-x86-64.so.2
Adding binary
$ gcc -Wl,--no-as-needed -shared -l:libpthread.so.0 -l:libgcc_s.so.1 -o
bla
$ ldd bla
linux-vdso.so.1 (0x7ffe0e7e6000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x7feeeaa32000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
With that branch rebased, and typpos fixed up testing locally does
produce this:
Adding binary /usr/lib/initramfs-tools/bin/gcc_s1-stub
Adding binary /lib/x86_64-linux-gnu/libgcc_s.so.1
Adding binary /lib/x86_64-linux-gnu/libc.so.6
Adding binary-link /usr/lib64/ld-linux-x86-64.so.2
Adding binary
Dimitri,
I don't know if this will suffice. With glibc's decision to remove
libpthread, I believe we will need to explicitly copy libpthread.so, at
least temporarily until everything else doesn't explicitly link against
it.
Taking the stub binary your MP is generating as an example (running on
We have been bitten by this before. And Last time I did proposed to do
this:
- create a stub binary tha tis linked with pthread and libgcc_s
- copy_exec that into the initramfs
https://code.launchpad.net/~xnox/ubuntu/+source/initramfs-
tools/+git/initramfs-tools/+merge/385243
This ensures that
Are you guaranteed to be able to know the set of architecture(s) of
libgcc_s needed? That's what's prevented me from suggesting a patch like
that.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Yes, that's my take as well. I was going to proposed a patch to do just
that but I decided to see if there was another way to just selectively
copy lib{gcc_s,pthread}. I don't think it's worth the hassle, though.
--
You received this bug notification because you are a member of Ubuntu
Bugs,
It feels like we should just copy libgcc_s.so.1 and libpthread always.
It is tiny in size and something is bound to use them.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot
In case you are running Jammy and gets affected by this issue:
The workaround described consists of booting from a live usb, decrypting
the disk, getting a chroot, and only then installing thin-provisioning-
tools and running update-initramfs.
This is the script I was using to decrypt the disk
** Also affects: initramfs-tools (Ubuntu Jammy)
Importance: Critical
Status: Confirmed
** Tags removed: rls-jj-incoming
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot
** Tags added: fr-2002
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot error: libgcc_s.so.1 must be installed for pthread_exit to work
To manage notifications about this bug go
** Changed in: initramfs-tools (Ubuntu)
Status: Fix Released => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot error: libgcc_s.so.1 must be installed for
Accidentally changed the status... sorry about that. Can anyone please
remove the "Fix Released" status? Not sure how to do that...
** Changed in: initramfs-tools (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs,
** Changed in: initramfs-tools (Ubuntu)
Milestone: None => ubuntu-22.02
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot error: libgcc_s.so.1 must be installed for pthread_exit
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: initramfs-tools (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
** Tags added: rls-jj-incoming
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594
Title:
Boot error: libgcc_s.so.1 must be installed for pthread_exit to work
To manage notifications about this
** Description changed:
[Bug description]
On a jammy installation, which was upgraded from focal, after a full-
upgrade and a reboot,
I enter the LUKS password to decrypt the disk. Then I get the following
error:
libgcc_s.so.1 must be installed for pthread_exit to work
As per https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950254, the
"libpthread copies libgcc" snippet in the copy_exec hook function may be
needed for other packages such as open-iscsi, btrfs-progs. In this case
these may also be affected by this issue. If this is the case, a
solution should lie
21 matches
Mail list logo