Comment 3 for bug 2036424

Revision history for this message
Olivier Gayot (ogayot) wrote :

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