Skip to content

linux/amd64 rockylinux/rockylinux on arm64 host: /usr/bin/coreutils: error while loading shared libraries: librt.so.1: failed to map segment from shared object #307

Description

@zrhoffman

What I did:

docker run --privileged --rm tonistiigi/binfmt --install amd64
docker run -e QEMU_STRACE=1 --rm --platform linux/amd64 rockylinux/rockylinux uname -a

Expected result:

Linux 6f82a1e3318b 6.18.15-400.asahi.fc43.aarch64+16k #1 SMP PREEMPT_DYNAMIC Wed Mar  4 13:50:25 UTC 2026 x86_64 GNU/Linux

Actual result:

$ docker run --privileged --rm tonistiigi/binfmt --install amd64
Unable to find image 'tonistiigi/binfmt:latest' locally
latest: Pulling from tonistiigi/binfmt
db3b36a9c1d3: Pull complete
e92b65d92a26: Pull complete
44136fa355b3: Download complete
c129f1340832: Download complete
c7653751a2eb: Download complete
Digest: sha256:d3b963f787999e6c0219a48dba02978769286ff61a5f4d26245cb6a6e5567ea3
Status: Downloaded newer image for tonistiigi/binfmt:latest
installing: amd64 OK
{
  "supported": [
    "linux/arm64",
    "linux/amd64",
    "linux/amd64/v2"
  ],
  "emulators": [
    "qemu-x86_64"
  ]
}
$ docker run -e QEMU_STRACE=1 --rm --platform linux/amd64 rockylinux/rockylinux uname -a
Unable to find image 'rockylinux/rockylinux:latest' locally
latest: Pulling from rockylinux/rockylinux
71cc2ddb2ecf: Pull complete
Digest: sha256:fc370d748f4cd1e6ac3d1b6460fb82201897fa15a16f43e947940df5aca1a56e
Status: Downloaded newer image for rockylinux/rockylinux:latest
1 brk(NULL) = 0x0000555555751000
1 arch_prctl(12289,281472573324368,281472422506144,353,281472424663672,562823976) = -1 errno=22 (Invalid argument)
1 uname(0xffff70bf3830) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(-100,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = 3
1 fstat(3,0x0000ffff70bf2e60) = 0
1 mmap(NULL,7371,PROT_READ,MAP_PRIVATE,3,0) = 0x0000ffff703a4000
1 close(3) = 0
1 openat(-100,"/lib64/librt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x70bf2fc8,832) = 832
1 fstat(3,0x0000ffff70bf2e60) = 0
1 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000ffff703a0000
1 mmap(NULL,2128832,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x0000ffff70198000
1 mprotect(0x0000ffff7019f000,2093056,PROT_NONE) = 0
1 mmap(0x0000ffff7039e000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6000) = -1 errno=14 (Bad address)
1 close(3) = 0
1 writev(2,0xffff70bf2b10,0xa)/usr/bin/coreutils: error while loading shared libraries: librt.so.1: failed to map segment from shared object
 = 111
1 exit_group(127)

Additional info:

$ docker --version
Docker version 29.3.0, build 1.fc43

Using other images like debian or almalinux make the command succeed.

This is on Asahi Linux 43.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions