From unknown Sun Aug 17 10:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23537: timeout test gets false-positive for duration of -1.189731495357231765e+4932 Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 14 May 2016 17:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23537 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 23537@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14632457927498 (code B ref -1); Sat, 14 May 2016 17:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2016 17:09:52 +0000 Received: from localhost ([127.0.0.1]:51611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1d4a-0001ws-2o for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1d4Y-0001we-Oi for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1d4S-0004mk-KZ for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:45 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1d4S-0004mg-HV for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1d4Q-0001mJ-Gd for bug-coreutils@gnu.org; Sat, 14 May 2016 13:09:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1d4O-0004m1-7R for bug-coreutils@gnu.org; Sat, 14 May 2016 13:09:41 -0400 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:33684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1d4O-0004lw-21 for bug-coreutils@gnu.org; Sat, 14 May 2016 13:09:40 -0400 Received: by mail-oi0-x22e.google.com with SMTP id v145so214410955oie.0 for ; Sat, 14 May 2016 10:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=uPkPjObu45xJmCLE9zusrcFZABPIeZAmTXsWKuxbdsk=; b=lwnFdJuWlOGdivKKE4GENlTsc40HkdDen1rp8LQIOsSEOX+DPVwdX8xKp8+iKulRCi CvP2THZqVarJj6t5Mp3ruqSt9Ilj9v3r7JzT4aB3LpJlr/TvrOekkIiroWjZCRfSKJJt ud8f3HdbcSXIj9aKpziRrJXfQxCPZRFNHLP85fhDtG+4AOWgae69ZPs/MiFa/g8yFHhw SxllRvmLZAMw5wkXDRwYjHXtWO4DktW76Sgc0PS87Y7Xs1cLGAELZ98MVPMiROx0boSz QibXN3wXP53Hk9j1AdR+loeC/6/0OU1q3WTqN2aNlCSHP7xRSC1EB1+0n/B9koiMbEwo a/jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=uPkPjObu45xJmCLE9zusrcFZABPIeZAmTXsWKuxbdsk=; b=Uc4whWE5XgGn9mtW0Sn5cQx9UHccamSKLeuHOZ138m9J6ZypdhKYrd3tI1WdvfBxka epwO9mPB9QI81XlgJD4BRGQqCuUiAjfZvOcluZI0B/s4cd8qERNjggRRbxlHGg1rHuqB x9wEaZzk3JvsNxnF+gsuNkO1pQO6q4yQiwx8XtU9mJVKxG/pIsx6UxvJMo0LcYs2RKMp ypL6Rb7xVotcH9F6ImsgJgjC5NhoUkYPtvTBw3G/LRJVlWUZZmLjkgl2lyo4cM9wd5GN wLuen1gYYzoXcCPPIyyEg++/THK9XDOs+GrrtGgnWNTN2ENFPMSuPyVIQSZ28r076N8F ubXQ== X-Gm-Message-State: AOPr4FWb9oi5nnUNk3cZofuDU0kfCUj2LRSaHtkH8NnBdPuvpPqGL+N9HQkIz2d+MCtwFWkx11Oxy1y7sAGwRw== X-Received: by 10.157.1.120 with SMTP id 111mr11364403otu.172.1463245779435; Sat, 14 May 2016 10:09:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.175.193 with HTTP; Sat, 14 May 2016 10:09:19 -0700 (PDT) From: Jim Meyering Date: Sat, 14 May 2016 10:09:19 -0700 X-Google-Sender-Auth: zBT30eTS8xzu5hnS-axioqmCjZ4 Message-ID: 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: -3.8 (---) 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: -3.8 (---) On systems with recent glibc, this abuse of timeout elicits the expected er= ror: $ src/timeout -- -1.189731495357231765e+4932 sleep 0 src/timeout: invalid time interval =E2=80=98-1.189731495357231765e+4932= =E2=80=99 Try 'src/timeout --help' for more information. But with glibc-2.12's strtod, that input maps to a double-precision value of 0 rather than to -inf, so timeout does this: $ src/timeout -- -1.189731495357231765e+4932 sleep 0; echo $? 0 Similarly, the sleep.sh test fails because even without the leading "-", that number ($LDBL_MAX) maps to 0: $ src/timeout 0.1 sleep 1.189731495357231765e+4932; echo $? 0 which causes two tests to fail: tests/misc/timeout-parameters tests/misc/sleep I see a couple of ways to avoid trouble. Perhaps the most general is to make gnulib's strtod module detect and compensate for these errors. But that's CentOS6-era glibc, so maybe not worth it for such a corner case. From unknown Sun Aug 17 10:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23537: timeout test gets false-positive for duration of -1.189731495357231765e+4932 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 14 May 2016 17:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23537 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Jim Meyering , 23537@debbugs.gnu.org Received: via spool by 23537-submit@debbugs.gnu.org id=B23537.14632471509734 (code B ref 23537); Sat, 14 May 2016 17:33:01 +0000 Received: (at 23537) by debbugs.gnu.org; 14 May 2016 17:32:30 +0000 Received: from localhost ([127.0.0.1]:51640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1dQU-0002Ww-9X for submit@debbugs.gnu.org; Sat, 14 May 2016 13:32:30 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1dQR-0002Wg-Vz for 23537@debbugs.gnu.org; Sat, 14 May 2016 13:32:28 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2EA921612A3; Sat, 14 May 2016 10:32:22 -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 X2DLBGRjrLus; Sat, 14 May 2016 10:32:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 83CC31612A4; Sat, 14 May 2016 10:32:21 -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 KF9w0vcEQ7n1; Sat, 14 May 2016 10:32:21 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 65A361612A3; Sat, 14 May 2016 10:32:21 -0700 (PDT) References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <57376125.9040809@cs.ucla.edu> Date: Sat, 14 May 2016 10:32:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) 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.4 (-) Jim Meyering wrote: > But that's CentOS6-era glibc, so maybe not worth it for such a corner case. Yes, I tend to agree, this is quite low priority. From unknown Sun Aug 17 10:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23537: timeout test gets false-positive for duration of -1.189731495357231765e+4932 Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 15 May 2016 11:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23537 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Jim Meyering , 23537@debbugs.gnu.org Received: via spool by 23537-submit@debbugs.gnu.org id=B23537.146331128531249 (code B ref 23537); Sun, 15 May 2016 11:22:02 +0000 Received: (at 23537) by debbugs.gnu.org; 15 May 2016 11:21:25 +0000 Received: from localhost ([127.0.0.1]:51961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1u6v-00087x-AT for submit@debbugs.gnu.org; Sun, 15 May 2016 07:21:25 -0400 Received: from mail.magicbluesmoke.com ([82.195.144.49]:50572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1u6t-00087n-D4 for 23537@debbugs.gnu.org; Sun, 15 May 2016 07:21:23 -0400 Received: from [192.168.1.80] (unknown [109.78.202.50]) (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 BC01CCA; Sun, 15 May 2016 12:21:17 +0100 (IST) References: From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: <57385BA4.3000402@draigBrady.com> Date: Sun, 15 May 2016 12:21:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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 14/05/16 18:09, Jim Meyering wrote: > On systems with recent glibc, this abuse of timeout elicits the expected error: > > $ src/timeout -- -1.189731495357231765e+4932 sleep 0 > src/timeout: invalid time interval ‘-1.189731495357231765e+4932’ > Try 'src/timeout --help' for more information. > > But with glibc-2.12's strtod, that input maps to a double-precision > value of 0 rather than to -inf, so timeout does this: > > $ src/timeout -- -1.189731495357231765e+4932 sleep 0; echo $? > 0 > > Similarly, the sleep.sh test fails because even without the leading "-", > that number ($LDBL_MAX) maps to 0: > So the buggy strtod() is treating the overflow as underflow :( > $ src/timeout 0.1 sleep 1.189731495357231765e+4932; echo $? > 0 > > which causes two tests to fail: > > tests/misc/timeout-parameters > tests/misc/sleep > > I see a couple of ways to avoid trouble. > Perhaps the most general is to make gnulib's strtod module detect and > compensate for these errors. > But that's CentOS6-era glibc, so maybe not worth it for such a corner case. Has up to date centos6 the bug? I didn't see it with glibc-2.12-1.166.el6_7.7.x86_64 cheers, Pádraig. From unknown Sun Aug 17 10:22:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23537: timeout test gets false-positive for duration of -1.189731495357231765e+4932 Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 15 May 2016 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23537 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: 23537@debbugs.gnu.org Received: via spool by 23537-submit@debbugs.gnu.org id=B23537.146332484628377 (code B ref 23537); Sun, 15 May 2016 15:08:01 +0000 Received: (at 23537) by debbugs.gnu.org; 15 May 2016 15:07:26 +0000 Received: from localhost ([127.0.0.1]:52835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1xde-0007Nd-0S for submit@debbugs.gnu.org; Sun, 15 May 2016 11:07:26 -0400 Received: from mail-oi0-f51.google.com ([209.85.218.51]:33484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1xda-0007NO-TA for 23537@debbugs.gnu.org; Sun, 15 May 2016 11:07:24 -0400 Received: by mail-oi0-f51.google.com with SMTP id v145so235804831oie.0 for <23537@debbugs.gnu.org>; Sun, 15 May 2016 08:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=/nUETaGcL8CT6sEVAkamO5HJq4M+PBCLCDUkSq5pjm8=; b=nvIS1xVdRSsSjo2nL2hXaDrBDPm0vbQ9+3DcMjJ0l3oByWQhPofE7tiGa0NnoT3lDQ vRH+aGq8dEzEGqHsqPxv3KIVcWfTOFwFt5n6E3rbbPJKN081foAfEkAW1zhuQ4C0Cmy7 5xh+s4eaknpfNk5Fl2DchiQi/rl7nYrvv8T873Vde1WGz1bxNT34Vb+mWNRVp8sKMs2J kmdx4zMKGFAHf7VTVcsggaPUK9iIbBj5laXnnT00dX5PwuYCjBroqEbK73WbEdU6qDxx TLnU2BC7gk9qNYlaWH4FOdkpB46fhElG87D6RrBtpSlTx3WjzRbIimsg/l/RltO9l+rQ qEJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=/nUETaGcL8CT6sEVAkamO5HJq4M+PBCLCDUkSq5pjm8=; b=L81Rk7ySNt9MyMW7TJuO4aCRLTV5AKXM1GW/4AocU/sD+Z7hFQjt4GK6nmJJ30+IKn mLvoW2wLNWhZGhUSokXYqEkJRa5vINOvGx7NkdVHHqvlifoeHFTlLbRj46QALq9GXR0Q /VSqAc0Y0CEV+sSmxn/0XuIf8YzjgGpAfMBZU8QGXqVJsLEHeusJa7oEWDOiPKyAf61k UVNQl3VQz04Zg50YbH0hDZ671ArplPwusK95LTRl1rY3TbnRqMOvH6GpBcQ3ChXWSKRS dIOKBGZ7WvV+75GOAzb4RQ56/8lQi6/DngZjih9h5mkF7WRsAjVbA+GzfCSEWfLsHwwY dKqg== X-Gm-Message-State: AOPr4FXdKFttSWqZbjbFCIAzwzC/penztITuqr1a8JrJGjG3VOxBPH+97zNFfUIgnfdwqfLirng9XdoNSBbFEQ== X-Received: by 10.202.105.198 with SMTP id e189mr12193023oic.195.1463324837427; Sun, 15 May 2016 08:07:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.175.193 with HTTP; Sun, 15 May 2016 08:06:57 -0700 (PDT) In-Reply-To: <57385BA4.3000402@draigBrady.com> References: <57385BA4.3000402@draigBrady.com> From: Jim Meyering Date: Sun, 15 May 2016 08:06:57 -0700 X-Google-Sender-Auth: w6pP6vMU8N62_ILM5vR-En2xnqc Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.5 (/) 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.5 (/) On Sun, May 15, 2016 at 4:21 AM, P=C3=A1draig Brady wrot= e: > Has up to date centos6 the bug? > I didn't see it with glibc-2.12-1.166.el6_7.7.x86_64 Yes. I am surprised that you don't see it and I do: $ rpm -q glibc glibc-2.12-1.166.el6_7.7.x86_64 $ src/timeout 0.1 sleep 1.189731495357231765e+4932; echo $? 0 From unknown Sun Aug 17 10:22:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jim Meyering Subject: bug#23537: closed (Re: bug#23537: timeout test gets false-positive for duration of -1.189731495357231765e+4932) Message-ID: References: X-Gnu-PR-Message: they-closed 23537 X-Gnu-PR-Package: coreutils Reply-To: 23537@debbugs.gnu.org Date: Sun, 15 May 2016 15:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1463327582-6517-1" This is a multi-part message in MIME format... ------------=_1463327582-6517-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23537: timeout test gets false-positive for duration of -1.189731495357231= 765e+4932 which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23537@debbugs.gnu.org. --=20 23537: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23537 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1463327582-6517-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23537-done) by debbugs.gnu.org; 15 May 2016 15:52:26 +0000 Received: from localhost ([127.0.0.1]:52908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1yLC-0001gG-35 for submit@debbugs.gnu.org; Sun, 15 May 2016 11:52:26 -0400 Received: from mail-oi0-f43.google.com ([209.85.218.43]:35117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1yLA-0001g2-2T for 23537-done@debbugs.gnu.org; Sun, 15 May 2016 11:52:24 -0400 Received: by mail-oi0-f43.google.com with SMTP id x19so236820623oix.2 for <23537-done@debbugs.gnu.org>; Sun, 15 May 2016 08:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=1Xiik8aeMUF9kFXF3sVTro3ey1D6fm2RKpEJTtk/PoQ=; b=AhUGGKf4UNwDYYCah02pHkIgLkL7m7X5+yuHS0ZzRhPXvvemywBeTwNsly+QbFF12z TU4vlQvsXdpv5wpdSFB94Tqr+VjXaMKeImbsJGzf213fHOgowv4lcIBmMlIGRwxP3qjJ ZQxv6SVcdbZEo8SQl3g/PsLNykpNLZjyC+DADYnUrpo5loCgZKD4fxYprs0aeSuyzeXa KN9SE9kvxEGjPixx08FRkTvh043pv7yI/FQX2E99Gl8DbEXdhrYfsxwvX2cl//bQdTEh nzL7vbsm3+042/NPTRQfgWd98yUgruZRQu8t4iDpCrDhUhM1PnSToBvCVQTd4zi/w7C+ uiRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=1Xiik8aeMUF9kFXF3sVTro3ey1D6fm2RKpEJTtk/PoQ=; b=DiJj87abcRa4at8bm/hpn792DN1HxlebIJNbZ0Caf+4vcH4WxX+mcIwn0LrvJPdTfV QNMr4cNvwpMDYnz2apXIms4xG/SX0rtX0mcwfDRsjGAJIS5fLCZ9Gz5ttvgc9XWonv19 4nlwo7w8VLmHybeySmgTARvhAMsu5nYY4auZ8wgSdBfJWkhGzvLxbN+Dh290sVHPIYSt AKpNjHEENUcwjXLm3u3p4HPCetKSGOewmYnOuWGGyhC00v4Dw9b2tWvqzomHVDH+a4kZ p/11/HUsiDlsbYtesABfhAGZUTKxppctd8l38mYU1nC3Df8fccbe8bQ+wMSWgLu4XOSx LGPA== X-Gm-Message-State: AOPr4FWiIVe2V9HPLfnH7fFgTExliS5UBbKrmntc4h6BbQNLcms4FRcQo5iiuWWx1qAP8eO8s361+PZTncbq4w== X-Received: by 10.202.105.198 with SMTP id e189mr12268587oic.195.1463327538517; Sun, 15 May 2016 08:52:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.175.193 with HTTP; Sun, 15 May 2016 08:51:58 -0700 (PDT) In-Reply-To: References: <57385BA4.3000402@draigBrady.com> From: Jim Meyering Date: Sun, 15 May 2016 08:51:58 -0700 X-Google-Sender-Auth: udVbGO7r_uzyM27axwSO9bDCJbU Message-ID: Subject: Re: bug#23537: timeout test gets false-positive for duration of -1.189731495357231765e+4932 To: =?UTF-8?Q?P=C3=A1draig_Brady?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 23537-done Cc: 23537-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.5 (/) tags 23537 notabug stop On Sun, May 15, 2016 at 8:06 AM, Jim Meyering wrote: > On Sun, May 15, 2016 at 4:21 AM, P=C3=A1draig Brady wr= ote: >> Has up to date centos6 the bug? >> I didn't see it with glibc-2.12-1.166.el6_7.7.x86_64 > > Yes. I am surprised that you don't see it and I do: > > $ rpm -q glibc > glibc-2.12-1.166.el6_7.7.x86_64 > $ src/timeout 0.1 sleep 1.189731495357231765e+4932; echo $? > 0 P=C3=A1draig guessed (correctly) that I'd updated coreutils' gnulib to include a temporarily buggy xstrdod (811b09243ca01827469827bf0973728a8619d249), but not yet past the fix from a day or so later. So this was all a false alert. ------------=_1463327582-6517-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 May 2016 17:09:52 +0000 Received: from localhost ([127.0.0.1]:51611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1d4a-0001ws-2o for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1d4Y-0001we-Oi for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1d4S-0004mk-KZ for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:45 -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.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1d4S-0004mg-HV for submit@debbugs.gnu.org; Sat, 14 May 2016 13:09:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1d4Q-0001mJ-Gd for bug-coreutils@gnu.org; Sat, 14 May 2016 13:09:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1d4O-0004m1-7R for bug-coreutils@gnu.org; Sat, 14 May 2016 13:09:41 -0400 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:33684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1d4O-0004lw-21 for bug-coreutils@gnu.org; Sat, 14 May 2016 13:09:40 -0400 Received: by mail-oi0-x22e.google.com with SMTP id v145so214410955oie.0 for ; Sat, 14 May 2016 10:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=uPkPjObu45xJmCLE9zusrcFZABPIeZAmTXsWKuxbdsk=; b=lwnFdJuWlOGdivKKE4GENlTsc40HkdDen1rp8LQIOsSEOX+DPVwdX8xKp8+iKulRCi CvP2THZqVarJj6t5Mp3ruqSt9Ilj9v3r7JzT4aB3LpJlr/TvrOekkIiroWjZCRfSKJJt ud8f3HdbcSXIj9aKpziRrJXfQxCPZRFNHLP85fhDtG+4AOWgae69ZPs/MiFa/g8yFHhw SxllRvmLZAMw5wkXDRwYjHXtWO4DktW76Sgc0PS87Y7Xs1cLGAELZ98MVPMiROx0boSz QibXN3wXP53Hk9j1AdR+loeC/6/0OU1q3WTqN2aNlCSHP7xRSC1EB1+0n/B9koiMbEwo a/jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=uPkPjObu45xJmCLE9zusrcFZABPIeZAmTXsWKuxbdsk=; b=Uc4whWE5XgGn9mtW0Sn5cQx9UHccamSKLeuHOZ138m9J6ZypdhKYrd3tI1WdvfBxka epwO9mPB9QI81XlgJD4BRGQqCuUiAjfZvOcluZI0B/s4cd8qERNjggRRbxlHGg1rHuqB x9wEaZzk3JvsNxnF+gsuNkO1pQO6q4yQiwx8XtU9mJVKxG/pIsx6UxvJMo0LcYs2RKMp ypL6Rb7xVotcH9F6ImsgJgjC5NhoUkYPtvTBw3G/LRJVlWUZZmLjkgl2lyo4cM9wd5GN wLuen1gYYzoXcCPPIyyEg++/THK9XDOs+GrrtGgnWNTN2ENFPMSuPyVIQSZ28r076N8F ubXQ== X-Gm-Message-State: AOPr4FWb9oi5nnUNk3cZofuDU0kfCUj2LRSaHtkH8NnBdPuvpPqGL+N9HQkIz2d+MCtwFWkx11Oxy1y7sAGwRw== X-Received: by 10.157.1.120 with SMTP id 111mr11364403otu.172.1463245779435; Sat, 14 May 2016 10:09:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.175.193 with HTTP; Sat, 14 May 2016 10:09:19 -0700 (PDT) From: Jim Meyering Date: Sat, 14 May 2016 10:09:19 -0700 X-Google-Sender-Auth: zBT30eTS8xzu5hnS-axioqmCjZ4 Message-ID: Subject: timeout test gets false-positive for duration of -1.189731495357231765e+4932 To: bug-coreutils@gnu.org 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: -3.8 (---) 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: -3.8 (---) On systems with recent glibc, this abuse of timeout elicits the expected er= ror: $ src/timeout -- -1.189731495357231765e+4932 sleep 0 src/timeout: invalid time interval =E2=80=98-1.189731495357231765e+4932= =E2=80=99 Try 'src/timeout --help' for more information. But with glibc-2.12's strtod, that input maps to a double-precision value of 0 rather than to -inf, so timeout does this: $ src/timeout -- -1.189731495357231765e+4932 sleep 0; echo $? 0 Similarly, the sleep.sh test fails because even without the leading "-", that number ($LDBL_MAX) maps to 0: $ src/timeout 0.1 sleep 1.189731495357231765e+4932; echo $? 0 which causes two tests to fail: tests/misc/timeout-parameters tests/misc/sleep I see a couple of ways to avoid trouble. Perhaps the most general is to make gnulib's strtod module detect and compensate for these errors. But that's CentOS6-era glibc, so maybe not worth it for such a corner case. ------------=_1463327582-6517-1--