Bug#944726: systemd undefined symbol

2019-11-15 Thread Michael Biebl
Am 15.11.19 um 11:30 schrieb Sorin Manolache:

> As a side, I think having systemd depend on libraries deployed in /usr
> is a bad idea. More generally, using tools (e.g. /usr/bin/find) in the
> pre-mount phase of the boot process that either are deployed in /usr or
> depend on libs in /usr is, in my opinion, a bad idea.

Late-mounting of/usr is no longer supported since Debian 9:
https://www.debian.org/releases/oldstable/amd64/release-notes/ch-information.de.html#late-mounting-usr

Depending on libraries in /usr is totally fine

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-15 Thread Sorin Manolache

On 14/11/2019 21.31, Michael Biebl wrote:

Am 14.11.19 um 20:26 schrieb Sorin Manolache:

I copy the new binaries from

/usr/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu.


Please don't do that. The only reasonable solution is to remove any
stale libraries you have copied/installed manually.


I was aware of the risks.

The reason why I did it was because I have a custom kernel without 
initrd and / and /usr are on a different disk partitions. Since systemd 
needs libs in /usr/lib the system didn't boot. So I've copied the 
necessary libs from /usr to /lib.


As a side, I think having systemd depend on libraries deployed in /usr 
is a bad idea. More generally, using tools (e.g. /usr/bin/find) in the 
pre-mount phase of the boot process that either are deployed in /usr or 
depend on libs in /usr is, in my opinion, a bad idea.


--
Sorin



Bug#944726: systemd undefined symbol

2019-11-14 Thread Jan Sindelar
On Thu, Nov 14, 2019 at 11:48:14PM +0100, Michael Biebl wrote:
> Is this a system that has been restored from a backup?
It never was.

> Maybe some usr-merge related oddity.
> Michael
This system was originally installed as jessie long time ago and according
to versions of orphaned libraries it seems to me there was some problem in
upgrade between stretch and wheezy (orphaned libraries has versions found in
stretch). So it is probably local bug and not Debian bug at all.
Anyway thank you very much for your help.
Jan



Bug#944726: systemd undefined symbol

