From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 03:44:56 2022 Received: (at 55441) by debbugs.gnu.org; 18 May 2022 07:44:56 +0000 Received: from localhost ([127.0.0.1]:58822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrEMa-00030L-FO for submit@debbugs.gnu.org; Wed, 18 May 2022 03:44:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrEMZ-000307-7a for 55441@debbugs.gnu.org; Wed, 18 May 2022 03:44:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrEMS-0000hD-FM; Wed, 18 May 2022 03:44:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=kMKHn58GXMVX1KMaJKDhUPJqpMbfeLi7XWhaat8g1Cg=; b=GEjWfh/dzXpzKIhbnAX4 Dwv0mNJXIZDCod7YGEc5l2mLvFuHQwl97SUbAt/SYt/c+Kk3VhPpGGbQ08Vd18qLqLviwBYnK3BVQ tJml9lMXAJc7xt3QDsy0cpB9N/eJ/Yn8LbKbOagxoLiGC0lCT/8BXcrZ6Nj6EiJGR8UjKd7iAEDDJ 2wTe6sFN01POfWTOpcMxNiEA504c8LeG+HrXNSfpyK5mc+P6NCYY3sQlLDED4GQ+q3Y0oSohhHm/y htSFxcVhlOJ8I5qbYyyUuDf9qjV9dZwd/BJkUJMDaJc0ckZ2KW4A6FimAQwKsFjHz6dFJJ2Ma//0R 11LnTlNu306dFg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53220 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrEMS-0003ee-28; Wed, 18 May 2022 03:44:48 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#55441: [cuirass] hang in "In progress..."; runs out of pgsql connections References: <87fslcaznn.fsf@gmail.com> <87mtfj174l.fsf@gnu.org> <878rr2kug6.fsf_-_@gmail.com> <87pmke6ig4.fsf@gnu.org> <87o7zxalhu.fsf@gnu.org> <87k0alahug.fsf@gnu.org> <87fsl9acuw.fsf@gnu.org> <878rr1jsd1.fsf@gmail.com> <87fsl87gb5.fsf@gnu.org> Date: Wed, 18 May 2022 09:44:44 +0200 In-Reply-To: <87fsl87gb5.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 17 May 2022 09:45:50 +0200") Message-ID: <874k1n5loz.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: -1.8 (-) X-Debbugs-Envelope-To: 55441 Cc: 55441@debbugs.gnu.org, Mathieu Othacehe 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: -2.8 (--) Hi, Ludovic Court=C3=A8s skribis: > Hi, > > Maxim Cournoyer skribis: > >> Berlin was reconfigured with this commit of Cuirass, and is now running >> the derivations with it, but so far still "In progress..." after more >> than 100 minutes [0] > > Yeah, I=E2=80=99m not sure about the backtrace you report, however there= =E2=80=99s again > a bunch of =E2=80=98cuirass evaluate=E2=80=99 processes hanging, this tim= e with the main > thread stuck on =E2=80=98waitpid=E2=80=99 (presumably from the =E2=80=98c= lose-inferior=E2=80=99 call): An update: I ran this by hand: --8<---------------cut here---------------start------------->8--- $ sudo su - cuirass -s /bin/sh -c "/gnu/store/z8haznhwck4bjm4gxqy25wvwv4041= wvx-cuirass-1.1.0-12.f087aaf/bin/cuirass evaluate dbname=3Dcuirass 326988" Computing Guix derivation for 'x86_64-linux'... -^- warning: call to primitive-fork while multiple threads are running; further behavior unspecified. See "Processes" in the manual, for more information. warning: call to primitive-fork while multiple threads are running; further behavior unspecified. See "Processes" in the manual, for more information. warning: call to primitive-fork while multiple threads are running; furthwarning: call to primitive-fork while multiple threads are ru= nning; further behavior unspecified. See "Processes" in the manual, for more information. warning: call to primitive-fork while multiple threads are running; further behavior unspecified. See "Processes" in the manual, for more information. warning: call to primitive-fork while multiple threads are running; further behavior unspecified. See "Processes" in the manual, for more information. --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and attached =E2=80=98strace=E2=80=99, which shows things are wor= king as intended: --8<---------------cut here---------------start------------->8--- read(228, "r6x878i3fyr12lf9v496cl9x5jh6-gzip-1.10.drv\" \"/gnu/store/6280r7= vqfp5qkv6cdib02203xw1sk7h3-binutils-cr"..., 4096) =3D 4096 read(228, "pper-0.drv\" \"/gnu/store/45wsr6x878i3fyr12lf9v496cl9x5jh6-gzip-= 1.10.drv\" \"/gnu/store/6280r7vqfp5qkv6c"..., 4096) =3D 4096 read(228, "8qy2pnpn2030xxfmm56h71-gettext-0.21-doc\") (\"out\" . \"/gnu/sto= re/gmrqdvy9v42hfbs6b7vaxfrwf8b5qhqy-gett"..., 4096) =3D 4096 read(228, "\" \"/gnu/store/k5889v7ms3f5x1rjr3php71k4743fn19-bash-minimal-5.= 1.8.drv\" \"/gnu/store/lbyw1h3xz33qnb08j"..., 4096) =3D 4096 read(228, "x2g7ysm16xqnrpbkqdc4hhni1r42dgg-patch-2.7.6.drv\" \"/gnu/store/3= fy0f7gy85ddy6rpa4mmhjygns8qzk03-findut"..., 4096) =3D 4096 read(228, "08s1nz9bpv6k6a56idv6l7r2zjqphszl-file-5.39.drv\" \"/gnu/store/1x= 2g7ysm16xqnrpbkqdc4hhni1r42dgg-patch-2"..., 4096) =3D 4096 read(228, "tore/azdhavgwpjc527n81iqwrf91v8sv3x23-help2man-1.48.5.drv\" \"/g= nu/store/b1pi5ssin56s4mqq6964hsh2bdkyd"..., 4096) =3D 4096 read(228, ") (#:nix-name . \"guix-1.3.0-25.c1719a0\") (#:system . \"x86_64-= linux\") (#:max-silent-time . 3600) (#:t"..., 4096) =3D 121 close(228) =3D 0 wait4(83882, # hangs forever --8<---------------cut here---------------end--------------->8--- The question to me becomes: why is =E2=80=98guix repl=E2=80=99 not getting = EOF from its read(0, =E2=80=A6) call? FWIW, here=E2=80=99s an estimate of the amount of data transferred from the inferior to the main process: --8<---------------cut here---------------start------------->8--- $ grep 'read(228, .* =3D 4096$' 8--- I=E2=80=99m trying to reproduce that synthetically. Ludo=E2=80=99.