New issue by negrel on void-packages repository https://github.com/void-linux/void-packages/issues/36004 Description: ### System * squashfs-tools *Void 5.13.0-30-generic x86_64 GenuineIntel notuptodate rF* (docker container) * package: *squashfs-tools-4.5_2* ### Expected behavior `mksquashfs` should not segfault. ### Actual behavior `mksquashfs` segfault with the following message when using in buildah container: ``` libgcc_s.so.1 must be installed for pthread_cancel to work container exited on segmentation fault error while running runtime: exit status 1 ``` ### Steps to reproduce the behavior Use mksquashfs on any system without `base` package installed, the docker image for example: ``` docker run --rm voidlinux/voidlinux sh -c "xbps-install -Syu squashfs-tools && mksquashfs / /rootfs.sqsh -e dev proc run sys boot" x86_64-repodata: [1729KB 0%] 54MB/s ETA: 00m00s x86_64-repodata: 1729KB [avg rate: 23GB/s] 2 packages will be downloaded: 2 packages will be installed: lzo-2.10_2 squashfs-tools-4.5_2 Size to download: 211KB Size required on disk: 533KB Space available on disk: 145GB [*] Downloading packages lzo-2.10_2.x86_64.xbps.sig: [512B 100%] 9615KB/s ETA: 00m00s lzo-2.10_2.x86_64.xbps.sig: 512B [avg rate: 9615KB/s] lzo-2.10_2.x86_64.xbps: [40KB 9%] 29MB/s ETA: 00m00s lzo-2.10_2.x86_64.xbps: 40KB [avg rate: 294MB/s] lzo-2.10_2: verifying RSA signature... squashfs-tools-4.5_2.x86_64.xbps.sig: [512B 100%] -- stalled -- ETA: 00m00s squashfs-tools-4.5_2.x86_64.xbps.sig: 512B [avg rate: -- stalled --] squashfs-tools-4.5_2.x86_64.xbps: [170KB 2%] -- stalled -- ETA: 00m00s squashfs-tools-4.5_2.x86_64.xbps: 170KB [avg rate: -- stalled --] squashfs-tools-4.5_2: verifying RSA signature... [*] Collecting package files lzo-2.10_2: collecting files... squashfs-tools-4.5_2: collecting files... [*] Unpacking packages lzo-2.10_2: unpacking ... squashfs-tools-4.5_2: unpacking ... [*] Configuring unpacked packages lzo-2.10_2: configuring ... lzo-2.10_2: installed successfully. squashfs-tools-4.5_2: configuring ... squashfs-tools-4.5_2: installed successfully. 2 downloaded, 2 installed, 0 updated, 2 configured, 0 removed. libgcc_s.so.1 must be installed for pthread_cancel to work Aborted (core dumped) ```