[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Launchpad Bug Tracker
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Dimitri John Ledkov
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Dimitri John Ledkov
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Dimitri John Ledkov
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Dimitri John Ledkov
$ 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Dimitri John Ledkov
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Sergio Durigan Junior
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-08 Thread Dimitri John Ledkov
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-02 Thread Chris Halse Rogers
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-02-02 Thread Sergio Durigan Junior
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,

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-31 Thread Dimitri John Ledkov
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-28 Thread Athos Ribeiro
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-27 Thread Brian Murray
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-27 Thread Matthieu Clemenceau
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-25 Thread Sergio Durigan Junior
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-25 Thread Harshal Prakash Patankar
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,

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-25 Thread Brian Murray
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-25 Thread Launchpad Bug Tracker
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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-25 Thread Sergio Durigan Junior
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-20 Thread Athos Ribeiro
** 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

[Bug 1958594] Re: Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

2022-01-20 Thread Athos Ribeiro
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