Some binaries under /snap/subiquity/.../usr/bin on s390x use the libc from within the snap (they work properly) whereas others use the libc from outside the snap (/lib/s390x-linux-gnu) and they fail.
root@ubuntu-server:/# ldd /snap/subiquity/current/usr/bin/zstd linux-vdso64.so.1 (0x000003ffe1ead000) libz.so.1 => /snap/core22/current/lib/s390x-linux-gnu/libz.so.1 (0x000003ffb6580000) liblzma.so.5 => /snap/core22/current/lib/s390x-linux-gnu/liblzma.so.5 (0x000003ffb6500000) liblz4.so.1 => /snap/core22/current/lib/s390x-linux-gnu/liblz4.so.1 (0x000003ffb6480000) libc.so.6 => /snap/core22/current/lib/s390x-linux-gnu/libc.so.6 (0x000003ffb6280000) /snap/core22/current/lib/ld64.so.1 => /lib/ld64.so.1 (0x000003ffb6700000) root@ubuntu-server:/# /snap/subiquity/current/usr/bin/zstd stdin is a console, aborting root@ubuntu-server:/# ldd /snap/subiquity/current/usr/bin/distro-info linux-vdso64.so.1 (0x000003ffdd2c8000) libc.so.6 => /lib/s390x-linux-gnu/libc.so.6 (0x000003ffa3b80000) /snap/core22/current/lib/ld64.so.1 => /lib/ld64.so.1 (0x000003ffa3f00000) root@ubuntu-server:/# /snap/subiquity/current/usr/bin/distro-info *** stack smashing detected ***: terminated Aborted (core dumped)
This looks somewhat related to snapcraft patchelf. See binary patching at https://snapcraft.io/docs/linters-classic
Some binaries under /snap/subiquity /.../usr/ bin on s390x use the libc from within the snap (they work properly) whereas others use the libc from outside the snap (/lib/s390x- linux-gnu) and they fail.
root@ubuntu- server: /# ldd /snap/subiquity /current/ usr/bin/ zstd d000) current/ lib/s390x- linux-gnu/ libz.so. 1 (0x000003ffb658 0000) current/ lib/s390x- linux-gnu/ liblzma. so.5 (0x000003ffb650 0000) current/ lib/s390x- linux-gnu/ liblz4. so.1 (0x000003ffb648 0000) current/ lib/s390x- linux-gnu/ libc.so. 6 (0x000003ffb628 0000) core22/ current/ lib/ld64. so.1 => /lib/ld64.so.1 (0x000003ffb670 0000) server: /# /snap/subiquity /current/ usr/bin/ zstd server: /# ldd /snap/subiquity /current/ usr/bin/ distro- info 8000) linux-gnu/ libc.so. 6 (0x000003ffa3b8 0000) core22/ current/ lib/ld64. so.1 => /lib/ld64.so.1 (0x000003ffa3f0 0000) server: /# /snap/subiquity /current/ usr/bin/ distro- info
linux-vdso64.so.1 (0x000003ffe1ea
libz.so.1 => /snap/core22/
liblzma.so.5 => /snap/core22/
liblz4.so.1 => /snap/core22/
libc.so.6 => /snap/core22/
/snap/
root@ubuntu-
stdin is a console, aborting
root@ubuntu-
linux-vdso64.so.1 (0x000003ffdd2c
libc.so.6 => /lib/s390x-
/snap/
root@ubuntu-
*** stack smashing detected ***: terminated
Aborted (core dumped)
This looks somewhat related to snapcraft patchelf. See binary patching at https:/ /snapcraft. io/docs/ linters- classic