From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oPXAJi3W4GDfIgEAgWs5BA (envelope-from ) for ; Sat, 03 Jul 2021 23:27:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6FiIIi3W4GAKfwAA1q6Kng (envelope-from ) for ; Sat, 03 Jul 2021 21:27:09 +0000 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 aspmx1.migadu.com (Postfix) with ESMTPS id E31DC18D73 for ; Sat, 3 Jul 2021 23:27:08 +0200 (CEST) Received: from localhost ([::1]:58808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lznAJ-0003Mx-VS for larch@yhetil.org; Sat, 03 Jul 2021 17:27:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lznAE-0003Mo-42 for bug-guix@gnu.org; Sat, 03 Jul 2021 17:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lznAD-0007Zf-So for bug-guix@gnu.org; Sat, 03 Jul 2021 17:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lznAD-00051j-Qc for bug-guix@gnu.org; Sat, 03 Jul 2021 17:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49367: Bootstrap binaries affected by spawni.c bug in glibc <= 2.26 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 03 Jul 2021 21:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49367 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49367@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162534760319294 (code B ref -1); Sat, 03 Jul 2021 21:27:01 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625347629; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Kng5q01awhlYBKcuXopd8eKaFD9gcZ3nyIoKZ/d9lrY=; b=QCajciIErZjFxjQIJvF81ZjyaAqScQLBGGSOI0Qrl5ZTyxHLxYqhX11n4AfIz3ZSngJ1II F5TJvVBuEwRX07uHmYrvkJCPC80YvvxkI/hgE8ON+cujsobGa6GiRGSfKWdi/N7FiUuxF0 +piKSGgwIbmaRygTN84l0PXGtcJOOrUmjDM9oE5Hr0Krz/FCdWd7ZLZzOAhFEXQWLPUHV0 7oTLGtxkKVek3yA4KQI4ihVvhyUh734edhRC3kEdhGeBHNQR4PL1QwlxqjHpOAZLf9BP8j FeqFXYbAIZ5dYYxrY6DEd4SFGq95h35+RpJWftBFFPwFSlEPWesJVZrucxwCqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625347629; a=rsa-sha256; cv=none; b=JTlyD/xmrxGxi+3hoGB4KyBASmSIP4/iIEGu2t9jthfbrNxylv8WlkuEAEGVMLRiNVkaAM H4FAu6xw7oqwAI2CGasHve1QJTRPerhkfeLSZ6hYYFt7o4WsPlZu0VqV8oLXjDxmtULFrL 7HChbsQutoQlihaWm1MFaGwzmv8Q7xV05Ib160FPJSCJAqH0EyDrCdljNIaplGEC6AS7qd JuKKkGUYnC6kPYD9zp7DzXmFF6VALRQP/NYDCpKvmNWRRVr2xCvWqT6z1IH3VvoOZBAMKf fPdSfNXkoW0SkxMzT1+UjxLtcEjMcgm2nyAy3ocAsBsT9ObUTZGaucrX0dbnHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E31DC18D73 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: vsHWgOo+mATU 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.