2019-11-14 Thread Michael Biebl
Am 14.11.19 um 20:26 schrieb Sorin Manolache:
> I had the same problem. The cause were some old libs in
> /lib/x86_64-linux-gnu, especially a libseccomp. They are not
> package-managed (i.e. they don't belong to any package). I have copied
> them manually from /usr/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu
> some time ago. The new libseccomp2 package shipped new binaries to
> /usr/lib/x86_64-linux-gnu but the runtime loader loaded the old version
> in /lib/x86_64-linux-gnu.

The order in which the dynamic linker search for libraries is defined in

$ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-14 Thread Michael Biebl
Am 14.11.19 um 23:27 schrieb Jan Sindelar:
> Actually I have found a bunch of libraries not owned by any package
> (according to dpkg) in this directory and I am pretty sure I never manually
> copied them. Clearly this bug is not related to systemd, but I am not sure
> where should I report it.

Is this a system that has been restored from a backup?
Maybe some usr-merge related oddity.

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-14 Thread Jan Sindelar
On Thu, Nov 14, 2019 at 10:52:50PM +0100, Michael Biebl wrote:
> Hi,
> I suppose
> dpkg -S /lib/x86_64-linux-gnu/libseccomp.so.2
> yields nothing.
Hello,  
preciselly right, there was stalled version of libseccomp.so.2 in
/lib/x86_64-linux-gnu and removing it helped.

> Which confirms what Sorin also wrote:
> You have a library libseccomp.so.2 which is not actually provided by a
> debian package.
> Libraries in /lib are preferred over libraries in /usr/lib.
> So it overrides /usr/lib/x86_64-linux-gnu/libseccomp.so.2 which is
> provided by libseccomp2 and thus breaks systemd (or any other user of
> libseccomp).
> 
> You need to remove that local copy/installation of
> /lib/x86_64-linux-gnu/libseccomp.so.*, then run ldconfig and your
> problem should be fixed.
> 
> I'm closing this bug report, as this is not something that can be fixed
> in systemd.

Actually I have found a bunch of libraries not owned by any package
(according to dpkg) in this directory and I am pretty sure I never manually
copied them. Clearly this bug is not related to systemd, but I am not sure
where should I report it.
Thank you.
Jan



Bug#944726: systemd undefined symbol

2019-11-14 Thread Jan Sindelar
Hello,

On Thu, Nov 14, 2019 at 05:19:32PM +0100, Michael Biebl wrote:
> Am 14.11.19 um 17:16 schrieb Michael Biebl:
> > For the failing binary, please run
> > ldd /path/to/binary
> > and attach the output to this bug report.
> I see from your systemd-delta.txt output:
> systemd-delta: symbol lookup error:
> /lib/systemd/libsystemd-shared-243.so: undefined symbol: seccomp_api_get
The exact error messege was:

/sbin/init: symbol lookup error: /lib/systemd/libsystemd-shared-243.so: 
undefined symbol: seccomp_api_get
Then kernel panicked.

Previously I filled this message in reportbug but probably in wrong place
of form, sorry.

> Please attach the output of
> ldd /lib/systemd/libsystemd-shared-243.so
There is ldd output:

ldd /lib/systemd/libsystemd-shared-243.so
linux-vdso.so.1 (0x7ffed0341000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f07ed929000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x7f07ed921000)
libacl.so.1 => /usr/lib/x86_64-linux-gnu/libacl.so.1 
(0x7f07ed916000)
libcryptsetup.so.12 => /lib/x86_64-linux-gnu/libcryptsetup.so.12 
(0x7f07ed8a8000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 
(0x7f07ed78b000)
libip4tc.so.2 => /usr/lib/x86_64-linux-gnu/libip4tc.so.2 
(0x7f07ed781000)
libkmod.so.2 => /lib/x86_64-linux-gnu/libkmod.so.2 (0x7f07ed568000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 
(0x7f07ed507000)
libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 
(0x7f07ed2c2000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 
(0x7f07ed296000)
libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 
(0x7f07ed276000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x7f07ed24d000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 
(0x7f07ed229000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 
(0x7f07ed1d3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7f07ed1b2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f07ecff2000)
/lib64/ld-linux-x86-64.so.2 (0x55ec7abcd000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x7f07ecfe9000)
libdevmapper.so.1.02.1 => /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 
(0x7f07ecf7d000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 
(0x7f07ecc9)
libargon2.so.1 => /usr/lib/x86_64-linux-gnu/libargon2.so.1 
(0x7f07ecc86000)
libjson-c.so.4 => /usr/lib/x86_64-linux-gnu/libjson-c.so.4 
(0x7f07ecc74000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 
(0x7f07ecc51000)
libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 
(0x7f07ecbcc000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f07ecbc5000)
libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 
(0x7f07eca43000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x7f07eca18000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f07ec8d3000)

There is also ldd output on systemd:

ldd /lib/systemd/systemd
linux-vdso.so.1 (0x7ffed78a2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fc23a6a1000)
libsystemd-shared-243.so => /lib/systemd/libsystemd-shared-243.so 
(0x7fc23a3f2000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7fc23a3e7000)
libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 
(0x7fc23a1a2000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 
(0x7fc23a176000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 
(0x7fc23a115000)
libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x7fc23a102000)
libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 
(0x7fc23a0d7000)
libkmod.so.2 => /lib/x86_64-linux-gnu/libkmod.so.2 (0x7fc239ec)
libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 
(0x7fc239caf000)
/lib64/ld-linux-x86-64.so.2 (0x55dae2f68000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x7fc239ca7000)
libacl.so.1 => /usr/lib/x86_64-linux-gnu/libacl.so.1 
(0x7fc239c9c000)
libcryptsetup.so.12 => /lib/x86_64-linux-gnu/libcryptsetup.so.12 
(0x7fc239c2c000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 
(0x7fc239b0f000)
libip4tc.so.2 => /usr/lib/x86_64-linux-gnu/libip4tc.so.2 
(0x7fc239b05000)
libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 
(0x7fc239ae5000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x7fc239abc000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 
(0x7fc239a9a000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 
(0x7fc239a42000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 

Bug#944726: systemd undefined symbol

2019-11-14 Thread Michael Biebl
Am 14.11.19 um 20:26 schrieb Sorin Manolache:

I copy the new binaries from
> /usr/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu.

Please don't do that. The only reasonable solution is to remove any
stale libraries you have copied/installed manually.

You might have to run ldconfig afterwards.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-14 Thread Sorin Manolache

On Thu, 14 Nov 2019 17:19:32 +0100 Michael Biebl  wrote:

Am 14.11.19 um 17:16 schrieb Michael Biebl:
> For the failing binary, please run
> ldd /path/to/binary
> 
> and attach the output to this bug report.


I see from your systemd-delta.txt output:
systemd-delta: symbol lookup error:
/lib/systemd/libsystemd-shared-243.so: undefined symbol: seccomp_api_get

Please attach the output of
ldd /lib/systemd/libsystemd-shared-243.so


Hello,

I had the same problem. The cause were some old libs in 
/lib/x86_64-linux-gnu, especially a libseccomp. They are not 
package-managed (i.e. they don't belong to any package). I have copied 
them manually from /usr/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu 
some time ago. The new libseccomp2 package shipped new binaries to 
/usr/lib/x86_64-linux-gnu but the runtime loader loaded the old version 
in /lib/x86_64-linux-gnu.


The problem disappears if either I remove the old libs from 
/lib/x86_64-linux-gnu or if I copy the new binaries from 
/usr/lib/x86_64-linux-gnu to /lib/x86_64-linux-gnu.


HTH,
Sorin



Bug#944726: systemd undefined symbol

2019-11-14 Thread Michael Biebl
Control: severity -1 normal

Am 14.11.19 um 13:22 schrieb Jan Sindelar:
> Package: systemd
> Version: 243-5
> Severity: critical
> Justification: breaks the whole system
> 
> Dear Maintainer,
> 
>* What led up to the situation?
> Installing latest systemd package using apt full-upgrade in testing
> 
>* What exactly did you do (or not do) that was effective (or
>  ineffective)?
>* What was the outcome of this action?
> Unbootable system
> 
>* What outcome did you expect instead?
> Normal boot

Downgrading to normal since I'm pretty sure this is not a general issue
but possibly something caused by a locally installed library.
Once we have failure message we can further investigate.

For the failing binary, please run
ldd /path/to/binary

and attach the output to this bug report.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-14 Thread Michael Biebl
Am 14.11.19 um 17:16 schrieb Michael Biebl:
> For the failing binary, please run
> ldd /path/to/binary
> 
> and attach the output to this bug report.

I see from your systemd-delta.txt output:
systemd-delta: symbol lookup error:
/lib/systemd/libsystemd-shared-243.so: undefined symbol: seccomp_api_get

Please attach the output of
ldd /lib/systemd/libsystemd-shared-243.so
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-14 Thread Michael Biebl
Control: tags -1 + moreinfo

Am 14.11.19 um 13:22 schrieb Jan Sindelar:
> Package: systemd
> Version: 243-5
> Severity: critical
> Justification: breaks the whole system
> 
> Dear Maintainer,
> 
>* What led up to the situation?
> Installing latest systemd package using apt full-upgrade in testing
> 
>* What exactly did you do (or not do) that was effective (or
>  ineffective)?
>* What was the outcome of this action?
> Unbootable system
> 
>* What outcome did you expect instead?
> Normal boot

Please attach an exact error message you are seeing, especially
regarding the undefined symbol.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#944726: systemd undefined symbol

2019-11-14 Thread Jan Sindelar
Package: systemd
Version: 243-5
Severity: critical
Justification: breaks the whole system

Dear Maintainer,

   * What led up to the situation?
Installing latest systemd package using apt full-upgrade in testing

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
Unbootable system

   * What outcome did you expect instead?
Normal boot



-- Package-specific info:

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (90, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-grml-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), 
LANGUAGE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages systemd depends on:
ii  adduser  3.118
ii  libacl1  2.2.53-5
ii  libapparmor1 2.13.3-6
ii  libaudit11:2.8.5-2
ii  libblkid12.34-0.1
ii  libc62.29-3
ii  libcap2  1:2.27-1
ii  libcryptsetup12  2:2.2.1-1
ii  libgcrypt20  1.8.5-3
ii  libgnutls30  3.6.10-4
ii  libgpg-error01.36-7
ii  libidn2-02.2.0-2
ii  libip4tc21.8.3-2
ii  libkmod2 26-3
ii  liblz4-1 1.9.2-1
ii  liblzma5 5.2.4-1+b1
ii  libmount12.34-0.1
ii  libpam0g 1.3.1-5
ii  libpcre2-8-0 10.32-5+b1
ii  libseccomp2  2.4.1-2
ii  libselinux1  2.9-2+b2
ii  libsystemd0  243-5
ii  mount2.34-0.1
ii  util-linux   2.34-0.1

Versions of packages systemd recommends:
ii  dbus1.12.16-2
iu  libpam-systemd  243-5

Versions of packages systemd suggests:
ii  policykit-10.105-26
iu  systemd-container  243-5

Versions of packages systemd is related to:
pn  dracut   
ii  initramfs-tools  0.135
ii  udev 243-5

-- no debconf information
systemd-delta: symbol lookup error: /lib/systemd/libsystemd-shared-243.so: 
undefined symbol: seccomp_api_get
==> /var/lib/systemd/deb-systemd-helper-enabled/acpi-fakekey.service.dsh-also 
<==
/etc/systemd/system/sockets.target.wants/acpi-fakekey.socket
/etc/systemd/system/multi-user.target.wants/acpi-fakekey.service

==> /var/lib/systemd/deb-systemd-helper-enabled/keyboard-setup.service.dsh-also 
<==
/etc/systemd/system/sysinit.target.wants/keyboard-setup.service

==> /var/lib/systemd/deb-systemd-helper-enabled/avahi-daemon.service.dsh-also 
<==
/etc/systemd/system/multi-user.target.wants/avahi-daemon.service
/etc/systemd/system/sockets.target.wants/avahi-daemon.socket
/etc/systemd/system/dbus-org.freedesktop.Avahi.service

==> /var/lib/systemd/deb-systemd-helper-enabled/unbound.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/unbound.service

==> 
/var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/e2scrub_all.timer
 <==

==> 
/var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/apt-daily.timer 
<==

==> 
/var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/man-db.timer <==

==> 
/var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/apt-daily-upgrade.timer
 <==

==> 
/var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/logrotate.timer 
<==

==> 
/var/lib/systemd/deb-systemd-helper-enabled/timers.target.wants/exim4-base.timer
 <==

==> /var/lib/systemd/deb-systemd-helper-enabled/tlp.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/tlp.service

==> /var/lib/systemd/deb-systemd-helper-enabled/virtlogd.socket.dsh-also <==
/etc/systemd/system/sockets.target.wants/virtlogd.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/udisks2.service.dsh-also <==
/etc/systemd/system/graphical.target.wants/udisks2.service

==> /var/lib/systemd/deb-systemd-helper-enabled/lvm2-lvmpolld.socket.dsh-also 
<==
/etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket

==> 
/var/lib/systemd/deb-systemd-helper-enabled/graphical.target.wants/udisks2.service
 <==

==> 
/var/lib/systemd/deb-systemd-helper-enabled/graphical.target.wants/rtkit-daemon.service
 <==

==> /var/lib/systemd/deb-systemd-helper-enabled/dm-event.service.dsh-also <==
/etc/systemd/system/sysinit.target.wants/dm-event.service

==> /var/lib/systemd/deb-systemd-helper-enabled/hostapd.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/hostapd.service

==> 
/var/lib/systemd/deb-systemd-helper-enabled/apt-daily-upgrade.timer.dsh-also <==
/etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer

==> /var/lib/systemd/deb-systemd-helper-enabled/sfacctd.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/sfacctd.service

==> /var/lib/systemd/deb-systemd-helper-enabled/uuidd.service.dsh-also <==
/etc/systemd/system/sockets.target.wants/uuidd.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/atopacct.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/atopacct.service

==>