Skip to content

ci: pin newer QEMU binfmt to fix arm64 build segfault#5

Merged
ehsan6sha merged 2 commits into
mainfrom
fix/qemu-binfmt-segfault
Jun 18, 2026
Merged

ci: pin newer QEMU binfmt to fix arm64 build segfault#5
ehsan6sha merged 2 commits into
mainfrom
fix/qemu-binfmt-segfault

Conversation

@ehsan6sha

Copy link
Copy Markdown
Member

Problem

The arm64 cross-build under QEMU emulation on the amd64 GitHub runner segfaults during apt-get install (Dockerfile:116):

qemu: uncaught target signal 11 (Segmentation fault) - core dumped
dpkg: error processing package libc-bin (--configure): ... exit status 139

This is a QEMU user-mode emulation crash while dpkg runs libc-bin's post-install trigger — not a Dockerfile or code change. The same Dockerfile built green on the prior main pushes (2026-05-29/30); only the runner's bundled QEMU regressed.

Fix

Pin a newer QEMU via tonistiigi/binfmt in the setup-qemu-action step, which installs an emulator without the libc-bin segfault.

Validation

This PR's own CI build exercises the arm64 apt-get layer under the new QEMU — a green build here confirms the fix before it reaches main / :release. (PR builds don't push :release; that happens on merge to main.)

Note: :latest always resolves to a recent QEMU; pin to a specific qemu-vX.Y.Z if reproducibility is preferred over a moving tag.

🤖 Generated with Claude Code

ehsan6sha and others added 2 commits June 18, 2026 17:01
The arm64 cross-build under QEMU emulation on the amd64 runner segfaults
("qemu: uncaught target signal 11 (Segmentation fault)") while dpkg runs
libc-bin's post-install trigger during `apt-get install` (Dockerfile:116),
failing the build with dpkg exit 139.

This is a QEMU user-mode emulation bug, not a Dockerfile/code change: the same
Dockerfile built green on the prior main pushes (2026-05-29/30); only the
GitHub runner's bundled QEMU regressed. Pin a newer QEMU via tonistiigi/binfmt
so setup-qemu-action installs an emulator without the libc-bin segfault.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ehsan6sha ehsan6sha merged commit 6bf006a into main Jun 18, 2026
2 checks passed
@ehsan6sha ehsan6sha deleted the fix/qemu-binfmt-segfault branch June 18, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant