X-Loop: help-debbugs@HIDDEN Subject: bug#25402: Race condition in "colors" test Resent-From: Santiago Vila <sanvila@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: sanvila@HIDDEN, debian.axhn@HIDDEN, bug-diffutils@HIDDEN Resent-Date: Sun, 08 Jan 2017 22:37:02 +0000 Resent-Message-ID: <handler.25402.B.148391497125629 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 25402 X-GNU-PR-Package: diffutils X-GNU-PR-Keywords: To: 25402 <at> debbugs.gnu.org Cc: debian.axhn@HIDDEN, sanvila@HIDDEN,debian.axhn@HIDDEN X-Debbugs-Original-To: bug-diffutils@HIDDEN X-Debbugs-Original-Xcc: sanvila@HIDDEN,debian.axhn@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.148391497125629 (code B ref -1); Sun, 08 Jan 2017 22:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2017 22:36:11 +0000 Received: from localhost ([127.0.0.1]:47191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1cQM4R-0006fJ-6e for submit <at> debbugs.gnu.org; Sun, 08 Jan 2017 17:36:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <sanvila@HIDDEN>) id 1cQM4Q-0006f4-0D for submit <at> debbugs.gnu.org; Sun, 08 Jan 2017 17:36:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <sanvila@HIDDEN>) id 1cQM4J-00008J-Ar for submit <at> debbugs.gnu.org; Sun, 08 Jan 2017 17:36:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <sanvila@HIDDEN>) id 1cQM4J-000086-6x for submit <at> debbugs.gnu.org; Sun, 08 Jan 2017 17:36:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <sanvila@HIDDEN>) id 1cQM4H-0003Yt-Nx for bug-diffutils@HIDDEN; Sun, 08 Jan 2017 17:36:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <sanvila@HIDDEN>) id 1cQM4C-00006x-Pn for bug-diffutils@HIDDEN; Sun, 08 Jan 2017 17:36:01 -0500 Received: from zmta02.unex.es ([158.49.17.56]:49949) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <sanvila@HIDDEN>) id 1cQM4C-0008F3-I1 for bug-diffutils@HIDDEN; Sun, 08 Jan 2017 17:35:56 -0500 Received: from localhost (localhost [127.0.0.1]) by zmta02.unex.es (Postfix) with ESMTP id 45D9F60F14; Sun, 8 Jan 2017 23:35:13 +0100 (CET) Received: from zmta02.unex.es ([127.0.0.1]) by localhost (zmta02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FwT7QakKEWkK; Sun, 8 Jan 2017 23:35:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmta02.unex.es (Postfix) with ESMTP id 39AE360F3B; Sun, 8 Jan 2017 23:35:10 +0100 (CET) X-Virus-Scanned: amavisd-new at zmta02.siue Received: from zmta02.unex.es ([127.0.0.1]) by localhost (zmta02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ISCADcYlN73k; Sun, 8 Jan 2017 23:35:10 +0100 (CET) Received: from zproxy02.unex.es (zproxy02.servicios.unex.es [10.254.208.62]) by zmta02.unex.es (Postfix) with ESMTPS id 0B47A60F14; Sun, 8 Jan 2017 23:35:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zproxy02.unex.es (Postfix) with ESMTP id F2E9761025; Sun, 8 Jan 2017 23:35:09 +0100 (CET) Received: from zproxy02.unex.es ([127.0.0.1]) by localhost (zproxy02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hqGNKcT75Eh8; Sun, 8 Jan 2017 23:35:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zproxy02.unex.es (Postfix) with ESMTP id 6951261007; Sun, 8 Jan 2017 23:35:09 +0100 (CET) X-Virus-Scanned: amavisd-new at zproxy02.siue Received: from zproxy02.unex.es ([127.0.0.1]) by localhost (zproxy02.servicios.unex.es [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nSdOnXc_HkfD; Sun, 8 Jan 2017 23:35:09 +0100 (CET) Received: from cantor.unex.es (cantor.unex.es [158.49.50.20]) by zproxy02.unex.es (Postfix) with ESMTPSA id 3FAD260EC9; Sun, 8 Jan 2017 23:35:09 +0100 (CET) Received: by cantor.unex.es (Postfix, from userid 1000) id E0080612A8; Sun, 8 Jan 2017 23:35:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cantor.unex.es (Postfix) with ESMTP id D1974612A5; Sun, 8 Jan 2017 23:35:08 +0100 (CET) Date: Sun, 8 Jan 2017 23:35:08 +0100 (CET) From: Santiago Vila <sanvila@HIDDEN> Message-ID: <alpine.DEB.2.20.1701082322140.581@HIDDEN> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) Hello. The test suite for diffutils 3.5 has a tendency to fail in our ppc64el architecture: https://buildd.debian.org/status/logs.php?pkg=diffutils&ver=1%3A3.5-2&arch=ppc64el According to Christoph Biedl (Cc:ed), there is a race condition here: | mkfifo fifo | printf '%*s-a' 1000000 > a | head -c 10 < fifo > /dev/null & + diff --color=always ---presume-output-tty a b > fifo | test $? = 141 || fail=1 Quoting Christoph: > There is a race condition involved, it fails in about three of > four attempts - but not at all if the test is run under strace. > A "sleep 0.1" before the diff made the test pass in ten of ten > attempts. So the reason might indeed be the head command hasn't opened > fifo yet by the time diff tries to write to it. For the Debian package, I am going to add a "sleep 1" (slightly more portable), but Christoph points out that this should not really be architecture specific. Thanks.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Santiago Vila <sanvila@HIDDEN> Subject: bug#25402: Acknowledgement (Race condition in "colors" test) Message-ID: <handler.25402.B.148391497125629.ack <at> debbugs.gnu.org> References: <alpine.DEB.2.20.1701082322140.581@HIDDEN> X-Gnu-PR-Message: ack 25402 X-Gnu-PR-Package: diffutils Reply-To: 25402 <at> debbugs.gnu.org Date: Sun, 08 Jan 2017 22:37:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to sanvila@HIDDEN,debian.axhn@HIDDEN (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): bug-diffutils@HIDDEN If you wish to submit further information on this problem, please send it to 25402 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 25402: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25402 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 29 Aug 2021 07:19:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 29 03:19:22 2021 Received: from localhost ([127.0.0.1]:55435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mKF6A-0001PT-A4 for submit <at> debbugs.gnu.org; Sun, 29 Aug 2021 03:19:22 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mKF68-0001PE-6J for control <at> debbugs.gnu.org; Sun, 29 Aug 2021 03:19:21 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1F1C0160071 for <control <at> debbugs.gnu.org>; Sun, 29 Aug 2021 00:19:14 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dwIFJQCq4pVB for <control <at> debbugs.gnu.org>; Sun, 29 Aug 2021 00:19:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6E257160105 for <control <at> debbugs.gnu.org>; Sun, 29 Aug 2021 00:19:13 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XhLpFBGWDIJp for <control <at> debbugs.gnu.org>; Sun, 29 Aug 2021 00:19:13 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 06AC0160102 for <control <at> debbugs.gnu.org>; Sun, 29 Aug 2021 00:19:13 -0700 (PDT) To: control <at> debbugs.gnu.org From: Paul Eggert <eggert@HIDDEN> Subject: 25402 is same as 36488 Organization: UCLA Computer Science Department Message-ID: <99c1a105-c057-8b36-f6bd-b8932c8f8787@HIDDEN> Date: Sun, 29 Aug 2021 00:19:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) merge 25402 36488
Received: (at fakecontrol) by fakecontrolmessage; To: internal_control <at> debbugs.gnu.org From: Debbugs Internal Request <help-debbugs@HIDDEN> Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sun, 29 Aug 2021 21:50:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.