GNU bug report logs - #7317
Bug in SLEEP command

Previous Next

Package: coreutils;

Reported by: Андрей Передрий <andi <at> ukr.net>

Date: Tue, 2 Nov 2010 15:46:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Андрей Передрий <andi <at> ukr.net>
To: bug-coreutils <at> gnu.org
Subject: Bug in SLEEP command
Date: Tue, 02 Nov 2010 17:46:37 +0200
Hello guys!

I found a bug in 'sleep' command.
Please see below:

# date
Tue Oct  5 14:12:11 EEST 2010
[root <at> gate ~]# sleep 36500d ; date
Sat Oct 30 10:38:44 EEST 2010
[root <at> gate ~]#

As you can see - 'sleep' was terminated by himself after 24 days, 20 hours, 26 minutes and 33 seconds.
24*24*3600 + 20*3600 + 26*60 + 33 = 2073600 + 72000 + 1560 + 33 = 2147193 seconds
It seems like overflow.
coreutils 6.10-6
Debian 5.0.6  

--
A.P.




This bug report was last modified 14 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.