From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 17:26:43 2021 Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 21:26:43 +0000 Received: from localhost ([127.0.0.1]:40010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzn9u-000517-R8 for submit@debbugs.gnu.org; Sat, 03 Jul 2021 17:26:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:46306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzn9s-00050z-Jl for submit@debbugs.gnu.org; Sat, 03 Jul 2021 17:26:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzn9s-0003MM-CX for bug-guix@gnu.org; Sat, 03 Jul 2021 17:26:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52636) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzn9s-0007Gl-5p for bug-guix@gnu.org; Sat, 03 Jul 2021 17:26:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42620 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzn9r-0003do-U8 for bug-guix@gnu.org; Sat, 03 Jul 2021 17:26:40 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: Bootstrap binaries affected by spawni.c bug in glibc <= 2.26 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 Messidor an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 03 Jul 2021 23:26:37 +0200 Message-ID: <87y2anxf5e.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) While building =E2=80=98findutils-boot0=E2=80=99 & co. for AArch64 on ci.gu= ix, where some of the aarch64-linux nodes are emulated, I hit failures like this one a few times: --8<---------------cut here---------------start------------->8--- starting phase `build' make: ../sysdeps/unix/sysv/linux/spawni.c:360: __spawnix: Assertion `ec >= =3D 0' failed. qemu: uncaught target signal 6 (Aborted) - core dumped error: in phase 'build': uncaught exception: srfi-34 #=20 phase `build' failed after 0.1 seconds command "make" "-j" "24" failed with signal 6 builder for `/gnu/store/rkkgavlyvf06sfdnxlfqb11bljf989y1-findutils-boot0-4.= 8.0.drv' failed with exit code 1 --8<---------------cut here---------------end--------------->8--- These are traces of a =E2=80=98posix_spawn=E2=80=99 bug that was present in= glibc 2.26, a race condition that would manifest primarily on qemu-binfmt builds: https://issues.guix.gnu.org/30394 The thread above mentioned that Bison was one of the very few =E2=80=98posix_spawn=E2=80=99 users, so it wasn=E2=80=99t much of a problem. However, it turns out that (1) we=E2=80=99re using Make 4.3, which uses =E2=80=98posix_spawn=E2=80=99 by default, and (2) our bootstrap glibc for A= Arch64 is affected: --8<---------------cut here---------------start------------->8--- $ guix gc --references /gnu/store/rkkgavlyvf06sfdnxlfqb11bljf989y1-findutil= s-boot0-4.8.0.drv |grep make-boot0 /gnu/store/yir8j4h6prfmz18kyrsch2g7qng87g04-make-boot0-4.3.drv $ ls $(guix build $(guix gc --references /gnu/store/rkkgavlyvf06sfdnxlfqb11= bljf989y1-findutils-boot0-4.8.0.drv |grep glibc-bootstrap))/lib/libc-*.so /gnu/store/js119fgv6n713c3lypjn7s4xv5bxf870-glibc-bootstrap-0/lib/libc-2.25= .so --8<---------------cut here---------------end--------------->8--- Possible solutions: 0. Ignore the problem, =E2=80=9Cit=E2=80=99s almost only affects emulated= builds anyway=E2=80=9D. 1. Update bootstrap glibc. It=E2=80=99s late in the core-updates cycle, = and it=E2=80=99s not something we do lightly anyway. 2. Build =E2=80=98make-boot0=E2=80=99 with =E2=80=98--disable-posix-spawn= =E2=80=99. Best solution in my view. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 17:45:59 2021 Received: (at control) by debbugs.gnu.org; 3 Jul 2021 21:45:59 +0000 Received: from localhost ([127.0.0.1]:40029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lznSZ-0005V2-55 for submit@debbugs.gnu.org; Sat, 03 Jul 2021 17:45:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lznSX-0005Uf-UU for control@debbugs.gnu.org; Sat, 03 Jul 2021 17:45:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52974) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lznSS-000301-Mu for control@debbugs.gnu.org; Sat, 03 Jul 2021 17:45:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42628 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lznSS-0001CA-Fd for control@debbugs.gnu.org; Sat, 03 Jul 2021 17:45:52 -0400 Date: Sat, 03 Jul 2021 23:45:51 +0200 Message-Id: <87r1gfxe9c.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #49367 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 49367 important quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 18:11:18 2021 Received: (at 49367-done) by debbugs.gnu.org; 3 Jul 2021 22:11:18 +0000 Received: from localhost ([127.0.0.1]:40034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lznr4-0008Ha-6S for submit@debbugs.gnu.org; Sat, 03 Jul 2021 18:11:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lznqz-0008HK-Jo for 49367-done@debbugs.gnu.org; Sat, 03 Jul 2021 18:11:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53358) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lznqu-0002Ks-8i for 49367-done@debbugs.gnu.org; Sat, 03 Jul 2021 18:11:08 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42630 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lznqu-0008Ad-1N for 49367-done@debbugs.gnu.org; Sat, 03 Jul 2021 18:11:08 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 49367-done@debbugs.gnu.org Subject: Re: bug#49367: Bootstrap binaries affected by spawni.c bug in glibc <= 2.26 References: <87y2anxf5e.fsf@inria.fr> Date: Sun, 04 Jul 2021 00:11:05 +0200 In-Reply-To: <87y2anxf5e.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Sat, 03 Jul 2021 23:26:37 +0200") Message-ID: <87mtr3xd3a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49367-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ludovic Court=C3=A8s skribis: > While building =E2=80=98findutils-boot0=E2=80=99 & co. for AArch64 on ci.= guix, where > some of the aarch64-linux nodes are emulated, I hit failures like this > one a few times: > > starting phase `build' > make: ../sysdeps/unix/sysv/linux/spawni.c:360: __spawnix: Assertion `ec >= =3D 0' failed. > qemu: uncaught target signal 6 (Aborted) - core dumped > error: in phase 'build': uncaught exception: > srfi-34 #=20 > phase `build' failed after 0.1 seconds > command "make" "-j" "24" failed with signal 6 > builder for `/gnu/store/rkkgavlyvf06sfdnxlfqb11bljf989y1-findutils-boot0-= 4.8.0.drv' failed with exit code 1 [...] > 2. Build =E2=80=98make-boot0=E2=80=99 with =E2=80=98--disable-posix-spa= wn=E2=80=99. Best solution in > my view. Done in f436723ce7da2f5e752f5f4b6f0d568a7bea4403! Note that this problem is already present in current =E2=80=98master=E2=80= =99. Note also that on x86 we =E2=80=98make-boot0=E2=80=99 is built against glibc-mes= boot0-2.16, which is much older and isn=E2=80=99t affected by the =E2=80=98posix_spawn= =E2=80=99 bug, AFAICS. Ludo=E2=80=99. From unknown Sat Jun 14 03:53:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Aug 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator