-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Qemu fails since ubuntu-24.04 20250202.1.0 #11662
Comments
Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating. |
Just to add a bit of context. There are number of threads around docker/setup-qemu-action, tonistiigi/binfmt image, buildx, etc. discussing this. The most useful comment I have seen so far is: docker/buildx#2841 (comment) |
Hello @kohtala - Executed the workflow shared in one of the mentioned related issue #11561 . The workflow completed successfully. Let me know if I am missing something. |
Builds that had consistently succeeded started to consistently fail with the same qemu binary on runner-image upgrade from 20250126.1.0 to 20250202.1.0. Since the problem appeared when nothing changed in qemu, but at the runner-image change, I find it unlikely it is caused by qemu. qemu has since been upgraded and the time the failure happens changed, but nevertheless it still fails. The same qemu build works on workstations running the upstream Ubuntu kernel. Only difference between failures and successes I find is in the kernel. @ankudinov pointed, it might be in the buildx. I suspect the build performed in the #11561 is too small. I tried my workflow just a while ago and get the segmentation fault consistently now when it's installing libc-bin under qemu:
I'll try to return to testing this with only this libc-bin install. I suspect if you setup the qemu from tonistiigi/binfmt@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55, your test workflow might hit the problem in the old position, where builds used to succeed with 20250126.1.0 and before. But unfortunately I now have to go and try to return to this later. |
https://gitlab.com/qemu-project/qemu/-/issues/1913 might be related, its fix is in release 9.2.2 |
Part of the challenge is that it's not possible to rollback to old image on public Github runners to test old kernel configuration. Anyone running self-hosted runners is certainly in a better position. There is another great thread here: tonistiigi/binfmt#215 (comment) |
Since the issue mentions ldconfig, which indeed can be segfaulting during libc-bin setup, I checked if the ldconfig is any different in the builds. The docker.io/library/buildpack-deps:bullseye has been different in each build, but the ldconfig binary was exactly the same in all buildpack-deps images. Last successful build
First failed build
Last failed build
I also tested if the current |
We used ubuntu-22.04 as a workaround before,
|
Description
Issues #11471, #11557 and #11561 have been closed on false claim it would be a partner image issue. The partner-runner-image repo confirms this is not in their image: actions/partner-runner-images#52
Builds segfault on the x64 GitHub runner image.
I find there is tonistiigi/binfmt#215 on the qemu being used, but this issue appeared without a change to qemu on an ubuntu-24.04 image upgrade from 20250126.1.0 to 20250202.1.0. While they have done some study on qemu and Linux kernel patches, they have been unable to find a fix on the qemu to get this working.
Platforms affected
Runner images affected
Image version and build link
20250202.1.0 https://github.com/okoko/qpid-cpp-docker/actions/runs/13233057744/job/36933224760
20250209.1.0 https://github.com/okoko/qpid-cpp-docker/actions/runs/13517577090/job/37769409633
Is it regression?
Yes. 20250126.1.0 https://github.com/okoko/qpid-cpp-docker/actions/runs/13105871226
Expected behavior
The build to pass without segmentation fault. Like it used to
Actual behavior
Regardless of the version of qemu, the build fails with segmentation fault.
Build with recently updated tonistiigi/binfmt:latest build has
Build with the same tonistiigi/binfmt:latest image as in the latest successful build, but newer ubuntu-24.04 runner image:
Repro steps
The text was updated successfully, but these errors were encountered: