[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#981068: [arm64] ldconfig segfaults inside a qemu-aarch64-static chroot



control: reassign -1 qemu-user-static
control: found -1 qemu-user-static/1:3.1+dfsg-8
control: close -1 1:5.0-1
control: affects -1 libc6

On 2021-01-25 23:13, Domenico Andreoli wrote:
> Package: libc-bin
> Version: 2.31-7
> 
> The issue is reproducible inside a arm64 chroot, on a amd64 host,
> via qemu-aarch64-static. No problems on a native arm64.
> 
> Package upgrade fails with segmentation fault on post-installation,
> it's ldconfig:
> 
> # dpkg -i libc-bin_2.31-7_arm64.deb
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> (Reading database ... 50524 files and directories currently installed.)
> Preparing to unpack libc-bin_2.31-7_arm64.deb ...
> Unpacking libc-bin (2.31-7) over (2.31-6) ...
> Setting up libc-bin (2.31-7) ...
> qemu: uncaught target signal 11 (Segmentation fault) - core dumped
> Segmentation fault
> qemu: uncaught target signal 11 (Segmentation fault) - core dumped
> Segmentation fault
> dpkg: error processing package libc-bin (--install):
>  installed libc-bin package post-installation script subprocess returned error exit status 139
> Processing triggers for man-db (2.9.3-2) ...
> Errors were encountered while processing:
>  libc-bin
> #
> 
> # ldconfig -v
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> Unknown host QEMU_IFLA type: 50
> Unknown host QEMU_IFLA type: 51
> qemu: uncaught target signal 11 (Segmentation fault) - core dumped
> qemu: uncaught target signal 11 (Segmentation fault) - core dumped
> zsh: segmentation fault  ldconfig -v
> #
> 
> The issue is introduced with --enable-static-pie on -7, downgrading to
> -6 or rebuilding -9 without --enable-static-pie makes the problem go away.

PIE support on arm64 requires at least qemu version 5.0. Please upgrade
your qemu version.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

Attachment: signature.asc
Description: PGP signature


Reply to: