# Scudo ERROR: CHECK failed @ primary32.h:182 (Id) < (NumRegions => => # ) ((u64)op1=536866445, (u64)op2=268435456)

Hi,

My buildx builds recently began emitting:

=> [linux/ppc64le build 5/5] RUN cargo build --release 27.7s
=> => # Scudo ERROR: CHECK failed @ primary32.h:182 (Id) < (NumRegions
=> => # ) ((u64)op1=536867125, (u64)op2=268435456)
=> => # qemu: uncaught target signal 6 (Aborted) - core dumped

And the builds seem to stall for hours on end. buildx fails to properly detect the qemu errors.

This happens with linux/riscv64, linux/ppc64le, and likely other buildx platforms as well.

Is this problem caused by the Docker buildx subsystem? Perhaps the library/alpine and library/debian base images on Docker Hub?

Tried deleting and recreating the buildx builder, same behavior.

Tried docker system prune -f, same behavior.

Tried rebooting, same behavior.

Latest stable Docker Desktop, macOS Sequoia, Apple Silicon.

Qemu is an emulator, so it seems like a problem with emulated architecture so it doesn’t look like directly caused by Docker Desktop unless it is a qemu version issue. If I search for the error message, I find other Qemu topis like this

.

buildx didn’t used to trigger this problem.

Perhaps buildx recently upgraded to a buggy qemu/libvirt version?

Sorry for not replying to your last comment. I was here sometimes but had to leave before clicking this topic. I don’t often use emualtion, and mostly see these kind of error messages shared by others so I didn’t even had to debug emulation errors.

Unless you tried the exact same dockerfile with the same versions of the packages, I guess the reason could also be a changed package or changed hardware or kernel. And yes, an upgraded qemu. Which one caused this, I have no idea. The buildx developers could probably help you figure it out more easily. Or anyone who ever dealt with a similar error.. Or maybe you already solved it after 3 days.

Many buildx targets are still broken with these same qemu errors.

To work around this, I’m having to disable ppc64le, riscv64, and s390x, across all of my Docker image builds.

Dunno why they broke. Note that wine has similar errors when running in Docker on ARM Mac hosts.