Fails to include libgcc, resulting in cryptsetup failures

Bug #1958806 reported by Chris Halse Rogers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

I recently rebooted my laptop, and couldn't unlock my (cryptsetup-managed) root filesystem; after entering my passphrase, the plymouth prompt would always say “unable to unlock /dev/nvme0n1p3_crypt”.

Dropping to text mode, I can see that cryptsetup is failing with a message like:
"libgcc_s: missing library, needed for pthread_exit”.

Indeed, in the recovery console cryptsetup will immediately crash with that message.

I note that initramfs-tools already has some logic for detecting when libgcc_s is needed but isn't in DT_NEEDED, but this seems to have gone out of date.

Adding an initramfs hook to manually add libgcc_s to the initramfs results in a bootable system again.

I don't reboot this laptop often, so I unfortunately can't narrow down *when* this started failing better than “sometime in the last 2 months”.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: initramfs-tools 0.140ubuntu10
ProcVersionSignature: Ubuntu 5.13.0-20.20-generic 5.13.14
Uname: Linux 5.13.0-20-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 24 12:08:34 2022
InstallationDate: Installed on 2021-06-26 (211 days ago)
InstallationMedia: Ubuntu 21.10.0 2021.05.28 amd64 "bcachefs" (20210622)
PackageArchitecture: all
SourcePackage: initramfs-tools
UpgradeStatus: Upgraded to jammy on 2021-10-28 (87 days ago)

Revision history for this message
Chris Halse Rogers (raof) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.