void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.53k stars 2.12k forks source link

squashfs-tools: please add libgcc as dependency #36004

Open negrel opened 2 years ago

negrel commented 2 years ago

System

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)
sgn commented 2 years ago

Hm, libpthread.so.0 dlopen(2) libgcc_s.so.1. We need to rewrite anything that requires libpthread.so.0 to depends on libgcc, perhap?

negrel commented 2 years ago

I think it will solve the issue, I don't know if it require many packages change but I can help if needed

github-actions[bot] commented 2 years ago

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.