Red Hat Bugzilla – Bug 478380
Gettimeofday(2) Off-by-one after Settimeofday(2)
Last modified: 2009-01-05 10:45:53 EST
Description of problem:
On all (at least 5) IA-64 machines tested, the following test will fail,
curr_time = gettimeofday()
settimeofday (curr_time + 10)
pres_time = gettimeofday()
The result that gettimeofday() returned was one less that we set.
curr_time = 1228827598
pres_time = 1228827607
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run the reproducer
The test failed.
The test should pass.
* I have only seen this on IA-64.
* I have only seen this on RHEL 4.
* RHEL 5 has the same behaviour if using time() instead of gettimeofday.
Bug 475477 - Time(2) Off-by-one after Settimeofday(2)
Created attachment 327913 [details]
By the way, NTP has been stopped during the test.
Since this is RHEL4 ia64, and we're at the end of development, I'm closing this as WONTFIX.