void-linux / void-linux/void-packages

squashfs-tools: please add libgcc as dependency

Open
#36,004 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the provided Docker command and inspect the squashfs-tools package metadata for its runtime dependencies. Add libgcc as a dependency, then rerun the same mksquashfs command in an image without the base package and confirm that it completes without the libgcc_s.so.1 error or a segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.