As a simpler reproducer, this segfaults:
sudo snap run --shell maas.supervisor -c 'LD_PRELOAD=$SNAP/lib/libsnapcraft-preload.so cat /etc/hostname'
As a simpler reproducer, this segfaults:
sudo snap run --shell maas.supervisor -c 'LD_PRELOAD= $SNAP/lib/ libsnapcraft- preload. so cat /etc/hostname'