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 26156C2D0DB for ; Tue, 28 Jan 2020 19:39:16 +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 F0FBC22522 for ; Tue, 28 Jan 2020 19:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0FBC22522 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]:36542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwWhf-0008OT-5z for qemu-devel@archiver.kernel.org; Tue, 28 Jan 2020 14:39:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60584) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwVMU-00079w-3Y for qemu-devel@nongnu.org; Tue, 28 Jan 2020 13:13:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwVMS-0004qU-KV for qemu-devel@nongnu.org; Tue, 28 Jan 2020 13:13:17 -0500 Received: from indium.canonical.com ([91.189.90.7]:38048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwVMS-0004m9-DM for qemu-devel@nongnu.org; Tue, 28 Jan 2020 13:13:16 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1iwVMP-0003hL-M3 for ; Tue, 28 Jan 2020 18:13:13 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 94D5A2E80C8 for ; Tue, 28 Jan 2020 18:13:13 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Jan 2020 18:01:54 -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 pmaydell X-Launchpad-Bug-Reporter: Philippe Vaucher (philippe-vaucher) X-Launchpad-Bug-Modifier: Philippe Vaucher (philippe-vaucher) References: <158022582642.18726.3284794136336139049.malonedeb@gac.canonical.com> Message-Id: <158023451484.5517.15821049326866752786.malone@chaenomeles.canonical.com> Subject: [Bug 1861161] Re: qemu-arm-static stuck with 100% CPU when cross-compiling emacs 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: 314f577cd3b7fbc0ff0f6303255fd37100c75ccb X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.189.90.7 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" Thanks. It matches my bug because ubuntu:18.04 has a glibc 2.27 while alpine 3.9 has glib 2.58, and your bug report mentions that 2.27 has not the bug, so it makes sense. However I don't see how not having the host filesystem as ext4 would change anything, can you elaborate? Also, what filesystem do you recommand? -- = 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 stuck with 100% CPU when cross-compiling emacs 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 here 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