I observed on multiple 32 bit archs: - '''init=/sbin/openrc-init''' kernel option used as init system - supervising daemons runs OK - '''rc-status''' issued, when it's about to display them, it segmentation faults and stops displaying any further daemon statuses. This behavior was observed at least on arm, m68k. Example result: ''' # rc-status Runlevel: default syslog-ng [ started ] named [ started ] cronie [ started ] netmount [ started ] ntpd [ started ] sshd [ started ] local [ started ] Segmentation fault ''' While rc-status --all gives an interesting garbled output: ''' ... ntpd [ started ] sshd [ started ] local [ started ] aget [ started 158913789952:111795043777380393:111782536832614400 (XAA) ] aget [ started 158913789952:111793325790461990:111782536832614400 (XAA) ] aget [ started 158913789952:111830915344236579:111782536832614400 (XAA) ] aget [ started 158913789952:111829609674178592:111782536832614400 (XAA) ] aget [ started 158913789952:111797036642205720:111782536832614400 (XAA) ] aget [ started 158913789952:111793531948892180:111782536832614400 (XAA) ] Dynamic Runlevel: hotplugged ... ''' Reproducible: Always Steps to Reproduce: 1. On 32 bit arch, boot with init=/sbin/openrc-init kernel parameter 2. Have at least one supervised daemon (fe.: agetty.tty1) running 3. issue rc-status Actual Results: rc-status list gets displayed up to the supervised daemon, than exits with Segmentation Fault, and doesn't display any further daemon statuses. Expected Results: displays the uptime of daemons the same way as on 64 bit archs. Portage 3.0.28 (python 3.9.9-final-0, default/linux/arm/17.0, gcc-11.2.0, glibc-2.33-r7, 4.19.97-raspberrypi-ropi-03+ armv7l) ================================================================= System Settings ================================================================= System uname: Linux-4.19.97-raspberrypi-ropi-03+-armv7l-ARMv7_Processor_rev_5_-v7l-with-glibc2.33 KiB Mem: 998956 total, 768904 free KiB Swap: 641016 total, 641016 free Timestamp of repository gentoo: Wed, 15 Dec 2021 02:45:01 +0000 Head commit of repository gentoo: fb03cbc17bca78574761970e614cb2b1faec9fad sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 3.9.9::gentoo, 3.10.0_p1::gentoo dev-util/cmake: 3.20.5::gentoo dev-util/meson: 0.59.4::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.9::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/clang: 13.0.0::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /usr/portage-nfs sync-type: rsync priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 local location: /var/db/repos/local masters: gentoo ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="@FREE" CBUILD="armv7a-unknown-linux-gnueabihf" CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" CHOST="armv7a-unknown-linux-gnueabihf" CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard" DISTDIR="/usr/portage-distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=y --keep-going=y --buildpkg --usepkg --binpkg-respect-use=y --buildpkg-exclude 'virtual/*' --jobs=2 --load-average 1.3" 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" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-f etch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage-packages" 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" SHELL="/bin/bash" USE="acl alsa arm bzip2 cli crypt curl cvs dri dvb evdev fortran fuse gdbm git gpg gssapi iconv kerberos libglvnd libproxy ncurses nfs nls nptl openmp openssl pam pcre python readline seccomp split-usr sqlite ssl subversion syslog threads udev unicode usb xattr zlib" ADA_TARGET="gnat_2020" 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="load memory syslog write_prometheus bind cpu cpufreq df swap processes interface" CURL_SSL="openssl" 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="libinput" KERNEL="linux" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, L10N, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= sys-apps/openrc-0.44.9::gentoo was built with the following: USE="ncurses netifrc pam unicode -audit -bash -debug -newnet (-selinux) -sysv-utils" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
Thanks. This should be fixed in git already: https://github.com/OpenRC/openrc/pull/484. Can you try https://github.com/OpenRC/openrc/pull/484.patch in /etc/portage/patches? (Initially reported on forums: https://forums.gentoo.org/viewtopic-t-1146117.html).
Maybe it's not exactly the same, but I hit something like this on arm after upgrading to glibc 2.34, and rebuilding OpenRC fixed it.
(In reply to James Le Cuirot from comment #2) > Maybe it's not exactly the same, but I hit something like this on arm after > upgrading to glibc 2.34, and rebuilding OpenRC fixed it. My first guess was that Meson did something like it does for LFS (magically append the arguments) but it doesn't do this for time64!
(also, sorry, I was a bit hasty to drop m68k@ -- even though it's probably what I linked to, m68k is absolutely special enough that it's worth giving it specific care if there's a chance it's related/specific.)
(In reply to James Le Cuirot from comment #2) > Maybe it's not exactly the same, but I hit something like this on arm after > upgrading to glibc 2.34, and rebuilding OpenRC fixed it. OpenRC was already rebuilt since glibc update, and didn't go away. Also, on m68k I use musl instead of glibc, and the problem is present there as well.
(In reply to Sam James from comment #1) > Thanks. This should be fixed in git already: > https://github.com/OpenRC/openrc/pull/484. > > Can you try https://github.com/OpenRC/openrc/pull/484.patch in > /etc/portage/patches? > > (Initially reported on forums: > https://forums.gentoo.org/viewtopic-t-1146117.html). On ARM, the patch fixed the issue. Trying soon on m68k as well... :) Thanks for the hint!
Btw... an other interesting fact: the package itself called sys-apps/openrc-0.44.9, but the applications' versions states 0.44.8... :)
The patch also works on m68k! Big thx to everyone!
(In reply to Barnabás Virágh from comment #8) > The patch also works on m68k! Big thx to everyone! \o/
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc6d7d24bf92fb4b594b0468f9e88fd5144f8e1f commit fc6d7d24bf92fb4b594b0468f9e88fd5144f8e1f Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2021-12-21 00:28:57 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2021-12-21 00:29:33 +0000 sys-apps/openrc: 0.44.10 bump Closes: http://bugs.gentoo.org/829251 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: William Hubbs <williamh@gentoo.org> sys-apps/openrc/Manifest | 1 + sys-apps/openrc/openrc-0.44.10.ebuild | 157 ++++++++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+)