Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760950 - sys-kernel/dracut-051: systemd-cryptsetup aborts with message: libgcc_s.so.1 must be installed for pthread_cancel to work
Summary: sys-kernel/dracut-051: systemd-cryptsetup aborts with message: libgcc_s.so.1 ...
Status: RESOLVED DUPLICATE of bug 760249
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-21 05:50 UTC by Andrew Udvare
Modified: 2020-12-21 18:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2020-12-21 05:50:28 UTC
I updated to Dracut 051 on the 16th, built a new kernel and used my typical way to manage this that has worked for years. Upon rebooting, I got this error from systemd-cryptsetup:

libgcc_s.so.1 must be installed for pthread_cancel to work

It then just aborts.

In the emergency shell, I can override the LD_LIBRARY_PATH to be /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0 and get systemd-cryptsetup to work. However, even after making sure `systemctl status` shows no failed services, typing exit does not move the boot process forward. It just hangs.

My temporary solution:

Copy /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libgcc_s* /usr/lib64

And add the following to Dracut conf:

install+="/usr/lib64/libgcc_s.so"
install+="/usr/lib64/libgcc_s.so.1"

Rebuild the image and reboot. This works but it's extremely hacky.

I noticed these two existing bugs:

https://bugs.gentoo.org/705728
https://bugs.gentoo.org/676076

Is this a regression?

Reproducible: Always

Steps to Reproduce:
1. emerge systemd cryptsetup dracut etc
2. Configuration /etc/dracut.conf.d/main.conf

add_dracutmodules+="crypt crypt-gpg dm uefi-lib systemd crypt-loop lvm"
add_fstab+="/etc/fstab-initrd"
fileloglvl=6
hostonly="yes"
logfile=/var/log/dracut.log
omit_dracutmodules+="systemd-bootchart modsign gensplash bootchart dash plymouth btrfs mdraid multipath iscsi ndb biosdevname network fcoe-uefi ndb dmraid uvesafb"
show_modules="yes"
uefi="yes"
uefi_secureboot_cert="/etc/efikeys/db.crt"
uefi_secureboot_key="/etc/efikeys/db.key"
uefi_stub="/usr/lib/systemd/boot/efi/linuxx64.efi.stub"
use_fstab="yes"

3. Build the initramfs, etc. Make it boot
Actual Results:  
systemd-cryptsetup fails with "libgcc_s.so.1 must be installed for pthread_cancel to work".

Expected Results:  
System should boot normally.

The LD_LIBRARY_PATH should be set (in the binary?) or the libraries should be in an expected place like /usr/lib64.

Portage 3.0.12 (python 3.8.7-candidate-1, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.32-r5, 5.10.1-gentoo-r1-limelight x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.1-gentoo-r1-limelight-x86_64-Intel-R-_Core-TM-_i7-5930K_CPU_@_3.50GHz-with-glibc2.2.5
KiB Mem:    32794148 total,  26771184 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 20 Dec 2020 10:05:12 +0000
Head commit of repository gentoo: 805688a8fd2179c3db11f035f352975646ca73a3

Timestamp of repository brave-overlay: Sat, 19 Dec 2020 15:35:02 +0000
Head commit of repository brave-overlay: e27c6aa6acf3da12c2353dc0e6e35eb6ecc20a3f

Head commit of repository tatsh-overlay: 7e8c057f648672e936fe2ca99df79d752022a8f1

Timestamp of repository torbrowser: Fri, 18 Dec 2020 19:35:06 +0000
Head commit of repository torbrowser: 724934c8b6dd6f10e50a1c558dba5c802c07dd4a

sh bash 5.1
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.1::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r5::gentoo, 3.7.9-r1::gentoo, 3.8.7_rc1::gentoo, 3.9.1::gentoo
dev-util/cmake:           3.19.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r4::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: no

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brave-overlay.git
    masters: gentoo

tatsh-overlay
    location: /var/db/repos/tatsh
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    sync-git-verify-commit-signature: no

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo

Installed sets: @admin, @android, @bashcomp, @cdr, @charles, @chrome, @cups, @dbeaver, @docker, @emulators, @exfat, @firefox, @fonts, @gimp, @git, @i3, @ibus, @java-ebuilder, @kde, @kernel, @kodi, @libimobiledevice, @libreoffice, @media, @misc, @mlocate, @mupen64plus, @pass, @portage-utilities, @python, @rar, @shellcheck, @stepmania, @thunderbird, @tmux, @torbrowser, @vim, @virtualbox, @vlc, @vscode, @wine, @x11, @xirvik-vpn
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/clonehero/Custom /opt/clonehero/Screenshots /opt/clonehero/Songs /opt/clonehero/settings.ini /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -ggdb"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 10 --load-average 10 --quiet-build=y --verbose-conflicts"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirror.leaseweb.com/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j10 -l10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacs acl acpi activities alsa amd64 avahi bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr cjk clang cli crypt cups curl dbus declarative dri dts dv dvd dvdr emboss encode exif ffmpeg flac fluidsynth fortran gdbm gif gles2 gpm gsm gstreamer gui hardened heif ibus iconv icu idn ipv6 jemalloc jpeg jpeg2k kde kipi kwallet lame lcms libass libcaca libglvnd libnotify libtirpc lm-sensors lto lzma mad man matroska mng mod modplug mp3 mp4 mpeg multilib ncurses nls nptl nvenc ogg opengl openmp opus pam pango pcre pdf pgo phonon plasma png policykit ppds pulseaudio qml qt5 rar readline samba scanner sdl seccomp semantic-desktop speex spell split-usr ssl startup-notification svg syslog system-av1 system-cairo system-electron system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-llvm system-lua system-ripgrep system-sqlite system-webp systemd taglib tcpd theora tiff truetype twolame udev udisks unicode upower usb v4l vaapi vcd vdpau vim-syntax vorbis vpx vulkan wavpack webengine webp widgets wmf wxwidgets x264 x265 xattr xcb xml xpm xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="en-GB en ja ko zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8 python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-kernel/dracut-051::gentoo was built with the following:
USE="(-selinux)" ABI_X86="(64)"


sys-fs/cryptsetup-2.3.4::gentoo was built with the following:
USE="argon2 nls openssl udev -gcrypt -kernel -libressl -nettle -pwquality -reencrypt -static -static-libs -urandom" ABI_X86="(64)"


sys-apps/systemd-247.1::gentoo was built with the following:
USE="acl cgroup-hybrid cryptsetup curl elfutils gcrypt gnuefi hwdb idn kmod lz4 lzma pam pcre (policykit) resolvconf seccomp (split-usr) sysv-utils xkb zstd -apparmor -audit -build -dns-over-tls -homed -http -importd -nat -pkcs11 -pwquality -qrcode -repart (-selinux) -static-libs -test -vanilla" ABI_X86="32 (64) (-x32)"
FEATURES="multilib-strict preserve-libs protect-owned network-sandbox ebuild-locks unmerge-orphans binpkg-docompress news unmerge-logs xattr usersync clean-logs binpkg-dostrip compressdebug assume-digests config-protect-if-modified sandbox usersandbox strict strict-keepdir pid-sandbox qa-unresolved-soname-deps sfperms userpriv unknown-features-warn splitdebug fixlafiles binpkg-logs distlocks merge-sync ipc-sandbox userfetch parallel-fetch"
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-12-21 18:41:40 UTC

*** This bug has been marked as a duplicate of bug 760249 ***