Bug 163929 - [RHEL3] [x86_64/ia64] sys_time and sys_gettimeofday disagree
[RHEL3] [x86_64/ia64] sys_time and sys_gettimeofday disagree
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Wendy Cheng
Brian Brock
Depends On:
Blocks: 168424
  Show dependency treegraph
Reported: 2005-07-21 21:46 EDT by Issue Tracker
Modified: 2007-11-30 17:07 EST (History)
5 users (show)

See Also:
Fixed In Version: RHSA-2006-0144
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-03-15 11:17:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
draft version of the patch that backported from RHEL 4. (1.41 KB, patch)
2005-07-21 21:55 EDT, Wendy Cheng
no flags Details | Diff

  None (edit)
Description Issue Tracker 2005-07-21 21:46:09 EDT
Escalated to Bugzilla from IssueTracker
Comment 4 Wendy Cheng 2005-07-21 21:55:04 EDT
Created attachment 117045 [details]
draft version of the patch that backported from RHEL 4.

Well, the issue makes sense. Just did a quick port from RHEL 4 and will test it
out tomorrow when I find the proper machines (ia64 and x86_64) to work with.
Comment 5 Wendy Cheng 2005-07-22 11:22:13 EDT
Created attachment 117068 [details]
Test program from Thomas Walker

compile with g++ -m32 -o sys32_time_test sys32_time_test.C
Comment 6 Wendy Cheng 2005-07-22 11:27:07 EDT
Test the draft patch on x86_64 machine and it seems to work fine by putting
sys32_time_test in a forever loop:

Without the patch, occasionally (depending on timer interrupts) the test program
catches the offset as:

System time(gettimeofday): 1122044166 sec, 0 milliseconds
System time(time): 1122044165 sec
        1 times of 5626349

With the patch the loop could run forever with the following output:

We hit a problem 0 times of 10000000
Comment 7 Wendy Cheng 2005-07-22 11:44:43 EDT
Test program and new kernel gets kicked off on an IA64 machine now - looks fine.
Will let it loop for a while. If something is not right, I'll report back.
Otherwise, please assume we're all set for this issue.
Comment 9 Ernie Petrides 2005-10-07 22:21:42 EDT
A fix for this problem has just been committed to the RHEL3 U7
patch pool this evening (in kernel version 2.4.21-37.5.EL).
Comment 12 Red Hat Bugzilla 2006-03-15 11:17:30 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.