From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 16 05:35:48 2018 Received: (at 30394) by debbugs.gnu.org; 16 Feb 2018 10:35:48 +0000 Received: from localhost ([127.0.0.1]:45688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emdMq-0001H0-4U for submit@debbugs.gnu.org; Fri, 16 Feb 2018 05:35:48 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:33298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emdMn-0001Gr-Gx for 30394@debbugs.gnu.org; Fri, 16 Feb 2018 05:35:46 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id C024E115E9; Fri, 16 Feb 2018 11:35:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2v3CzkK3gZJ7; Fri, 16 Feb 2018 11:35:43 +0100 (CET) Received: from ribbon (unknown [193.50.110.160]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 6C75C115BA; Fri, 16 Feb 2018 11:35:43 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30394: ARM compilation via qemu binfmt - Assertion failure 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> Date: Fri, 16 Feb 2018 11:35:43 +0100 In-Reply-To: <20180208174238.2abc85dc@scratchpost.org> (Danny Milosavljevic's message of "Thu, 8 Feb 2018 17:42:38 +0100") Message-ID: <87vaexp6gw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30394 Cc: guix-devel@gnu.org, 30394@debbugs.gnu.org, ng0@n0.is 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: 1.0 (+) 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.