GNU bug report logs - #75658
Non-deterministic Gash error in ‘gcc-mesboot-4.9.4’

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; dated Sat, 18 Jan 2025 22:09:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added indication that bug 75658 blocks75518 Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75658 <at> debbugs.gnu.org:


Received: (at 75658) by debbugs.gnu.org; 19 Jan 2025 18:24:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 19 13:24:52 2025
Received: from localhost ([127.0.0.1]:47413 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZZye-0001mI-3l
	for submit <at> debbugs.gnu.org; Sun, 19 Jan 2025 13:24:52 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44154)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tZZyb-0001m1-R1
 for 75658 <at> debbugs.gnu.org; Sun, 19 Jan 2025 13:24:50 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1tZZyW-0001aD-5F; Sun, 19 Jan 2025 13:24:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=rwfufuv4htGpobiT/bvtCiVlW78cIKadLK30pvdb7zg=; b=OBtBEJ02EPGRNjIpC9je
 5agKxiHn6tbzKi5WRHozyb0AHQANYaSRnf8EpMiszql2LH8KEgQM81nQgeCzStzIBoluXAP1TLm1+
 mHmSo/mkvrA9gO6hl5Nhs6ETjfCrx7XDYoNKdBR/DgeAykrVFKu120d8KUkdIbM7JmqqOQBLLXFI4
 x7gsgTR/wci0V85hh9P7AoMkexv2+8czMTFtO2vc+A+h8jYIXPTMB0N7On2ji2d/PZw5K8ei/wQB0
 VDMA3UFTCoBo4gLe1/W3BdCXDlXG/moJAJg+/JLGSQo/X7IHcVVeWyCHHOOIIMHwwT7bXcUgot0SI
 EIkq1Zo5vO6T3Q==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: 75658 <at> debbugs.gnu.org
Subject: Re: bug#75658: Non-deterministic Gash error in
 =?utf-8?Q?=E2=80=98gcc-mesboot-4=2E9=2E4=E2=80=99?=
In-Reply-To: <87msfnsrli.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?=
 =?utf-8?Q?'s?= message of "Sat, 18 Jan 2025 23:08:09 +0100")
References: <87msfnsrli.fsf@HIDDEN>
Date: Sun, 19 Jan 2025 19:24:25 +0100
Message-ID: <87wmeqpspy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
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: 75658
Cc: Timothy Sample <samplet@HIDDEN>, Janneke Nieuwenhuizen <janneke@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s <ludovic.courtes@HIDDEN> skribis:

> I stumbled upon this interesting non-deterministic failure while
> building =E2=80=98gcc-mesboot-4.9.4.drv=E2=80=99 on current =E2=80=98core=
-packages-team=E2=80=99 (which
> is unchanged compared to =E2=80=98master=E2=80=99):

Just got another one:

--8<---------------cut here---------------start------------->8---
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking for sigprocmask... (cached) yes
checking whether sleep is declared... yes
checking for working sleep... yes
checking for socklen_t... Backtrace:
In gash/shell.scm:
 129: 19 [sh:exec-let () "ac_fn_c_try_compile" "2817"]
