From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30394: ARM compilation via qemu binfmt - Assertion failure Date: Fri, 16 Feb 2018 11:35:43 +0100 Message-ID: <87vaexp6gw.fsf__24488.0807506435$1518777566$gmane$org@gnu.org> References: <87bmh4qrf5.fsf@abyayala.i-did-not-set--mail-host-address--so-tickle-me> <87bmh3kbd9.fsf@gnu.org> <87k1vqv23v.fsf@abyayala.i-did-not-set--mail-host-address--so-tickle-me> <20180208174238.2abc85dc@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emdN5-0001mQ-9g for bug-guix@gnu.org; Fri, 16 Feb 2018 05:36:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emdN4-0000RC-6i for bug-guix@gnu.org; Fri, 16 Feb 2018 05:36:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emdN4-0000Qi-32 for bug-guix@gnu.org; Fri, 16 Feb 2018 05:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1emdN3-0001HU-Ni for bug-guix@gnu.org; Fri, 16 Feb 2018 05:36:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180208174238.2abc85dc@scratchpost.org> (Danny Milosavljevic's message of "Thu, 8 Feb 2018 17:42:38 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: guix-devel@gnu.org, 30394@debbugs.gnu.org, ng0@n0.is Hello, Danny Milosavljevic skribis: > Unfortunately, there's a (pretty reproducible) problem with it. > > guix-master/guix $ ./pre-inst-env guix system disk-image --system=3Darmhf= -linux -e "(@ (gnu system install) installation-os)" > [... building grub-2.02 ...] > phase `configure' succeeded after 821.8 seconds > starting phase `patch-generated-file-shebangs' > patch-makefile-SHELL: ./po/Makefile: changing `SHELL' from `/bin/sh' to `= /gnu/st[...] > phase `patch-generated-file-shebangs' succeeded after 14.6 seconds > starting phase `build' > bison -d -p grub_script_yy -b grub_script ./grub-core/script/parser.y > flex -o grub_script.yy.c --header-file=3Dgrub_script.yy.h ./grub-core/scr= ipt/yylex[...] > bison: ../sysdeps/unix/sysv/linux/spawni.c:360: __spawnix: Assertion `ec = >=3D 0' failed [...] > https://sourceware.org/bugzilla/show_bug.cgi?id=3D22273 > diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/s= pawni.c > index dea1650..f02ac19 100644 > --- a/sysdeps/unix/sysv/linux/spawni.c > +++ b/sysdeps/unix/sysv/linux/spawni.c > @@ -365,9 +365,15 @@ __spawnix (pid_t * pid, const char *file, > if (new_pid > 0) > { > ec =3D args.err; > - assert (ec >=3D 0); > if (ec !=3D 0) Note that this is only a problem for code that uses the =E2=80=98posix_spaw= n=E2=80=99 interface, such as Bison in the example above. In practice that interface is rarely used, which is probably why I never hit that assertion before. Ludo=E2=80=99.