Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails when apt is installing libc-bin #199

Closed
3 tasks done
bluecamel opened this issue Feb 12, 2025 · 3 comments
Closed
3 tasks done

Docker build fails when apt is installing libc-bin #199

bluecamel opened this issue Feb 12, 2025 · 3 comments

Comments

@bluecamel
Copy link

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

Our CI recently starting failing with a core dump when apt is instalilng libc-bin. Specifying an older version of the binfmt image works around the issue.

Expected behaviour

No errors and build completes properly.

Actual behaviour

I see the following error:

#34 228.9 Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
#34 229.1 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#34 229.6 Segmentation fault (core dumped)
#34 229.7 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#34 230.1 Segmentation fault (core dumped)
#34 230.1 dpkg: error processing package libc-bin (--configure):
#34 230.1  installed libc-bin package post-installation script subprocess returned error exit status 139

I saw that a new image was recently pushed, so went back to the previous version, which doesn't have this issue:

        with:
          image: tonistiigi/binfmt:qemu-v7.0.0-28

I'm not sure if it matters for this, but we have been on v2 of this action. I did try the latest and it didn't make a difference.

Repository URL

No response

Workflow run URL

No response

YAML workflow

The issue is without any customization of the action:

      - name: Setup QEMU
        uses: docker/setup-qemu-action@v2


I also tried the latest version with the same results.

Workflow logs

No response

BuildKit logs


Additional info

No response

@crazy-max
Copy link
Member

crazy-max commented Feb 12, 2025

Seems a duplicate of #198, let me close this one.

If you could also post on #198 a repro with a Dockerfile and runner used that would be handy. Thanks

@bluecamel
Copy link
Author

Thanks for the response. Sorry, I did look through issues, but didn't notice that there was one that was related. Unfortunately, this is a multi-stage build involving multiple private repos/images. I'll see if I can find a minimal repro and share, though.

@shink
Copy link

shink commented Feb 13, 2025

Same issue for arm64

BalduinLandolt pushed a commit to dasch-swiss/dsp-ingest that referenced this issue Feb 18, 2025
ARM builds have recently stopped working due to
docker/setup-qemu-action#198

Our errors
```
[error] 44.35 Setting up libc-bin (2.35-0ubuntu3.9) ...
[error] 44.48 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
[error] 44.84 Segmentation fault (core dumped)
```
match with what's described in
docker/setup-qemu-action#199

The temporary workaround seems to be pinning qemu to an older version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants