From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 11:45:50 2017 Received: (at submit) by debbugs.gnu.org; 25 Mar 2017 15:45:50 +0000 Received: from localhost ([127.0.0.1]:44464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crnt0-0004EP-Cn for submit@debbugs.gnu.org; Sat, 25 Mar 2017 11:45:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crnsz-0004EB-0a for submit@debbugs.gnu.org; Sat, 25 Mar 2017 11:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crnss-0001gf-Vw for submit@debbugs.gnu.org; Sat, 25 Mar 2017 11:45:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1crnss-0001gZ-Sg for submit@debbugs.gnu.org; Sat, 25 Mar 2017 11:45:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crnsr-0002dF-M3 for bug-guix@gnu.org; Sat, 25 Mar 2017 11:45:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crnso-0001dU-Hd for bug-guix@gnu.org; Sat, 25 Mar 2017 11:45:41 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crnso-0001dQ-EM for bug-guix@gnu.org; Sat, 25 Mar 2017 11:45:38 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:33510 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1crnsl-0005BT-Vp for bug-guix@gnu.org; Sat, 25 Mar 2017 11:45:38 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: bug-guix@gnu.org Subject: Coreutils 8.26 test failure on arm-linux-gnueabihf X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Germinal an 225 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-unknown-linux-gnu Date: Sat, 25 Mar 2017 16:45:33 +0100 Message-ID: <87a889weaq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) In current =E2=80=98core-updates=E2=80=99 (7fdca77e007f0838ecd32b044827678f= 2b345ff0), tests/misc/cut-huge-range.sh in Coreutils 8.26 fails reproducibly in the chroot build environment; it succeeds outside of it. When it fails, cut-huge-range.log shows this: --8<---------------cut here---------------start------------->8--- + CUT_MAX=3D4294967294 + ulimit -v 3004 + cut -b4294967294- /dev/null + ulimit -v 3004 + cut -b1-4294967294 /dev/null + ulimit -v 3004 + returns_ 1 cut -b4294967295 /dev/null + fail=3D1 + ulimit -v 3004 + returns_ 1 cut -b4294967296 /dev/null + fail=3D1 + compare /dev/null err + compare_dev_null_ /dev/null err + test 2 =3D 2 + test x/dev/null =3D x/dev/null + test -s err + return 0 + return 0 + Exit 1 --8<---------------cut here---------------end--------------->8--- So the two lines that fail are these: --8<---------------cut here---------------start------------->8--- # Explicitly disallow values above CUT_MAX (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fail= =3D1 (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || fa= il=3D1 --8<---------------cut here---------------end--------------->8--- I don=E2=80=99t understand why at this point, but I found that removing =E2=80=9C2>/dev/null=E2=80=9D from these two lines lets the test pass (and = AIUI, this redirection is not necessary for the test; it just hides the cut: byte/character offset '4294967296' is too large =20=20 error message.) I=E2=80=99ve tried to reduce the test case to facilitate debugging, to no avail. To be continued! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 14:18:57 2017 Received: (at 26253) by debbugs.gnu.org; 25 Mar 2017 18:18:57 +0000 Received: from localhost ([127.0.0.1]:44586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crqHA-0001ND-VF for submit@debbugs.gnu.org; Sat, 25 Mar 2017 14:18:57 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crqH8-0001N3-25 for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 14:18:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9DFF92064D; Sat, 25 Mar 2017 14:18:53 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 25 Mar 2017 14:18:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=0bD 80xZ1MsW6G4aUXqqLML/ktHHEm5++Bjjrm3aHPeY=; b=qSnRwEk+4gqxiliW+YQ I+2kOgRVTdmSjhm7bQtYkL1yTr6sxaEiDBL5c4fSwVfjDEVMslqfSKmNCNtGux75 kbQWJggJbe9OgrJHDIa4fcNKJxlDaUB0gPSwh4KS41eM0xSiB0/AduGbungOzsYI mdemkluTtXXrnFz+bz68Wm88= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=0bD80xZ1MsW6G4aUXqqLML/ktHHEm5++Bjjrm3aHPeY=; b=QnPkHHF0 htm2z0DDMiOn786Ycyl15HK5upkVB6jFnbrAkzvMZamzXP29Ct1LFvk7IP1J1zYB LmJznKO6+OpV72zjHQ5TwxC+lFceBSqR1dup9PIHteoxesoBGFv+0wW89oFYhNKO OCr3Z6FcaPmL6tn4+SYf5yYaYo10GCayBEx1pcTSzqRptLAe35Gf1x87uTq9rXlC Ma0THxMHNM5UQd4pvZ9ksZO1eoUWwjQi9extsveB01HdVOG4AxsMRPWS0GbqskDJ uCuM8DgTn6NnDmi2kbA2Rs9NXkPbxy7NNhobuh+7PE3MOAEI+xgAojCbPXeuDttm bxwmxC7uzMjlwg== X-ME-Sender: X-Sasl-enc: EgcijJ2WbJ+0avLz+vkWx5QhS7BaqF52RTEz9Kex3kSC 1490465933 Received: from localhost (unknown [172.56.3.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 49DBB24370; Sat, 25 Mar 2017 14:18:53 -0400 (EDT) Date: Sat, 25 Mar 2017 14:18:50 -0400 From: Leo Famulari To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: bug#26253: Coreutils 8.26 test failure on arm-linux-gnueabihf Message-ID: <20170325181850.GA1367@jasmine> References: <87a889weaq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <87a889weaq.fsf@gnu.org> User-Agent: Mutt/1.8.0 (2017-02-23) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26253 Cc: 26253@debbugs.gnu.org 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: -0.7 (/) On Sat, Mar 25, 2017 at 04:45:33PM +0100, Ludovic Court=C3=A8s wrote: > In current =E2=80=98core-updates=E2=80=99 (7fdca77e007f0838ecd32b04482767= 8f2b345ff0), > tests/misc/cut-huge-range.sh in Coreutils 8.26 fails reproducibly in the > chroot build environment; it succeeds outside of it. [...] > So the two lines that fail are these: >=20 > --8<---------------cut here---------------start------------->8--- > # Explicitly disallow values above CUT_MAX > (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fa= il=3D1 > (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || = fail=3D1 > --8<---------------cut here---------------end--------------->8--- >=20 > I don=E2=80=99t understand why at this point, but I found that removing > =E2=80=9C2>/dev/null=E2=80=9D from these two lines lets the test pass (an= d AIUI, this > redirection is not necessary for the test; it just hides the Is the same Bash shared between these two test environments (inside and outside of the chroot)? From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 17:31:06 2017 Received: (at 26253) by debbugs.gnu.org; 25 Mar 2017 21:31:06 +0000 Received: from localhost ([127.0.0.1]:44722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crtH8-00019d-B0 for submit@debbugs.gnu.org; Sat, 25 Mar 2017 17:31:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crtH6-000199-Co for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 17:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crtGw-0005DT-82 for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 17:30:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crtGw-0005DH-53; Sat, 25 Mar 2017 17:30:54 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:34228 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1crtGv-0001uJ-Kn; Sat, 25 Mar 2017 17:30:53 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Leo Famulari Subject: Re: bug#26253: Coreutils 8.26 test failure on arm-linux-gnueabihf References: <87a889weaq.fsf@gnu.org> <20170325181850.GA1367@jasmine> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Germinal an 225 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-unknown-linux-gnu Date: Sat, 25 Mar 2017 22:30:51 +0100 In-Reply-To: <20170325181850.GA1367@jasmine> (Leo Famulari's message of "Sat, 25 Mar 2017 14:18:50 -0400") Message-ID: <87h92hujqs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26253 Cc: 26253@debbugs.gnu.org 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: -5.0 (-----) Leo Famulari skribis: > On Sat, Mar 25, 2017 at 04:45:33PM +0100, Ludovic Court=C3=A8s wrote: >> In current =E2=80=98core-updates=E2=80=99 (7fdca77e007f0838ecd32b0448276= 78f2b345ff0), >> tests/misc/cut-huge-range.sh in Coreutils 8.26 fails reproducibly in the >> chroot build environment; it succeeds outside of it. > > [...] > >> So the two lines that fail are these: >>=20 >> --8<---------------cut here---------------start------------->8--- >> # Explicitly disallow values above CUT_MAX >> (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || f= ail=3D1 >> (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) ||= fail=3D1 >> --8<---------------cut here---------------end--------------->8--- >>=20 >> I don=E2=80=99t understand why at this point, but I found that removing >> =E2=80=9C2>/dev/null=E2=80=9D from these two lines lets the test pass (a= nd AIUI, this >> redirection is not necessary for the test; it just hides the > > Is the same Bash shared between these two test environments (inside and > outside of the chroot)? Yes. For the outside test, I just did =E2=80=9Cguix build -K=E2=80=9D and = then =E2=80=9Csource environment-variables=E2=80=9D, which should give me the right $SHELL and s= o on. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 18:00:15 2017 Received: (at control) by debbugs.gnu.org; 25 Mar 2017 22:00:15 +0000 Received: from localhost ([127.0.0.1]:44736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crtjL-0003ex-9i for submit@debbugs.gnu.org; Sat, 25 Mar 2017 18:00:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crtjK-0003ek-HK for control@debbugs.gnu.org; Sat, 25 Mar 2017 18:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crtjC-00083z-60 for control@debbugs.gnu.org; Sat, 25 Mar 2017 18:00:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crtjC-00083v-30 for control@debbugs.gnu.org; Sat, 25 Mar 2017 18:00:06 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:34312 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1crtjB-0001DY-HR for control@debbugs.gnu.org; Sat, 25 Mar 2017 18:00:05 -0400 Date: Sat, 25 Mar 2017 23:00:02 +0100 Message-Id: <8760ixuie5.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #26253 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control 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: -5.0 (-----) severity 26253 important From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 18:08:44 2017 Received: (at 26253) by debbugs.gnu.org; 25 Mar 2017 22:08:44 +0000 Received: from localhost ([127.0.0.1]:44749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crtrY-0003rj-J7 for submit@debbugs.gnu.org; Sat, 25 Mar 2017 18:08:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crtrW-0003rW-Ug for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:08:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crtrO-0003TH-MB for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:08:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crtrO-0003TD-IQ for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:08:34 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:34318 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1crtrO-0004qF-1d for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:08:34 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 26253@debbugs.gnu.org Subject: Re: bug#26253: Coreutils 8.26 test failure on arm-linux-gnueabihf References: <87a889weaq.fsf@gnu.org> Date: Sat, 25 Mar 2017 23:08:31 +0100 In-Reply-To: <87a889weaq.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 25 Mar 2017 16:45:33 +0100") Message-ID: <87r31lt3fk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26253 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: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > So the two lines that fail are these: > > # Explicitly disallow values above CUT_MAX > (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fa= il=3D1 > (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || = fail=3D1 > > I don=E2=80=99t understand why at this point, but I found that removing > =E2=80=9C2>/dev/null=E2=80=9D from these two lines lets the test pass (an= d AIUI, this > redirection is not necessary for the test; it just hides the > > cut: byte/character offset '4294967296' is too large >=20=20=20 > error message.) With the attached file I (and a patch coreutils such that it would build; #:tests? #f is enough), I was able to reproduce the problem. The build log I get is this: --8<---------------cut here---------------start------------->8--- + ulimit -v 2004 + echo before before + /gnu/store/iglljv347sj1mjx8r6li7plb4h7cv8h9-coreutils-8.26/bin/cut -b4294= 967296 /dev/null /gnu/store/9bkl74hd3f1gysdkq22hp8w4z9w8022l-bash-4.4.12/bin/sh: xmalloc: va= riables.c:4539: cannot allocate 69 bytes (57344 bytes allocated) + echo after 2 after 2 /gnu/store/iglljv347sj1mjx8r6li7plb4h7cv8h9-coreutils-8.26/bin/cut: byte/ch= aracter offset '4294967296' is too large Try '/gnu/store/iglljv347sj1mjx8r6li7plb4h7cv8h9-coreutils-8.26/bin/cut --h= elp' for more information. /gnu/store/iglljv347sj1mjx8r6li7plb4h7cv8h9-coreutils-8.26/bin/cut: byte/ch= aracter offset '4294967296' is too large Try '/gnu/store/iglljv347sj1mjx8r6li7plb4h7cv8h9-coreutils-8.26/bin/cut --h= elp' for more information. ;;; (bash "/gnu/store/9bkl74hd3f1gysdkq22hp8w4z9w8022l-bash-4.4.12/bin/sh") ;;; (status 0 0) ;;; (status2 256 1) ;;; (status3 256 1) --8<---------------cut here---------------end--------------->8--- The thing that=E2=80=99s failing here is the shell that invokes =E2=80=98cu= t=E2=80=99, and thus we get an exit value of 2 whereas the test explicitly checks for 1. This is very sensitive: depending on the command sequence we pass to =E2=80= =9Csh -c=E2=80=9D, we hit that problem or we don=E2=80=99t. The fact that removi= ng =E2=80=9C2>/dev/null=E2=80=9D solved the problem was probably just chance. So I think Coreutils commit 28803c8a3144d5d4363cdbd148bbe067af1a67c2, which arbitrarily increased the value passed to =E2=80=9Culimit -v=E2=80=9D= , goes in the right direction after all but is insufficient. I=E2=80=99m trying out a new patch based on that and will push if it works. Ludo=E2=80=99. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=test-coreutils.scm Content-Description: the test (use-modules (guix)) (define cu (@@ (gnu packages commencement) coreutils-final)) (define bash (@@ (gnu packages commencement) bash-final)) (define build #~(let* ((_ #$output) (cut (string-append #$cu "/bin/cut -b4294967296 /dev/null ")) (status (system* (pk 'bash (string-append #$bash "/bin/sh")) "-c" (string-append "set -x; (ulimit -v 2004; echo before; " cut " 2>/dev/null)" "; echo after $?"))) (status2 (system cut)) (status3 (apply system* (string-tokenize cut)))) (pk 'status status (status:exit-val status)) (pk 'status2 status2 (status:exit-val status2)) (pk 'status3 status3 (status:exit-val status3)) #f)) (with-store store (run-with-store store (mlet %store-monad ((drv (gexp->derivation "foo" build))) (built-derivations (list drv))))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 18:33:48 2017 Received: (at 26253) by debbugs.gnu.org; 25 Mar 2017 22:33:48 +0000 Received: from localhost ([127.0.0.1]:44762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cruFo-0006Ea-5w for submit@debbugs.gnu.org; Sat, 25 Mar 2017 18:33:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cruFl-0006EM-Rb for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cruFc-0004mh-HU for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:33:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cruFc-0004mZ-EW for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:33:36 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:34392 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cruFb-0007s7-OT for 26253@debbugs.gnu.org; Sat, 25 Mar 2017 18:33:36 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 26253@debbugs.gnu.org Subject: Re: bug#26253: Coreutils 8.26 test failure on arm-linux-gnueabihf References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> Date: Sat, 25 Mar 2017 23:33:33 +0100 In-Reply-To: <87r31lt3fk.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 25 Mar 2017 23:08:31 +0100") Message-ID: <87h92ht29u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26253 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: -5.0 (-----) I just pushed a fix: https://git.savannah.gnu.org/cgit/guix.git/commit/?h=3Dcore-updates&id=3D= d1e3f59c9b8d1be79eded04fe23cceb56b4372f0 Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 26 09:29:06 2017 Received: (at control) by debbugs.gnu.org; 26 Mar 2017 13:29:06 +0000 Received: from localhost ([127.0.0.1]:45144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cs8EE-0006rz-8l for submit@debbugs.gnu.org; Sun, 26 Mar 2017 09:29:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cs8EA-0006rP-TQ for control@debbugs.gnu.org; Sun, 26 Mar 2017 09:29:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cs8E1-0004Wp-Ss for control@debbugs.gnu.org; Sun, 26 Mar 2017 09:28:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cs8E1-0004Wk-PX for control@debbugs.gnu.org; Sun, 26 Mar 2017 09:28:53 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:35060 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cs8E1-0005eA-37 for control@debbugs.gnu.org; Sun, 26 Mar 2017 09:28:53 -0400 Date: Sun, 26 Mar 2017 15:28:51 +0200 Message-Id: <878tnsrwto.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #26253 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control 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: -5.0 (-----) reassign 26253 coreutils From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 26 09:41:37 2017 Received: (at 26253) by debbugs.gnu.org; 26 Mar 2017 13:41:37 +0000 Received: from localhost ([127.0.0.1]:45148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cs8QL-0000Uw-Dp for submit@debbugs.gnu.org; Sun, 26 Mar 2017 09:41:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cs8QJ-0000Uk-1g for 26253@debbugs.gnu.org; Sun, 26 Mar 2017 09:41:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cs8QA-0006of-Ju for 26253@debbugs.gnu.org; Sun, 26 Mar 2017 09:41:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cs8QA-0006oY-Gb; Sun, 26 Mar 2017 09:41:26 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:35074 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cs8Q9-00017M-Lp; Sun, 26 Mar 2017 09:41:26 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: tests/misc/cut-huge-range.sh fails on arm-linux-gnueabihf References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> <87h92ht29u.fsf@gnu.org> Date: Sun, 26 Mar 2017 15:41:23 +0200 In-Reply-To: <87h92ht29u.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 25 Mar 2017 23:33:33 +0100") Message-ID: <87inmwqhoc.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26253 Cc: 26253@debbugs.gnu.org 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: -5.0 (-----) Hi P=C3=A1draig, We found that =E2=80=98tests/misc/cut-huge-range.sh=E2=80=99 would fail on = our ARMv7 GNU/Linux machines: https://bugs.gnu.org/26253 (I noticed there=E2=80=99s a thinko in the patch I used for Guix: =E2=80=98= getconf PAGESIZE=E2=80=99 returns bytes whereas =E2=80=98ulimit -v=E2=80=99 expects= kibibytes). The reason for this failure is that the limit passed to =E2=80=98ulimit -v= =E2=80=99 would be slightly too low, even after Coreutils commit 28803c8a3144d5d4363cdbd148bbe067af1a67c2 (2004 KiB before and 3004KiB after this commit.) Part of the reason, I think, is that =E2=80=98vm=E2=80=99 is computed by si= mply running =E2=80=98cut -b1=E2=80=99: vm=3D$(get_min_ulimit_v_ cut -b1 /dev/null) \ || skip_ "this shell lacks ulimit support" =E2=80=A6 but the last couple of tests also run sh within that limit: # Explicitly disallow values above CUT_MAX (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fa= il=3D1 (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || = fail=3D1 It might be more accurate to do something like: vm=3D$(get_min_ulimit_v_ sh -c 'cut -b1 /dev/null') However it still seems easy to slightly underestimate the limit and get those spurious failures. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 26 15:15:02 2017 Received: (at 26253) by debbugs.gnu.org; 26 Mar 2017 19:15:02 +0000 Received: from localhost ([127.0.0.1]:46191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csDd0-0005mo-9q for submit@debbugs.gnu.org; Sun, 26 Mar 2017 15:15:02 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csDcz-0005mN-HZ for 26253@debbugs.gnu.org; Sun, 26 Mar 2017 15:15:01 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6F74920B47; Sun, 26 Mar 2017 15:15:01 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sun, 26 Mar 2017 15:15:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=+41 gzLCBz6YtgvL3K4Xr302A6pfFjU10060opr5Esvg=; b=Z+FpRG+fzFnvqN0yglH URVIZP1BW4pULkjy3mswSZiE5RUIHh7YDMz0lleHftSSGmGXdinACgWAKZ7r6NZZ +r2pj6NOw/CvYLnddS/+k7iYQlyzhGM0hWLl9z/QyyOi/RcvJ/QgepnRfWJvMq5x Y1ZYRSr1D3VTEVQCOSIJriWg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=+41gzLCBz6YtgvL3K4Xr302A6pfFjU10060opr5Esvg=; b=AKILN8u5 U0lT+rMrCFBozrrOMYHY4exW+KbUnEjWx4ncvWp1J5rlgRVUqiu40nZXlLTj2Kxc 1Uy8gin+e/h3kF6xAYUJPL6s6JVdB0187XKWq808/2xa/GESdb71WTwBFSaNjtcW 2/5adtNhXY0sGnrD3Zl8AKo4wP7Cg3sfbeqKZVq6DpomzfjXTEp4EuPhFXBhRKhu F6UhCa+ndwX6XtO6AVWzOlQj8e8cY1SCgv8OXNjuWQutXTJPqT37uTrL77kiFbtS WWzwqlIVenLq/qng2G8XXwcyTO03dJtfb4gH1u3yfywADvlkOsGk39D5v3KVd+vS XYOSYZTaMzuv0Q== X-ME-Sender: X-Sasl-enc: XlVqICY2JDbV0eI0ww5JFp/ZrUciyulznmJNW6xCoz5y 1490555701 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 35A2A2469D; Sun, 26 Mar 2017 15:15:01 -0400 (EDT) Date: Sun, 26 Mar 2017 15:15:00 -0400 From: Leo Famulari To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: bug#26253: Coreutils 8.26 test failure on arm-linux-gnueabihf Message-ID: <20170326191500.GC16797@jasmine> References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> <87h92ht29u.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h92ht29u.fsf@gnu.org> User-Agent: Mutt/1.8.0 (2017-02-23) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26253 Cc: 26253@debbugs.gnu.org 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: -0.7 (/) On Sat, Mar 25, 2017 at 11:33:33PM +0100, Ludovic Courtès wrote: > I just pushed a fix: > > https://git.savannah.gnu.org/cgit/guix.git/commit/?h=core-updates&id=d1e3f59c9b8d1be79eded04fe23cceb56b4372f0 Thank you for your persistent debugging! From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 26 18:52:40 2017 Received: (at 26253) by debbugs.gnu.org; 26 Mar 2017 22:52:40 +0000 Received: from localhost ([127.0.0.1]:46412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csH1c-0002Uz-Gv for submit@debbugs.gnu.org; Sun, 26 Mar 2017 18:52:40 -0400 Received: from midir.magicbluesmoke.com ([82.195.144.46]:59936 helo=mail.magicbluesmoke.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csH1a-0002Up-Of for 26253@debbugs.gnu.org; Sun, 26 Mar 2017 18:52:39 -0400 Received: from localhost.localdomain (unknown [166.177.248.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id AAA1E956A; Sun, 26 Mar 2017 23:52:34 +0100 (IST) Subject: Re: bug#26253: tests/misc/cut-huge-range.sh fails on arm-linux-gnueabihf To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> <87h92ht29u.fsf@gnu.org> <87inmwqhoc.fsf_-_@gnu.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: Date: Sun, 26 Mar 2017 15:52:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <87inmwqhoc.fsf_-_@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26253 Cc: 26253@debbugs.gnu.org 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: 0.0 (/) On 26/03/17 06:41, Ludovic Courtès wrote: > Hi Pádraig, > > We found that ‘tests/misc/cut-huge-range.sh’ would fail on our ARMv7 > GNU/Linux machines: > > https://bugs.gnu.org/26253 > > (I noticed there’s a thinko in the patch I used for Guix: ‘getconf > PAGESIZE’ returns bytes whereas ‘ulimit -v’ expects kibibytes). > > The reason for this failure is that the limit passed to ‘ulimit -v’ > would be slightly too low, even after Coreutils commit > 28803c8a3144d5d4363cdbd148bbe067af1a67c2 (2004 KiB before and 3004KiB > after this commit.) > > Part of the reason, I think, is that ‘vm’ is computed by simply running > ‘cut -b1’: > > vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \ > || skip_ "this shell lacks ulimit support" > > … but the last couple of tests also run sh within that limit: Are you saying the returns_ call induces a subshell? I suppose it might on some shells, though it doesn't seem to on bash 4.3 here. > > # Explicitly disallow values above CUT_MAX > (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fail=1 > (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || fail=1 > > It might be more accurate to do something like: > > vm=$(get_min_ulimit_v_ sh -c 'cut -b1 /dev/null') That give 10004 rather than 5004 on my x86_64 system here. Another option might be to use: vm=$(get_min_ulimit_v_ returns_ 0 cut -b1 /dev/null) Does that give better results for you? > However it still seems easy to slightly underestimate the limit and get > those spurious failures. > > Thoughts? We've bumped these limits up by fixed amounts in some cases, so if we don't get a more general solution I'll apply your patch to coreutils upstream, replacing `getconf PAGESIZE` with 4096. cheers, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 27 05:19:08 2017 Received: (at 26253) by debbugs.gnu.org; 27 Mar 2017 09:19:08 +0000 Received: from localhost ([127.0.0.1]:46792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csQns-00012H-H6 for submit@debbugs.gnu.org; Mon, 27 Mar 2017 05:19:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csQnr-000124-E6 for 26253@debbugs.gnu.org; Mon, 27 Mar 2017 05:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csQni-0006MH-5O for 26253@debbugs.gnu.org; Mon, 27 Mar 2017 05:19:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csQni-0006MC-1T; Mon, 27 Mar 2017 05:18:58 -0400 Received: from [193.50.110.68] (port=35018 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1csQnh-0003d2-EO; Mon, 27 Mar 2017 05:18:57 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: Re: bug#26253: tests/misc/cut-huge-range.sh fails on arm-linux-gnueabihf References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> <87h92ht29u.fsf@gnu.org> <87inmwqhoc.fsf_-_@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Germinal an 225 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-unknown-linux-gnu Date: Mon, 27 Mar 2017 11:18:54 +0200 In-Reply-To: (=?utf-8?Q?=22P=C3=A1draig?= Brady"'s message of "Sun, 26 Mar 2017 15:52:30 -0700") Message-ID: <87poh3m60x.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26253 Cc: 26253@debbugs.gnu.org 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: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi P=C3=A1draig, P=C3=A1draig Brady skribis: > On 26/03/17 06:41, Ludovic Court=C3=A8s wrote: [...] >> Part of the reason, I think, is that =E2=80=98vm=E2=80=99 is computed by= simply running >> =E2=80=98cut -b1=E2=80=99: >>=20 >> vm=3D$(get_min_ulimit_v_ cut -b1 /dev/null) \ >> || skip_ "this shell lacks ulimit support" >>=20 >> =E2=80=A6 but the last couple of tests also run sh within that limit: > > Are you saying the returns_ call induces a subshell? > I suppose it might on some shells, though it doesn't seem to on bash 4.3 = here. I don=E2=80=99t think =E2=80=98return_=E2=80=99 spawns a subshell, but the = ulimit should account for memory needed by the shell in addition to what =E2=80=98cut=E2=80=99 ne= eds. >> # Explicitly disallow values above CUT_MAX >> (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) ||= fail=3D1 >> (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) = || fail=3D1 >>=20 >> It might be more accurate to do something like: >>=20 >> vm=3D$(get_min_ulimit_v_ sh -c 'cut -b1 /dev/null') > > That give 10004 rather than 5004 on my x86_64 system here. > Another option might be to use: > vm=3D$(get_min_ulimit_v_ returns_ 0 cut -b1 /dev/null) > > Does that give better results for you? Yes the patch below on top of 8.26 (that is, without vm +=3D 1000) works for me. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/tests/misc/cut-huge-range.sh b/tests/misc/cut-huge-range.sh index 6b3c5b6ed..eeba33fce 100755 --- a/tests/misc/cut-huge-range.sh +++ b/tests/misc/cut-huge-range.sh @@ -20,7 +20,7 @@ print_ver_ cut getlimits_ -vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \ +vm=$(get_min_ulimit_v_ returns_ 0 cut -b1 /dev/null) \ || skip_ "this shell lacks ulimit support" --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 28 00:30:16 2017 Received: (at 26253-done) by debbugs.gnu.org; 28 Mar 2017 04:30:16 +0000 Received: from localhost ([127.0.0.1]:48129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csils-0007KP-B8 for submit@debbugs.gnu.org; Tue, 28 Mar 2017 00:30:16 -0400 Received: from midir.magicbluesmoke.com ([82.195.144.46]:46442 helo=mail.magicbluesmoke.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csilr-0007KH-5o for 26253-done@debbugs.gnu.org; Tue, 28 Mar 2017 00:30:15 -0400 Received: from localhost.localdomain (mobile-166-137-178-200.mycingular.net [166.137.178.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 241409B4A; Tue, 28 Mar 2017 05:30:12 +0100 (IST) Subject: Re: bug#26253: tests/misc/cut-huge-range.sh fails on arm-linux-gnueabihf To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> <87h92ht29u.fsf@gnu.org> <87inmwqhoc.fsf_-_@gnu.org> <87poh3m60x.fsf@gnu.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <9fb386eb-96f2-5041-827b-9a5739e72aee@draigBrady.com> Date: Mon, 27 Mar 2017 21:30:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <87poh3m60x.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26253-done Cc: 26253-done@debbugs.gnu.org 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: 0.0 (/) On 27/03/17 02:18, Ludovic Courtès wrote: > Hi Pádraig, > > Pádraig Brady skribis: > >> On 26/03/17 06:41, Ludovic Courtès wrote: > > [...] > >>> Part of the reason, I think, is that ‘vm’ is computed by simply running >>> ‘cut -b1’: >>> >>> vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \ >>> || skip_ "this shell lacks ulimit support" >>> >>> … but the last couple of tests also run sh within that limit: >> >> Are you saying the returns_ call induces a subshell? >> I suppose it might on some shells, though it doesn't seem to on bash 4.3 here. > > I don’t think ‘return_’ spawns a subshell, but the ulimit should account > for memory needed by the shell in addition to what ‘cut’ needs. > >>> # Explicitly disallow values above CUT_MAX >>> (ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fail=1 >>> (ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || fail=1 >>> >>> It might be more accurate to do something like: >>> >>> vm=$(get_min_ulimit_v_ sh -c 'cut -b1 /dev/null') >> >> That give 10004 rather than 5004 on my x86_64 system here. >> Another option might be to use: >> vm=$(get_min_ulimit_v_ returns_ 0 cut -b1 /dev/null) >> >> Does that give better results for you? > > Yes the patch below on top of 8.26 (that is, without vm += 1000) works > for me. > > Thanks, > Ludo’. Pushed in your name at: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=f542200 Marking this as done. cheers, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 28 04:18:54 2017 Received: (at 26253-done) by debbugs.gnu.org; 28 Mar 2017 08:18:55 +0000 Received: from localhost ([127.0.0.1]:48433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csmL8-0004vh-Od for submit@debbugs.gnu.org; Tue, 28 Mar 2017 04:18:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csmL7-0004vT-UD for 26253-done@debbugs.gnu.org; Tue, 28 Mar 2017 04:18:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csmKy-0002yf-Vq for 26253-done@debbugs.gnu.org; Tue, 28 Mar 2017 04:18:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csmKy-0002ya-TW; Tue, 28 Mar 2017 04:18:44 -0400 Received: from [193.50.110.98] (port=52888 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1csmKy-0007n7-2v; Tue, 28 Mar 2017 04:18:44 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: Re: bug#26253: tests/misc/cut-huge-range.sh fails on arm-linux-gnueabihf References: <87a889weaq.fsf@gnu.org> <87r31lt3fk.fsf@gnu.org> <87h92ht29u.fsf@gnu.org> <87inmwqhoc.fsf_-_@gnu.org> <87poh3m60x.fsf@gnu.org> <9fb386eb-96f2-5041-827b-9a5739e72aee@draigBrady.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Germinal an 225 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-unknown-linux-gnu Date: Tue, 28 Mar 2017 10:18:42 +0200 In-Reply-To: <9fb386eb-96f2-5041-827b-9a5739e72aee@draigBrady.com> (=?utf-8?Q?=22P=C3=A1draig?= Brady"'s message of "Mon, 27 Mar 2017 21:30:09 -0700") Message-ID: <87lgrp7r19.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26253-done Cc: 26253-done@debbugs.gnu.org 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: -5.0 (-----) P=C3=A1draig Brady skribis: > Pushed in your name at: > http://git.sv.gnu.org/gitweb/?p=3Dcoreutils.git;a=3Dcommitdiff;h=3Df542200 Thank you! Ludo'. From unknown Fri Jun 13 10:32:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Apr 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator