Getting "qemu: uncaught target signal 11 (Segmentation fault)" when the installing "libc-bin" which "wget" depends on.

Bug #1924231 reported by Yasuhiro Horimoto
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

the QEMU release version where the bug was found.

apt list --installed | grep qemu
qemu-user-static/focal-updates,focal-security,now 1:4.2-3ubuntu6.14 amd64 [installed]

The installing "libc-bin" which "wget" depends on crashes as below when we execute docker image of Debian GNU/Linux bullseye for ARM64 on Ubuntu 20.04 for AMD64.
This problem also occurs on CI(GitHub Actions)(https://github.com/groonga/groonga/runs/2338497272?check_suite_focus=true#step:11:127).
Probably, The cause of this crash is https://bugs.launchpad.net/qemu/+bug/1749393.
This bug has already been fixed in qemu-user-static pacakge for Ubuntu 20.10.

However, this fix is not included in qemu-user-static pacakge for Ubuntu 20.04.
Currently, GitHub Actions does not support Ubuntu 20.10.
Therefore, this problem is still happening in CI.

Would it be possible for you to backport this fix into Ubuntu 20.04?

How to reproduce:

sudo apt install -y qemu-user-static docker.io
sudo docker run --rm arm64v8/debian:bullseye bash -c 'apt update && apt install -y wget'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://deb.debian.org/debian bullseye InRelease [142 kB]
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [40.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 Packages [8084 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [808 B]
Fetched 8311 kB in 4s (2001 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
2 packages can be upgraded. Run 'apt list --upgradable' to see them.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates libpsl5 openssl publicsuffix
The following NEW packages will be installed:
  ca-certificates libpsl5 openssl publicsuffix wget
0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded.
Need to get 2111 kB of archives.
After this operation, 5844 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 openssl arm64 1.1.1k-1 [829 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 ca-certificates all 20210119 [158 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 libpsl5 arm64 0.21.0-1.2 [57.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 wget arm64 1.21-1 [946 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 publicsuffix all 20210108.1309-1 [121 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2111 kB in 0s (12.9 MB/s)
Selecting previously unselected package openssl.
(Reading database ... 6640 files and directories currently installed.)
Preparing to unpack .../openssl_1.1.1k-1_arm64.deb ...
Unpacking openssl (1.1.1k-1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20210119_all.deb ...
Unpacking ca-certificates (20210119) ...
Selecting previously unselected package libpsl5:arm64.
Preparing to unpack .../libpsl5_0.21.0-1.2_arm64.deb ...
Unpacking libpsl5:arm64 (0.21.0-1.2) ...
Selecting previously unselected package wget.
Preparing to unpack .../archives/wget_1.21-1_arm64.deb ...
Unpacking wget (1.21-1) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../publicsuffix_20210108.1309-1_all.deb ...
Unpacking publicsuffix (20210108.1309-1) ...
Setting up libpsl5:arm64 (0.21.0-1.2) ...
Setting up wget (1.21-1) ...
Setting up openssl (1.1.1k-1) ...
Setting up publicsuffix (20210108.1309-1) ...
Setting up ca-certificates (20210119) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/aarch64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Processing triggers for libc-bin (2.31-11) ...
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 (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 139
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tags: qemu-20.04
Revision history for this message
Peter Maydell (pmaydell) wrote :

This is the bug tracker for upstream QEMU. If you'd like to request Ubuntu to backport some fix into their packages of QEMU, you'll need to file it against the Ubuntu QEMU package bug tracker. Since those bugs are also tracked in Launchpad, I'll try re-componenting this bug report to the Ubuntu QEMU package...

affects: qemu → qemu (Ubuntu)
Revision history for this message
Yasuhiro Horimoto (komainu8) wrote :

I'm sorry that I send a wrong destination of report.
Thank you for re-componenting this bug report.

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

In Launchpad we use one bug per issue. Since this issue is already reported in bug 1749393, I'm marking this bug as a duplicate of that one.

You're requesting to backport the fix to 20.04. We can track this in the other bug with a bug task, which I'll open now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qemu (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.