* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
@ 2024-07-11 2:03 ` Sergio Durigan Junior
2024-07-11 21:19 ` Bug Watch Updater
` (31 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Sergio Durigan Junior @ 2024-07-11 2:03 UTC (permalink / raw)
To: qemu-devel
** Also affects: qemu via
https://gitlab.com/qemu-project/qemu/-/issues/1913
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Unknown
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
2024-07-11 2:03 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Sergio Durigan Junior
@ 2024-07-11 21:19 ` Bug Watch Updater
2024-07-31 12:56 ` Michał Fita
` (30 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Bug Watch Updater @ 2024-07-11 21:19 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Unknown => New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
2024-07-11 2:03 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Sergio Durigan Junior
2024-07-11 21:19 ` Bug Watch Updater
@ 2024-07-31 12:56 ` Michał Fita
2024-10-01 20:06 ` Sergio Durigan Junior
` (29 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Michał Fita @ 2024-07-31 12:56 UTC (permalink / raw)
To: qemu-devel
I'm using quemu to tweak Armbian Jammy images for Raspberry Pi 5 (so it
would have ldconfig from 22.04) and I have signal 11 when libc
reconfiguration is triggered by apt.
What you may find interesting running the same process of updates on the
same base image on Ubuntu 22.04 (which has qemu 6.2) works fine.
My googling around "libc signal 11 quemu" lead to a lot of people
reporting problems with docker buildx with qemu predating 7.0. This
smells kind of regression in 8.2 used in 24.04. Then the issue linked
above says affected ldconfigs are 2.33 to 2.35...
Does Ubuntu really need to wait for upstream to deal with this? It's a
huge slap in the face for everyone on 24.04 needing to meddle 22.04
ARM64 images.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (2 preceding siblings ...)
2024-07-31 12:56 ` Michał Fita
@ 2024-10-01 20:06 ` Sergio Durigan Junior
2024-10-23 14:26 ` Thomas Irgang
` (28 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Sergio Durigan Junior @ 2024-10-01 20:06 UTC (permalink / raw)
To: qemu-devel
FWIW, I left a comment on the bug report asking for guidance, because it
seems to me that just reverting the commit mentioned above isn't the
right solution (as we'd be reintroducing the bug fixed by the commit).
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (3 preceding siblings ...)
2024-10-01 20:06 ` Sergio Durigan Junior
@ 2024-10-23 14:26 ` Thomas Irgang
2025-01-06 11:05 ` Christian Ehrhardt
` (27 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Thomas Irgang @ 2024-10-23 14:26 UTC (permalink / raw)
To: qemu-devel
Hi, this issue also happens when I try to run debootstrap for Jammy
arm64 on a Noble amd64 host. At the moment I use the workaround to use
ubuntu:jammy workers instead of ubunut:latest. It would be great if this
issue can be fixed soon.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (4 preceding siblings ...)
2024-10-23 14:26 ` Thomas Irgang
@ 2025-01-06 11:05 ` Christian Ehrhardt
2025-01-30 16:19 ` Sergio Durigan Junior
` (26 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Christian Ehrhardt @ 2025-01-06 11:05 UTC (permalink / raw)
To: qemu-devel
Hi,
this came up in our dormant bugs checker ...
There was no reply from upstream yet, but I agree that a blunt revert might be wrong unless they agree.
Sergio reached out, but probably needs to kindly ask again with some extra noise.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (5 preceding siblings ...)
2025-01-06 11:05 ` Christian Ehrhardt
@ 2025-01-30 16:19 ` Sergio Durigan Junior
2025-02-19 12:34 ` Dimitry Andric
` (25 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Sergio Durigan Junior @ 2025-01-30 16:19 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu (Ubuntu)
Assignee: Sergio Durigan Junior (sergiodj) => Lukas Märdian (slyon)
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (6 preceding siblings ...)
2025-01-30 16:19 ` Sergio Durigan Junior
@ 2025-02-19 12:34 ` Dimitry Andric
2025-02-19 12:59 ` Christian Ehrhardt
` (24 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Dimitry Andric @ 2025-02-19 12:34 UTC (permalink / raw)
To: qemu-devel
Upstream has committed https://gitlab.com/qemu-
project/qemu/-/commit/4b7b20a3 which fixes the segfaults. A prerequisite
for the qemu 8.2.2 package in Ubuntu 24.04 is https://gitlab.com/qemu-
project/qemu/-/commit/c81d1faf, so here is a patch that includes both.
** Patch added: "Fix qemu-aarch64-static segfaults"
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2072564/+attachment/5858748/+files/fix-lp2072564-1.diff
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (7 preceding siblings ...)
2025-02-19 12:34 ` Dimitry Andric
@ 2025-02-19 12:59 ` Christian Ehrhardt
2025-02-19 18:14 ` Bug Watch Updater
` (23 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Christian Ehrhardt @ 2025-02-19 12:59 UTC (permalink / raw)
To: qemu-devel
Thank you!
Adding to plucky soon and then planning SRUs as the queue gets freed of the former one in flight.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
New
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (8 preceding siblings ...)
2025-02-19 12:59 ` Christian Ehrhardt
@ 2025-02-19 18:14 ` Bug Watch Updater
2025-02-19 20:29 ` Ubuntu Foundations Team Bug Bot
` (22 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Bug Watch Updater @ 2025-02-19 18:14 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: New => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (9 preceding siblings ...)
2025-02-19 18:14 ` Bug Watch Updater
@ 2025-02-19 20:29 ` Ubuntu Foundations Team Bug Bot
2025-02-26 9:01 ` Launchpad Bug Tracker
` (21 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Ubuntu Foundations Team Bug Bot @ 2025-02-19 20:29 UTC (permalink / raw)
To: qemu-devel
The attachment "Fix qemu-aarch64-static segfaults" seems to be a patch.
If it isn't, please remove the "patch" flag from the attachment, remove
the "patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]
** Tags added: patch
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (10 preceding siblings ...)
2025-02-19 20:29 ` Ubuntu Foundations Team Bug Bot
@ 2025-02-26 9:01 ` Launchpad Bug Tracker
2025-02-26 9:34 ` Christian Ehrhardt
` (20 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Launchpad Bug Tracker @ 2025-02-26 9:01 UTC (permalink / raw)
To: qemu-devel
** Merge proposal linked:
https://code.launchpad.net/~slyon/ubuntu/+source/qemu/+git/qemu/+merge/481930
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (11 preceding siblings ...)
2025-02-26 9:01 ` Launchpad Bug Tracker
@ 2025-02-26 9:34 ` Christian Ehrhardt
2025-02-26 9:46 ` Launchpad Bug Tracker
` (19 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Christian Ehrhardt @ 2025-02-26 9:34 UTC (permalink / raw)
To: qemu-devel
** Also affects: qemu (Ubuntu Noble)
Importance: Undecided
Status: New
** Also affects: qemu (Ubuntu Oracular)
Importance: Undecided
Status: New
** Changed in: qemu (Ubuntu Noble)
Status: New => Triaged
** Changed in: qemu (Ubuntu Oracular)
Status: New => Triaged
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (12 preceding siblings ...)
2025-02-26 9:34 ` Christian Ehrhardt
@ 2025-02-26 9:46 ` Launchpad Bug Tracker
2025-02-26 9:55 ` Launchpad Bug Tracker
` (18 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Launchpad Bug Tracker @ 2025-02-26 9:46 UTC (permalink / raw)
To: qemu-devel
** Merge proposal linked:
https://code.launchpad.net/~slyon/ubuntu/+source/qemu/+git/qemu/+merge/481940
** Merge proposal linked:
https://code.launchpad.net/~slyon/ubuntu/+source/qemu/+git/qemu/+merge/481941
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (13 preceding siblings ...)
2025-02-26 9:46 ` Launchpad Bug Tracker
@ 2025-02-26 9:55 ` Launchpad Bug Tracker
2025-02-26 11:15 ` Lukas Märdian
` (17 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Launchpad Bug Tracker @ 2025-02-26 9:55 UTC (permalink / raw)
To: qemu-devel
** Merge proposal linked:
https://code.launchpad.net/~slyon/ubuntu/+source/qemu/+git/qemu/+merge/481943
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (14 preceding siblings ...)
2025-02-26 9:55 ` Launchpad Bug Tracker
@ 2025-02-26 11:15 ` Lukas Märdian
2025-02-26 15:52 ` Lukas Märdian
` (16 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Lukas Märdian @ 2025-02-26 11:15 UTC (permalink / raw)
To: qemu-devel
** Description changed:
- This affects the qemu-user-static 1:8.2.2+ds-0ubuntu1 package on Ubuntu
- 24.04, running on a amd64 host.
+ [ Impact ]
+
+ * QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
+ arm64 guest
+
+ * 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-static, invocations of ldconfig (actually
+ ldconfig.real) segfault, leading to problems when loading shared
+ libraries.
+
+ [ Test Plan ]
+
+ * Reproducer is very easy:
+
+ $ sudo snap install docker
+ docker 27.5.1 from Canonical** installed
+ $ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
+ Unable to find image 'ubuntu:22.04' locally
+ 22.04: Pulling from library/ubuntu
+ 0d1c17d4e593: Pull complete
+ Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
+ Status: Downloaded newer image for ubuntu:22.04
+
+ # Execute ldconfig.real inside the arm64 guest.
+ # This should not crash after the fix!
+ root@ad80af5378dc:/# /sbin/ldconfig.real
+ qemu: uncaught target signal 11 (Segmentation fault) - core dumped
+ Segmentation fault (core dumped)
+
+ [ Where problems could occur ]
+
+ * This changes the alignment of sections in the ELF binary via QEMUs
+ elfloader, if something goes wrong with this change, it could lead to
+ all kind of crashes (segfault) of any emulated binaries.
+
+ [ Other Info ]
+
+ * Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
+ * Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
+ - Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
+
+ --- original bug report ---
+
+
+ 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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
- $ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
+ $ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
- $ gdb --args qemu-aarch64-static ./ldconfig.real
+ $ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
+ <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff76006c0 (LWP 28378)]
Thread 1 "qemu-aarch64-st" received signal SIGSEGV, Segmentation fault.
0x00007fffe801645b in ?? ()
- (gdb) disassemble
+ (gdb) disassemble
No function contains program counter for selected frame.
It looks like this is a known qemu regression after v8.1.1:
https://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Triaged
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (15 preceding siblings ...)
2025-02-26 11:15 ` Lukas Märdian
@ 2025-02-26 15:52 ` Lukas Märdian
2025-02-27 23:24 ` Launchpad Bug Tracker
` (15 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Lukas Märdian @ 2025-02-26 15:52 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu (Ubuntu)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
In Progress
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (16 preceding siblings ...)
2025-02-26 15:52 ` Lukas Märdian
@ 2025-02-27 23:24 ` Launchpad Bug Tracker
2025-03-04 19:33 ` Michał Fita
` (14 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Launchpad Bug Tracker @ 2025-02-27 23:24 UTC (permalink / raw)
To: qemu-devel
This bug was fixed in the package qemu - 1:9.2.1+ds-1ubuntu3
---------------
qemu (1:9.2.1+ds-1ubuntu3) plucky; urgency=medium
* Fix qemu-aarch64-static segfaults running ldconfig.real (LP: #2072564)
- lp-2072564-elfload-Fix-alignment-when-unmapping-excess-reservat.patch
Thanks to Dimitry Andric for identifying the fix.
-- Lukas Märdian <slyon@ubuntu.com> Wed, 26 Feb 2025 09:56:38 +0100
** Changed in: qemu (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (17 preceding siblings ...)
2025-02-27 23:24 ` Launchpad Bug Tracker
@ 2025-03-04 19:33 ` Michał Fita
2025-03-04 19:47 ` Dimitry Andric
` (13 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Michał Fita @ 2025-03-04 19:33 UTC (permalink / raw)
To: qemu-devel
That's 1.9.x line - is it going to be backported to Noble? That's LTS we
plan to use for next couple of years and this qemu problem is hitting us
hard.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (18 preceding siblings ...)
2025-03-04 19:33 ` Michał Fita
@ 2025-03-04 19:47 ` Dimitry Andric
2025-03-12 16:45 ` Lukas Märdian
` (12 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Dimitry Andric @ 2025-03-04 19:47 UTC (permalink / raw)
To: qemu-devel
If you look at the top of this bug, you can see the two merge requests put in by Lukas, one for noble and one for oracular:
* https://code.launchpad.net/~slyon/ubuntu/+source/qemu/+git/qemu/+merge/481940
* https://code.launchpad.net/~slyon/ubuntu/+source/qemu/+git/qemu/+merge/481943
My guess is that the noble-devel and oracular-devel branches are the
places where the proposed update packages are built from, which will
eventually end up in the regular updates. But no idea how long that
usually takes.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Triaged
Status in qemu source package in Oracular:
Triaged
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (19 preceding siblings ...)
2025-03-04 19:47 ` Dimitry Andric
@ 2025-03-12 16:45 ` Lukas Märdian
2025-04-09 17:37 ` Andreas Hasenack
` (11 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Lukas Märdian @ 2025-03-12 16:45 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu (Ubuntu Noble)
Status: Triaged => In Progress
** Changed in: qemu (Ubuntu Noble)
Assignee: (unassigned) => Lukas Märdian (slyon)
** Changed in: qemu (Ubuntu Oracular)
Assignee: (unassigned) => Lukas Märdian (slyon)
** Changed in: qemu (Ubuntu Oracular)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
In Progress
Status in qemu source package in Oracular:
In Progress
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (20 preceding siblings ...)
2025-03-12 16:45 ` Lukas Märdian
@ 2025-04-09 17:37 ` Andreas Hasenack
2025-04-09 17:40 ` [Bug 2072564] Please test proposed package Andreas Hasenack
` (10 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Andreas Hasenack @ 2025-04-09 17:37 UTC (permalink / raw)
To: qemu-devel
Given this possible regression:
* This changes the alignment of sections in the ELF binary via QEMUs elfloader, if something goes wrong
with this change, it could lead to all kind of crashes (segfault) of any emulated binaries.
Is there something we could do to mitigate it? Perhaps a quick similar
ldconfig test in other emulated scenarios?
** Changed in: qemu (Ubuntu Oracular)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-oracular
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Please test proposed package
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (21 preceding siblings ...)
2025-04-09 17:37 ` Andreas Hasenack
@ 2025-04-09 17:40 ` Andreas Hasenack
2025-04-09 17:43 ` Andreas Hasenack
` (9 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Andreas Hasenack @ 2025-04-09 17:40 UTC (permalink / raw)
To: qemu-devel
Hello Dimitry, or anyone else affected,
Accepted qemu into oracular-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/qemu/1:9.0.2+ds-4ubuntu5.3 in a few
hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
oracular to verification-done-oracular. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-oracular. In either case, without details of your
testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: qemu (Ubuntu Noble)
Status: In Progress => Fix Committed
** Tags added: verification-needed-noble
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Please test proposed package
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (22 preceding siblings ...)
2025-04-09 17:40 ` [Bug 2072564] Please test proposed package Andreas Hasenack
@ 2025-04-09 17:43 ` Andreas Hasenack
2025-04-10 1:26 ` [Bug 2072564] Autopkgtest regression report (qemu/1:9.0.2+ds-4ubuntu5.3) Ubuntu SRU Bot
` (8 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Andreas Hasenack @ 2025-04-09 17:43 UTC (permalink / raw)
To: qemu-devel
Hello Dimitry, or anyone else affected,
Accepted qemu into noble-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/qemu/1:8.2.2+ds-0ubuntu1.7 in a few
hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Autopkgtest regression report (qemu/1:9.0.2+ds-4ubuntu5.3)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (23 preceding siblings ...)
2025-04-09 17:43 ` Andreas Hasenack
@ 2025-04-10 1:26 ` Ubuntu SRU Bot
2025-04-10 3:00 ` [Bug 2072564] Autopkgtest regression report (qemu/1:8.2.2+ds-0ubuntu1.7) Ubuntu SRU Bot
` (7 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Ubuntu SRU Bot @ 2025-04-10 1:26 UTC (permalink / raw)
To: qemu-devel
All autopkgtests for the newly accepted qemu (1:9.0.2+ds-4ubuntu5.3) for oracular have finished running.
The following regressions have been reported in tests triggered by the package:
casper/1.502 (amd64)
glance/2:29.0.0-0ubuntu1 (amd64)
nova/unknown (s390x)
sbuild/0.85.10ubuntu1 (ppc64el)
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].
https://people.canonical.com/~ubuntu-archive/proposed-
migration/oracular/update_excuses.html#qemu
[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions
Thank you!
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Autopkgtest regression report (qemu/1:8.2.2+ds-0ubuntu1.7)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (24 preceding siblings ...)
2025-04-10 1:26 ` [Bug 2072564] Autopkgtest regression report (qemu/1:9.0.2+ds-4ubuntu5.3) Ubuntu SRU Bot
@ 2025-04-10 3:00 ` Ubuntu SRU Bot
2025-04-10 10:45 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Dimitry Andric
` (6 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Ubuntu SRU Bot @ 2025-04-10 3:00 UTC (permalink / raw)
To: qemu-devel
All autopkgtests for the newly accepted qemu (1:8.2.2+ds-0ubuntu1.7) for noble have finished running.
The following regressions have been reported in tests triggered by the package:
glance/2:28.1.0-0ubuntu1 (amd64, arm64, ppc64el)
livecd-rootfs/24.04.87 (s390x)
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].
https://people.canonical.com/~ubuntu-archive/proposed-
migration/noble/update_excuses.html#qemu
[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions
Thank you!
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (25 preceding siblings ...)
2025-04-10 3:00 ` [Bug 2072564] Autopkgtest regression report (qemu/1:8.2.2+ds-0ubuntu1.7) Ubuntu SRU Bot
@ 2025-04-10 10:45 ` Dimitry Andric
2025-04-16 9:09 ` Lukas Märdian
` (5 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Dimitry Andric @ 2025-04-10 10:45 UTC (permalink / raw)
To: qemu-devel
I've tested
https://launchpad.net/ubuntu/+source/qemu/1:8.2.2+ds-0ubuntu1.7/+build/30620359/+files/qemu-
user-static_8.2.2+ds-0ubuntu1.7_amd64.deb, and it solves the problem for
me.
With 8.2.2+ds-0ubuntu1.6, running a Docker container with Ubuntu 22.04,
targeting arm64 on an amd64 host, and upgrading the libc package results
in:
124.7 Processing triggers for libc-bin (2.35-0ubuntu3.9) ...
124.8 Segmentation fault
124.8 Segmentation fault
124.8 dpkg: error processing package libc-bin (--configure):
124.8 installed libc-bin package post-installation script subprocess returned error exit status 139
With 8.2.2+ds-0ubuntu1.7, this problem does not appear, and building the
container works fine.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (26 preceding siblings ...)
2025-04-10 10:45 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Dimitry Andric
@ 2025-04-16 9:09 ` Lukas Märdian
2025-04-16 9:14 ` Lukas Märdian
` (4 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Lukas Märdian @ 2025-04-16 9:09 UTC (permalink / raw)
To: qemu-devel
I verified qemu-user-static 1:9.0.2+ds-4ubuntu5.3 from oracular-
proposed. Looking good!
$ lxc launch --vm ubuntu-daily:oracular lp2072564-oo
$ lxc shell lp2072564-oo
root@lp2072564-oo:~# sudo apt install qemu-user-static # the old, non-proposed version (1:9.0.2+ds-4ubuntu5.2) to confirm the issue
[...]
root@lp2072564-oo:~# sudo snap install docker
2025-04-16T09:00:43Z INFO Waiting for automatic snapd restart...
docker 27.5.1 from Canonical✓ installed
root@lp2072564-oo:~# docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
7b76bc00f23a: Pull complete
Digest: sha256:d80997daaa3811b175119350d84305e1ec9129e1799bba0bd1e3120da3ff52c3
Status: Downloaded newer image for ubuntu:22.04
root@3516ec56fbf6:/# sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
=> I can reproduce the issue on the old version
root@lp2072564-oo:~# vim /etc/apt/sources.list.d/ubuntu.sources # enable -proposed
root@lp2072564-oo:~# apt update
[...]
root@lp2072564-oo:~# apt install -t oracular-proposed qemu-user-static
[...]
Get:1 http://archive.ubuntu.com/ubuntu oracular-proposed/universe amd64 qemu-user-static amd64 1:9.0.2+ds-4ubuntu5.3 [16.7 MB]
[...]
root@lp2072564-oo:~# docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@d31821abb9c9:/# /sbin/ldconfig.real
root@d31821abb9c9:/# echo $?
0
=> Issue is fixed! \o/
** Tags removed: verification-needed-oracular
** Tags added: verification-done-oracular
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (27 preceding siblings ...)
2025-04-16 9:09 ` Lukas Märdian
@ 2025-04-16 9:14 ` Lukas Märdian
2025-05-19 13:51 ` Launchpad Bug Tracker
` (3 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Lukas Märdian @ 2025-04-16 9:14 UTC (permalink / raw)
To: qemu-devel
I verified qemu-user-static 1:8.2.2+ds-0ubuntu1.7 from noble-proposed.
Looking good!
$ lxc launch --vm ubuntu-daily:noble lp2072564-nn
$ lxc shell lp2072564-nn
root@lp2072564-nn:~# sudo apt install qemu-user-static # the old, non-proposed version (1:8.2.2+ds-0ubuntu1.6) to confirm the issue
[...]
root@lp2072564-nn:~# sudo snap install docker
2025-04-16T09:00:47Z INFO Waiting for automatic snapd restart...
docker 27.5.1 from Canonical✓ installed
root@lp2072564-nn:~# docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
7b76bc00f23a: Pull complete
Digest: sha256:d80997daaa3811b175119350d84305e1ec9129e1799bba0bd1e3120da3ff52c3
Status: Downloaded newer image for ubuntu:22.04
root@5de9734cef3a:/# sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
=> I can reproduce the issue on the old version.
root@lp2072564-nn:~# vim /etc/apt/sources.list.d/ubuntu.sources # enable -proposed
root@lp2072564-nn:~# apt update
[...]
root@lp2072564-nn:~# apt install -t noble-proposed qemu-user-static
[...]
Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/universe amd64 qemu-user-static amd64 1:8.2.2+ds-0ubuntu1.7 [14.7 MB]
[...]
root@lp2072564-nn:~# docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@77be7c8cfd66:/# /sbin/ldconfig.real
root@77be7c8cfd66:/# echo $?
0
=> Issue is fixed! \o/
** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (28 preceding siblings ...)
2025-04-16 9:14 ` Lukas Märdian
@ 2025-05-19 13:51 ` Launchpad Bug Tracker
2025-05-19 13:51 ` [Bug 2072564] Update Released Timo Aaltonen
` (2 subsequent siblings)
32 siblings, 0 replies; 33+ messages in thread
From: Launchpad Bug Tracker @ 2025-05-19 13:51 UTC (permalink / raw)
To: qemu-devel
This bug was fixed in the package qemu - 1:9.0.2+ds-4ubuntu5.3
---------------
qemu (1:9.0.2+ds-4ubuntu5.3) oracular; urgency=medium
* d/p/u/lp2049698/*: Add full boot order support on s390x (LP: #2049698)
* Cherry-pick prerequisite for above backport (to avoid FTBFS):
- d/p/u/lp2049698/0-hw-s390x-sclp.c-include-s390-virtio-ccw.h-to-make.patch
* d/qemu-system-data.links: symlink s390-netboot.img -> s390-ccw.img for
backwards compatibility, as the code is now combined.
* Fix qemu-aarch64-static segfaults running ldconfig.real (LP: #2072564)
- lp-2072564-01-linux-user-Honor-elf-alignment-when-placing-images.patch
- lp-2072564-02-elfload-Fix-alignment-when-unmapping-excess-reservat.patch
Thanks to Dimitry Andric for identifying the fix.
-- Lukas Märdian <slyon@ubuntu.com> Thu, 13 Mar 2025 17:18:50 +0100
** Changed in: qemu (Ubuntu Oracular)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Released
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Update Released
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (29 preceding siblings ...)
2025-05-19 13:51 ` Launchpad Bug Tracker
@ 2025-05-19 13:51 ` Timo Aaltonen
2025-05-19 14:15 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Dimitry Andric
2025-05-19 14:25 ` Launchpad Bug Tracker
32 siblings, 0 replies; 33+ messages in thread
From: Timo Aaltonen @ 2025-05-19 13:51 UTC (permalink / raw)
To: qemu-devel
The verification of the Stable Release Update for qemu has completed
successfully and the package is now being released to -updates.
Subsequently, the Ubuntu Stable Release Updates Team is being
unsubscribed and will not receive messages about this bug report. In
the event that you encounter a regression using the package from
-updates please report a new bug using ubuntu-bug and tag the bug report
regression-update so we can easily find any regressions.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Committed
Status in qemu source package in Oracular:
Fix Released
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (30 preceding siblings ...)
2025-05-19 13:51 ` [Bug 2072564] Update Released Timo Aaltonen
@ 2025-05-19 14:15 ` Dimitry Andric
2025-05-19 14:25 ` Launchpad Bug Tracker
32 siblings, 0 replies; 33+ messages in thread
From: Dimitry Andric @ 2025-05-19 14:15 UTC (permalink / raw)
To: qemu-devel
Great, I hope the fix lands in noble too, soon.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Released
Status in qemu source package in Oracular:
Fix Released
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
* [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
` (31 preceding siblings ...)
2025-05-19 14:15 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Dimitry Andric
@ 2025-05-19 14:25 ` Launchpad Bug Tracker
32 siblings, 0 replies; 33+ messages in thread
From: Launchpad Bug Tracker @ 2025-05-19 14:25 UTC (permalink / raw)
To: qemu-devel
This bug was fixed in the package qemu - 1:8.2.2+ds-0ubuntu1.7
---------------
qemu (1:8.2.2+ds-0ubuntu1.7) noble; urgency=medium
* d/p/u/lp2049698/*: Add full boot order support on s390x (LP: #2049698)
* Cherry-pick prerequisite for above backport (to avoid FTBFS):
- d/p/u/lp2049698/0-hw-s390x-sclp.c-include-s390-virtio-ccw.h-to-make.patch
* d/qemu-system-data.links: symlink s390-netboot.img -> s390-ccw.img for
backwards compatibility, as the code is now combined.
[ Michael Tokarev ]
* d/rules: run ./configure in arch-indep build and build some roms from there.
After adding just a few more build-deps to common Build-Depends,
it is now possible to run ./configure in arch-indep step too.
Run ./configure, and switch s390-ccw and vof.bin builds from
ad-hoc instructions to using the regular qemu makefiles.
Move python3-venv dependency from Build-Depend-Arch to Build-Depend
so that ./configure can be run.
[cherry-pick https://salsa.debian.org/qemu-team/qemu/-/commit/5b5a97b]
* Fix qemu-aarch64-static segfaults running ldconfig.real (LP: #2072564)
- lp-2072564-01-linux-user-Honor-elf-alignment-when-placing-images.patch
- lp-2072564-02-elfload-Fix-alignment-when-unmapping-excess-reservat.patch
Thanks to Dimitry Andric for identifying the fix.
-- Lukas Märdian <slyon@ubuntu.com> Thu, 13 Mar 2025 17:15:00 +0100
** Changed in: qemu (Ubuntu Noble)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/2072564
Title:
qemu-aarch64-static segfaults running ldconfig.real (amd64 host)
Status in QEMU:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Noble:
Fix Released
Status in qemu source package in Oracular:
Fix Released
Bug description:
[ Impact ]
* QEMU crashes when running (emulating) ldconfig in a Ubuntu 22.04
arm64 guest
* 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-static, invocations of ldconfig (actually
ldconfig.real) segfault, leading to problems when loading shared
libraries.
[ Test Plan ]
* Reproducer is very easy:
$ sudo snap install docker
docker 27.5.1 from Canonical** installed
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
Unable to find image 'ubuntu:22.04' locally
22.04: Pulling from library/ubuntu
0d1c17d4e593: Pull complete
Digest: sha256:ed1544e454989078f5dec1bfdabd8c5cc9c48e0705d07b678ab6ae3fb61952d2
Status: Downloaded newer image for ubuntu:22.04
# Execute ldconfig.real inside the arm64 guest.
# This should not crash after the fix!
root@ad80af5378dc:/# /sbin/ldconfig.real
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)
[ Where problems could occur ]
* This changes the alignment of sections in the ELF binary via QEMUs
elfloader, if something goes wrong with this change, it could lead to
all kind of crashes (segfault) of any emulated binaries.
[ Other Info ]
* Upstream bug: https://gitlab.com/qemu-project/qemu/-/issues/1913
* Upstream fix: https://gitlab.com/qemu-project/qemu/-/commit/4b7b20a3
- Fix dependency (needed for QEMU < 9.20): https://gitlab.com/qemu-project/qemu/-/commit/c81d1faf
--- original bug report ---
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-static, invocations of ldconfig (actually
ldconfig.real) segfault. For example:
$ docker run -ti --platform linux/arm64/v8 ubuntu:22.04
root@8861ff640a1c:/# /sbin/ldconfig.real
Segmentation fault
If you copy the ldconfig.real binary to the host, and run it directly
via qemu-aarch64-static:
$ gdb --args qemu-aarch64-static ./ldconfig.real
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from qemu-aarch64-static...
Reading symbols from /home/dim/.cache/debuginfod_client/86579812b213be0964189499f62f176bea817bf2/debuginfo...
(gdb) r
Starting program: /usr/bin/qemu-aarch64-static ./ldconfig.real
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[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://gitlab.com/qemu-project/qemu/-/issues/1913
Downgrading the package to qemu-user-
static_8.0.4+dfsg-1ubuntu3_amd64.deb fixes the segfault.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/2072564/+subscriptions
^ permalink raw reply [flat|nested] 33+ messages in thread
end of thread, other threads:[~2025-05-19 14:32 UTC | newest]
Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <172053137048.3332067.13534832802726064667.malonedeb@juju-98d295-prod-launchpad-7>
2024-07-11 2:03 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Sergio Durigan Junior
2024-07-11 21:19 ` Bug Watch Updater
2024-07-31 12:56 ` Michał Fita
2024-10-01 20:06 ` Sergio Durigan Junior
2024-10-23 14:26 ` Thomas Irgang
2025-01-06 11:05 ` Christian Ehrhardt
2025-01-30 16:19 ` Sergio Durigan Junior
2025-02-19 12:34 ` Dimitry Andric
2025-02-19 12:59 ` Christian Ehrhardt
2025-02-19 18:14 ` Bug Watch Updater
2025-02-19 20:29 ` Ubuntu Foundations Team Bug Bot
2025-02-26 9:01 ` Launchpad Bug Tracker
2025-02-26 9:34 ` Christian Ehrhardt
2025-02-26 9:46 ` Launchpad Bug Tracker
2025-02-26 9:55 ` Launchpad Bug Tracker
2025-02-26 11:15 ` Lukas Märdian
2025-02-26 15:52 ` Lukas Märdian
2025-02-27 23:24 ` Launchpad Bug Tracker
2025-03-04 19:33 ` Michał Fita
2025-03-04 19:47 ` Dimitry Andric
2025-03-12 16:45 ` Lukas Märdian
2025-04-09 17:37 ` Andreas Hasenack
2025-04-09 17:40 ` [Bug 2072564] Please test proposed package Andreas Hasenack
2025-04-09 17:43 ` Andreas Hasenack
2025-04-10 1:26 ` [Bug 2072564] Autopkgtest regression report (qemu/1:9.0.2+ds-4ubuntu5.3) Ubuntu SRU Bot
2025-04-10 3:00 ` [Bug 2072564] Autopkgtest regression report (qemu/1:8.2.2+ds-0ubuntu1.7) Ubuntu SRU Bot
2025-04-10 10:45 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Dimitry Andric
2025-04-16 9:09 ` Lukas Märdian
2025-04-16 9:14 ` Lukas Märdian
2025-05-19 13:51 ` Launchpad Bug Tracker
2025-05-19 13:51 ` [Bug 2072564] Update Released Timo Aaltonen
2025-05-19 14:15 ` [Bug 2072564] Re: qemu-aarch64-static segfaults running ldconfig.real (amd64 host) Dimitry Andric
2025-05-19 14:25 ` Launchpad Bug Tracker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).