From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FD1FC2D0DB for ; Tue, 28 Jan 2020 16:37:39 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 261A724681 for ; Tue, 28 Jan 2020 16:37:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 261A724681 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwTru-0007Af-9f for qemu-devel@archiver.kernel.org; Tue, 28 Jan 2020 11:37:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42058) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwTEB-00082r-CF for qemu-devel@nongnu.org; Tue, 28 Jan 2020 10:56:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwTE8-0000rP-P8 for qemu-devel@nongnu.org; Tue, 28 Jan 2020 10:56:35 -0500 Received: from indium.canonical.com ([91.189.90.7]:44040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwTE8-0000qS-Go for qemu-devel@nongnu.org; Tue, 28 Jan 2020 10:56:32 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1iwTE3-0005h3-J6 for ; Tue, 28 Jan 2020 15:56:27 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5E9AC2E80D2 for ; Tue, 28 Jan 2020 15:56:27 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Jan 2020 15:37:06 -0000 From: Philippe Vaucher To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: philippe-vaucher X-Launchpad-Bug-Reporter: Philippe Vaucher (philippe-vaucher) X-Launchpad-Bug-Modifier: Philippe Vaucher (philippe-vaucher) Message-Id: <158022582642.18726.3284794136336139049.malonedeb@gac.canonical.com> Subject: [Bug 1861161] [NEW] qemu-arm-static 100% CPU when cross-compiling emacs on alpine X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="b8d1327fd820d6bf500589d6da587d5037c7d88e"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: 95f9689e67f1693349710a4af5a13de93d26e52e X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.189.90.7 X-Mailman-Approved-At: Tue, 28 Jan 2020 11:36:40 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1861161 <1861161@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Public bug reported: Hello, I'm trying to build multi-arch docker images for https://hub.docker.com/r/silex/emacs. Here is the machine I'm building on (hetzner cloud machine): root@ubuntu-4gb-fsn1-1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-4gb-fsn1-1:~# uname -a Linux ubuntu-4gb-fsn1-1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:2= 8 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Whenever I try to build the following alpine Dockerfile https://gitlab.com/Silex777/docker- emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile like this: $ sysctl kernel.randomize_va_space=3D0 $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes $ docker build --pull -t test --platform arm . It builds fine until this: root@ubuntu-4gb-fsn1-1:~# ps -ef | grep qemu root 26473 26465 99 14:26 pts/0 01:59:58 /usr/bin/qemu-arm-static ..= /src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval (setq load= -prefer-newer t) -f batch-byte-compile emacs-lisp/macroexp.el This is supposed to take a few seconds, but in practice it takes 100% CPU and never ends. When I strace the process I see a never ending loop like this: getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporarily= unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporarily= unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporarily= unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporarily= unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporarily= unavailable) It happens with all the QEMU versions I tested: - 2.11.1 (OS version) - 4.1.1-1 (from multiarch/qemu-user-static:4.1.1-1) - 4.2.0-2 (from multiarch/qemu-user-static) Any ideas of what I could do to debug it further? Kind regards, Philippe p.s: Everything builds fine when the base image is ubuntu. I also had similar hangs with basic commands like "apt-get install foo" sometimes. ** Affects: qemu Importance: Undecided Status: New ** Description changed: Hello, = I'm trying to build multi-arch docker images for https://hub.docker.com/r/silex/emacs. = Here is the machine I'm building on: = root@ubuntu-4gb-fsn1-1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-4gb-fsn1-1:~# uname -a Linux ubuntu-4gb-fsn1-1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06= :28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux = Whenever I try to build the following alpine Dockerfile https://gitlab.com/Silex777/docker- emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile with this command: = $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes $ docker build --pull -t test --platform arm . = It builds fine until this: = root@ubuntu-4gb-fsn1-1:~# ps -ef | grep qemu root 26473 26465 99 14:26 pts/0 01:59:58 /usr/bin/qemu-arm-static = ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval (setq lo= ad-prefer-newer t) -f batch-byte-compile emacs-lisp/macroexp.el = This is supposed to take a few seconds, but in practice it takes 100% CPU and never ends. When I strace the process I see this: = getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) = - It happens with all the QEMU versions I tested: = + It happens with all the QEMU versions I tested: - 2.11.1 (OS version) - 4.1.1-1 (from multiarch/qemu-user-static:4.1.1-1) - 4.2.0-2 (from multiarch/qemu-user-static) = Any ideas of what I could do to debug it further? = Kind regards, Philippe + = + p.s: Everything builds fine when the base image is ubuntu. I also had + similar hangs with basic commands like "apt-get install foo" sometimes. ** Description changed: Hello, = I'm trying to build multi-arch docker images for https://hub.docker.com/r/silex/emacs. = Here is the machine I'm building on: = root@ubuntu-4gb-fsn1-1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-4gb-fsn1-1:~# uname -a Linux ubuntu-4gb-fsn1-1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06= :28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux = Whenever I try to build the following alpine Dockerfile https://gitlab.com/Silex777/docker- emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile with this command: = $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes $ docker build --pull -t test --platform arm . = It builds fine until this: = root@ubuntu-4gb-fsn1-1:~# ps -ef | grep qemu root 26473 26465 99 14:26 pts/0 01:59:58 /usr/bin/qemu-arm-static = ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval (setq lo= ad-prefer-newer t) -f batch-byte-compile emacs-lisp/macroexp.el = This is supposed to take a few seconds, but in practice it takes 100% - CPU and never ends. When I strace the process I see this: + CPU and never ends. When I strace the process I see a never ending loop + like this: = getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) = It happens with all the QEMU versions I tested: - 2.11.1 (OS version) - 4.1.1-1 (from multiarch/qemu-user-static:4.1.1-1) - 4.2.0-2 (from multiarch/qemu-user-static) = Any ideas of what I could do to debug it further? = Kind regards, Philippe = p.s: Everything builds fine when the base image is ubuntu. I also had similar hangs with basic commands like "apt-get install foo" sometimes. ** Description changed: Hello, = I'm trying to build multi-arch docker images for https://hub.docker.com/r/silex/emacs. = Here is the machine I'm building on: = root@ubuntu-4gb-fsn1-1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-4gb-fsn1-1:~# uname -a Linux ubuntu-4gb-fsn1-1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06= :28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux = Whenever I try to build the following alpine Dockerfile https://gitlab.com/Silex777/docker- - emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile with this command: + emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile like this: = + $ sysctl kernel.randomize_va_space=3D0 $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes $ docker build --pull -t test --platform arm . = It builds fine until this: = root@ubuntu-4gb-fsn1-1:~# ps -ef | grep qemu root 26473 26465 99 14:26 pts/0 01:59:58 /usr/bin/qemu-arm-static = ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval (setq lo= ad-prefer-newer t) -f batch-byte-compile emacs-lisp/macroexp.el = This is supposed to take a few seconds, but in practice it takes 100% CPU and never ends. When I strace the process I see a never ending loop like this: = getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) = It happens with all the QEMU versions I tested: - 2.11.1 (OS version) - 4.1.1-1 (from multiarch/qemu-user-static:4.1.1-1) - 4.2.0-2 (from multiarch/qemu-user-static) = Any ideas of what I could do to debug it further? = Kind regards, Philippe = p.s: Everything builds fine when the base image is ubuntu. I also had similar hangs with basic commands like "apt-get install foo" sometimes. ** Description changed: Hello, = I'm trying to build multi-arch docker images for https://hub.docker.com/r/silex/emacs. = - Here is the machine I'm building on: + Here is the machine I'm building on (hetzner cloud machine): = root@ubuntu-4gb-fsn1-1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-4gb-fsn1-1:~# uname -a Linux ubuntu-4gb-fsn1-1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06= :28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux = Whenever I try to build the following alpine Dockerfile https://gitlab.com/Silex777/docker- emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile like this: = $ sysctl kernel.randomize_va_space=3D0 $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes $ docker build --pull -t test --platform arm . = It builds fine until this: = root@ubuntu-4gb-fsn1-1:~# ps -ef | grep qemu root 26473 26465 99 14:26 pts/0 01:59:58 /usr/bin/qemu-arm-static = ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval (setq lo= ad-prefer-newer t) -f batch-byte-compile emacs-lisp/macroexp.el = This is supposed to take a few seconds, but in practice it takes 100% CPU and never ends. When I strace the process I see a never ending loop like this: = getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) = It happens with all the QEMU versions I tested: - 2.11.1 (OS version) - 4.1.1-1 (from multiarch/qemu-user-static:4.1.1-1) - 4.2.0-2 (from multiarch/qemu-user-static) = Any ideas of what I could do to debug it further? = Kind regards, Philippe = p.s: Everything builds fine when the base image is ubuntu. I also had similar hangs with basic commands like "apt-get install foo" sometimes. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1861161 Title: qemu-arm-static 100% CPU when cross-compiling emacs on alpine Status in QEMU: New Bug description: Hello, I'm trying to build multi-arch docker images for https://hub.docker.com/r/silex/emacs. Here is the machine I'm building on (hetzner cloud machine): root@ubuntu-4gb-fsn1-1:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic root@ubuntu-4gb-fsn1-1:~# uname -a Linux ubuntu-4gb-fsn1-1 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06= :28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Whenever I try to build the following alpine Dockerfile https://gitlab.com/Silex777/docker- emacs/blob/master/26.3/alpine/3.9/dev/Dockerfile like this: $ sysctl kernel.randomize_va_space=3D0 $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes $ docker build --pull -t test --platform arm . It builds fine until this: root@ubuntu-4gb-fsn1-1:~# ps -ef | grep qemu root 26473 26465 99 14:26 pts/0 01:59:58 /usr/bin/qemu-arm-static = ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval (setq lo= ad-prefer-newer t) -f batch-byte-compile emacs-lisp/macroexp.el This is supposed to take a few seconds, but in practice it takes 100% CPU and never ends. When I strace the process I see a never ending loop like this: getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) getdents64(5, /* 0 entries */, 2048) =3D 0 lseek(5, 0, SEEK_SET) =3D 0 getdents64(5, /* 5 entries */, 2048) =3D 120 tgkill(5875, 5878, SIGRT_2) =3D -1 EAGAIN (Resource temporari= ly unavailable) It happens with all the QEMU versions I tested: - 2.11.1 (OS version) - 4.1.1-1 (from multiarch/qemu-user-static:4.1.1-1) - 4.2.0-2 (from multiarch/qemu-user-static) Any ideas of what I could do to debug it further? Kind regards, Philippe p.s: Everything builds fine when the base image is ubuntu. I also had similar hangs with basic commands like "apt-get install foo" sometimes. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1861161/+subscriptions