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

Submitted by:  None
Submitted on:  Thu 22 Jun 2006 02:54:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned 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>
Project 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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 22 Jun 2006 10:15:07 PM UTCeggertStatusNone=>Wont Fix
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1