bugGNU Core Utilities - Bugs: bug #16913, sleep fails to detect overflow on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #16913: sleep fails to detect overflow on amd64 / linux 2.6

Submitter:  None
Submitted:  Thu 22 Jun 2006 02:54:47 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Thu 22 Jun 2006 10:15:07 PM UTC, comment #1: 

xnanosleep's overflow checking merely catches the usual
problems with integer overflow in xnanosleep's own
calculations.  It's not designed to work around bugs in the
implementation of nanosleep.  Offhand, I don't see an easy way
to work around this bug so I'd say you just need to get your
kernel fixed.  (In the meantime you can rest easy knowing that
coreutils "sleep" is a good way to check for the kernel bug.
:-)

Paul Eggert <eggert>
Group administrator
Thu 22 Jun 2006 02:54:47 PM UTC, original submission:  


sleep 10000000000  -> returns immediately with exit code 0
sleep 1000000000   -> sleeps
sleep 100000000000 -> sleeps

Not really sane amounts of seconds to sleep but on the other hand there is some code in xnanosleep.c to handle overflow conditions.

More details about the underlying bug in nanosleep() in

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374983


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-06-22 eggert StatusNone Wont Fix
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.14-2340.
Corresponding source code