Bug 60906 - X server will spin on the CPU and eventually crash if up for more than 49 days
Summary: X server will spin on the CPU and eventually crash if up for more than 49 days
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: XFree86
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-08 20:54 UTC by Christopher Blizzard
Modified: 2007-04-18 16:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-03-11 12:42:57 UTC
Embargoed:


Attachments (Terms of Use)
patch (5.17 KB, patch)
2002-03-08 20:54 UTC, Christopher Blizzard
no flags Details | Diff
patch from keith packard after sending mine for review (1.52 KB, patch)
2002-03-11 12:42 UTC, Christopher Blizzard
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:068 0 high SHIPPED_LIVE Updated XFree86 packages are available 2002-04-17 04:00:00 UTC

Description Christopher Blizzard 2002-03-08 20:54:01 UTC
Description of Problem:


Version-Release number of selected component (if applicable):


How Reproducible:

Every time

Steps to Reproduce:
1. Set your clock to this date:

date 030701012002

2. Fire up the X server point it at a configured xdm server:

X -query foo

3. Set your date forward in time many days:

date 040402562002

Actual Results:

After a few minutes the X server will start hogging the CPU and will probably
crash or exit after a while with an error:

XDM: Too many retransmissions

Expected Results:

The X server should keep running as normal.

Additional Information:
	
It appears that after looking at the code that this bit of the code has a very
low tolerance for both clock skew, because someone changed the time, and when
the integer that holds the time rolls over its value.  It's very likely that the
retransmission times for contacting the xdm server will be fully screwed up.

I've got a patch that both adds support for detecting clock skew, and correcting
 from that condition, and handles the rollover of the value correctly.

Comment 1 Christopher Blizzard 2002-03-08 20:54:55 UTC
Created attachment 47940 [details]
patch

Comment 2 Mike A. Harris 2002-03-09 15:43:43 UTC
FIxed in rawhide, and also pending XFree86 erratum, will be released soon.

Comment 3 Christopher Blizzard 2002-03-09 17:48:23 UTC
What version of the XFree86 4.1.x rpms is this present in?

Comment 4 Mike A. Harris 2002-03-11 01:16:22 UTC
4.1.0-22

Comment 5 Christopher Blizzard 2002-03-11 12:42:26 UTC
Created attachment 48104 [details]
patch from keith packard after sending mine for review

Comment 6 Mike A. Harris 2002-03-11 13:29:21 UTC
Patch updated in 4.1.0-23


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