qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
New
|
Unknown
|
|||
qemu (Ubuntu) |
Triaged
|
Undecided
|
Sergio Durigan Junior |
Bug Description
This affects the qemu-user-static 1:8.2.2+ds-0ubuntu1 package on Ubuntu 24.04, running on a amd64 host.
When running docker containers with Ubuntu 22.04 in them, emulating arm64 with qemu-aarch64-
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly via qemu-aarch64-
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https:/
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-
Reading symbols from /home/dim/
(gdb) r
Starting program: /usr/bin/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[New Thread 0x7ffff76006c0 (LWP 28378)]
Thread 1 "qemu-aarch64-st" received signal SIGSEGV, Segmentation fault.
0x00007fffe801645b in ?? ()
(gdb) disassemble
No function contains program counter for selected frame.
It looks like this is a known qemu regression after v8.1.1:
https:/
Downgrading the package to qemu-user-
Changed in qemu: | |
status: | Unknown → New |
I can confirm that reverting https:/ /gitlab. com/qemu- project/ qemu/-/ commit/ aec338d63bc28f1 f13d5e64c561d7f 1dd0e4b07e, as described in https:/ /gitlab. com/qemu- project/ qemu/-/ issues/ 1913, solves the issue.