In gash/environment.scm:
 215: 18 [save-variables-excursion () ...]
 292: 17 [with-arguments # #<procedure 2210f00 at gash/shell.scm:145:25 ()>]
 389: 16 [call-with-return #<procedure 2210e40 at gash/shell.scm:147:28 ()>]
In srfi/srfi-1.scm:
 619: 15 [for-each #<procedure eval-sh (exp)> ((<sh-begin> # # # ...))]
 619: 14 [for-each #<procedure eval-sh (exp)> (# # # # ...)]
In gash/shell.scm:
 441: 13 [sh:cond # #]
  55: 12 [without-errexit #<procedure 13185e0 at gash/eval.scm:149:6 ()>]
 372: 11 [sh:and #<procedure 1318560 at gash/eval.scm:149:6 ()> ...]
  55: 10 [without-errexit #<procedure 1318560 at gash/eval.scm:149:6 ()>]
 372: 9 [sh:and #<procedure 1318500 at gash/eval.scm:149:6 ()> ...]
  55: 8 [without-errexit #<procedure 1318500 at gash/eval.scm:149:6 ()>]
In srfi/srfi-1.scm:
 616: 7 [for-each #<procedure eval-sh (exp)> (# # # # ...)]
 619: 6 [for-each #<procedure eval-sh (exp)> (# # #)]
In gash/shell.scm:
 245: 5 [#<procedure 1f63030 at gash/shell.scm:239:17 ()>]
 129: 4 [sh:exec-let () "grep" "-v" "^ *+" "conftest.err"]
  92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
 616: 2 [for-each #<procedure ea9a60 at gash/shell.scm:70:12 (i)> (0 1 2 ..=
.)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 20> "r" 7]
In unknown file:
   ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
yes
checking whether symlink handles trailing slash correctly... yes
checking whether <sys/ioctl.h> declares ioctl... yes
checking for unsetenv... yes
checking for unsetenv() return type... int
--8<---------------cut here---------------end--------------->8---

That one likely doesn=E2=80=99t change the build outcome since it still
determines that =E2=80=98socklen_t=E2=80=99 is defined, but it sounds a bit=
 like a dice
roll.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#75658; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jan 2025 22:08:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 17:08:26 2025
Received: from localhost ([127.0.0.1]:44014 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZGzS-0002dH-4X
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 17:08:26 -0500
Received: from lists.gnu.org ([2001:470:142::17]:42860)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1tZGzP-0002cz-Ke
 for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 17:08:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1tZGzJ-0004QZ-Jy
 for bug-guix@HIDDEN; Sat, 18 Jan 2025 17:08:17 -0500
Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1tZGzG-0007Cu-TX
 for bug-guix@HIDDEN; Sat, 18 Jan 2025 17:08:17 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc;
 h=from:to:subject:date:message-id:mime-version:
 content-transfer-encoding;
 bh=do7/7X6RkY54a2ip0zLVejvNzO6YPAN3yojljKXPrHo=;
 b=qx4WOiFSZZV5vcCZN+KFOzQrKaiXxdPcNheoGK34Ude73lMPGVqIhn6E
 EolOC4HpmQtwj1lzXZiIBu6dv9jZWBDEQKLwD9vEMIj4kXwGMnzeWnzEn
 AiMrDZmmqZBs+sZ4Ts2uPmgmn5mt60yk4k6RiQjFvzZDwe9f1GO3Je4od A=;
Authentication-Results: mail2-relais-roc.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="6.13,216,1732575600"; d="scan'208";a="203824290"
Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201])
 by mail2-relais-roc.national.inria.fr with
 ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2025 23:08:09 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: bug-guix@HIDDEN
Subject: Non-deterministic Gash error in =?utf-8?Q?=E2=80=98gcc-mesboot-4?=
 =?utf-8?Q?=2E9=2E4=E2=80=99?=
X-Debbugs-Cc: Janneke Nieuwenhuizen <janneke@HIDDEN>, Timothy Sample
 <samplet@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Nonidi 29 =?utf-8?Q?Niv=C3=B4se?= an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour du Mercure
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, 18 Jan 2025 23:08:09 +0100
Message-ID: <87msfnsrli.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=192.134.164.83;
 envelope-from=ludovic.courtes@HIDDEN;
 helo=mail2-relais-roc.national.inria.fr
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

I stumbled upon this interesting non-deterministic failure while
building =E2=80=98gcc-mesboot-4.9.4.drv=E2=80=99 on current =E2=80=98core-p=
ackages-team=E2=80=99 (which
is unchanged compared to =E2=80=98master=E2=80=99):

--8<---------------cut here---------------start------------->8---
source directory: "/tmp/guix-build-gcc-mesboot-4.9.4.drv-0/gcc-4.9.4" (rela=
tive from build: ".")
build directory: "/tmp/guix-build-gcc-mesboot-4.9.4.drv-0/gcc-4.9.4"
configure flags: ("CONFIG_SHELL=3D/gnu/store/bhmkf29xki04mmydpm0axpbh35md4v=
fb-gash-boot-0.3.0/bin/bash" "SHELL=3D/gnu/store/bhmkf29xki04mmydpm0axpbh35=
md4vfb-gash-boot-0.3.0/bin/bash" "--prefix=3D/gnu/store/mgbd56zvid129vkk8l9=
zir7pf46r5038-gcc-mesboot-4.9.4" "--enable-fast-install" "--build=3Dx86_64-=
unknown-linux-gnu" "--prefix=3D/gnu/store/mgbd56zvid129vkk8l9zir7pf46r5038-=
gcc-mesboot-4.9.4" "--build=3Di686-unknown-linux-gnu" "--host=3Di686-unknow=
n-linux-gnu" "--with-host-libstdcxx=3D-lsupc++" "--with-native-system-heade=
r-dir=3D/gnu/store/qxp7icgwbn1hqqwvkan7aljgzfn439zh-glibc-mesboot-2.16.0/in=
clude" "--with-build-sysroot=3D/gnu/store/qxp7icgwbn1hqqwvkan7aljgzfn439zh-=
glibc-mesboot-2.16.0/include" "--disable-bootstrap" "--disable-decimal-floa=
t" "--disable-libatomic" "--disable-libcilkrts" "--disable-libgomp" "--disa=
ble-libitm" "--disable-libmudflap" "--disable-libquadmath" "--disable-libsa=
nitizer" "--disable-libssp" "--disable-libvtv" "--disable-lto" "--disable-l=
to-plugin" "--disable-multilib" "--disable-plugin" "--disable-threads" "--e=
nable-languages=3Dc,c++" "--enable-static" "--enable-shared" "--enable-thre=
ads=3Dsingle" "--disable-libstdcxx-pch" "--disable-build-with-cxx")
Backtrace:
In gash/eval.scm:
 221: 19 [eval-sh (<sh-set!> ("ac_useropt" (<sh-cmd-sub> #)))]
In srfi/srfi-1.scm:
 642: 18 [for-each #<procedure 1502320 at gash/eval.scm:221:17 (name word)>=
 # #]
In gash/eval.scm:
 222: 17 [#<procedure 1502320 at gash/eval.scm:221:17 (name word)> "ac_user=
opt" #]
 131: 16 [eval-word (<sh-cmd-sub> (<sh-pipeline> # #)) #:output string ...]
 121: 15 [expand-word (<sh-cmd-sub> (<sh-pipeline> # #)) #:output string ..=
.]
In gash/shell.scm:
 289: 14 [sh:substitute-command #<procedure 15022a0 at gash/eval.scm:129:35=
 ()>]
 270: 13 [%subshell #<procedure v ()>]
In ice-9/boot-9.scm:
 157: 12 [catch quit #<procedure v ()> ...]
In ice-9/r4rs.scm:
 176: 11 [with-output-to-port #<variable 13a02e0 value: #<output: file 39>>=
 ...]
In srfi/srfi-1.scm:
 619: 10 [for-each #<procedure eval-sh (exp)> ((<sh-pipeline> # #))]
In gash/shell.scm:
 344: 9 [sh:pipeline #<procedure 1506f40 at gash/eval.scm:149:6 ()> ...]
 310: 8 [plumb #<input: #{read pipe}# 36> #f ...]
 270: 7 [%subshell #<procedure thunk* ()>]
In ice-9/boot-9.scm:
 157: 6 [catch quit #<procedure thunk* ()> ...]
In gash/shell.scm:
 316: 5 [thunk*]
 129: 4 [sh:exec-let () "sed" "s/[-+.]/_/g"]
  92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
 616: 2 [for-each #<procedure ec3b20 at gash/shell.scm:70:12 (i)> (0 1 2 ..=
.)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 38> "r" 7]
In unknown file:
   ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
Backtrace:
In gash/eval.scm:
 221: 19 [eval-sh (<sh-set!> ("ac_useropt" (<sh-cmd-sub> #)))]
In srfi/srfi-1.scm:
 642: 18 [for-each #<procedure 1502320 at gash/eval.scm:221:17 (name word)>=
 # #]
In gash/eval.scm:
 222: 17 [#<procedure 1502320 at gash/eval.scm:221:17 (name word)> "ac_user=
opt" #]
 131: 16 [eval-word (<sh-cmd-sub> (<sh-pipeline> # #)) #:output string ...]
 121: 15 [expand-word (<sh-cmd-sub> (<sh-pipeline> # #)) #:output string ..=
.]
In gash/shell.scm:
 289: 14 [sh:substitute-command #<procedure 15022a0 at gash/eval.scm:129:35=
 ()>]
 270: 13 [%subshell #<procedure v ()>]
In ice-9/boot-9.scm:
 157: 12 [catch quit #<procedure v ()> ...]
In ice-9/r4rs.scm:
 176: 11 [with-output-to-port #<variable 13a02e0 value: #<output: file 39>>=
 ...]
In srfi/srfi-1.scm:
 619: 10 [for-each #<procedure eval-sh (exp)> ((<sh-pipeline> # #))]
In gash/shell.scm:
 347: 9 [sh:pipeline #<procedure 1506f40 at gash/eval.scm:149:6 ()> ...]
 310: 8 [plumb #f #<output: #{write pipe}# 38> ...]
 270: 7 [%subshell #<procedure thunk* ()>]
In ice-9/boot-9.scm:
 157: 6 [catch quit #<procedure thunk* ()> ...]
In gash/shell.scm:
 316: 5 [thunk*]
 129: 4 [sh:exec-let () "printf" "%s\\n" "libsanitizer"]
  92: 3 [exec-utility () ...]
In srfi/srfi-1.scm:
 616: 2 [for-each #<procedure ec3b20 at gash/shell.scm:70:12 (i)> (0 1 2 ..=
.)]
In ice-9/boot-9.scm:
1473: 1 [dup->port #<input: file 36> "r" 7]
In unknown file:
   ?: 0 [fdopen 7 "r"]

ERROR: In procedure fdopen:
ERROR: In procedure scm_fdes_to_port: Bad file descriptor
checking build system type... i686-unknown-linux-gnu
checking host system type... i686-unknown-linux-gnu
checking target system type... i686-unknown-linux-gnu
checking for a BSD-compatible install... ./install-sh -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /gnu/store/i61mvrw30k8n=
g8hxym8s180nydnsbji6-gash-utils-boot-0.2.0/bin/sed
checking for gawk... gawk
checking for libsanitizer support... yes
--8<---------------cut here---------------end--------------->8---

What happens is that Gash crashes in the middle of a substitution on
$ac_useropt.  As a result, =E2=80=98--disable-libsanitizer=E2=80=99 (and ot=
her options,
it seems) are discarded, hence the =E2=80=9Clibsanitizer support... yes=E2=
=80=9D line.
Hours later, build fails while trying to build libsanitizer.

Any idea what could cause EBADF?

Thanks,
Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to janneke@HIDDEN, samplet@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to janneke@HIDDEN, samplet@HIDDEN, bug-guix@HIDDEN:
bug#75658; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 17 Feb 2025 21:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.