Bug 529224 - xorg works but spins with 100% cpu on lost tty
Summary: xorg works but spins with 100% cpu on lost tty
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-nouveau
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ben Skeggs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-15 15:13 UTC by Frank Ch. Eigler
Modified: 2018-04-11 16:28 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-01 16:57:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg (38.11 KB, text/plain)
2009-10-16 17:14 UTC, Jeff Moyer
no flags Details
Xorg.0.log (217.54 KB, text/plain)
2009-10-16 17:15 UTC, Jeff Moyer
no flags Details
Xorg.1.log (24.05 KB, text/plain)
2009-10-16 17:15 UTC, Jeff Moyer
no flags Details
Xorg.2.log (24.05 KB, text/plain)
2009-10-16 17:15 UTC, Jeff Moyer
no flags Details
Xorg.3.log (24.05 KB, text/plain)
2009-10-16 17:16 UTC, Jeff Moyer
no flags Details
Xorg.4.log (24.05 KB, text/plain)
2009-10-16 17:16 UTC, Jeff Moyer
no flags Details
Xorg.5.log (24.05 KB, text/plain)
2009-10-16 17:17 UTC, Jeff Moyer
no flags Details

Description Frank Ch. Eigler 2009-10-15 15:13:53 UTC
Xorg gets into a 100%-cpu-consumption but usable state if its
initial controlling tty is somehow detached or made unavailable.

strace indicates a tight loop including

select([...]) => returning fd5
ioctl(5, TCFLSH, 0x2) => EIO, on a filehandle /dev/tty1, with no other
processes with that tty open.  systemtap indicates the kernel is treating
the filehandle with the hung_up_tty* group of functions.

See also https://bugs.launchpad.net/xorg-server/+bug/60487
https://bugs.launchpad.net/ubuntu/+source/usplash/+bug/439138?comments=all
where these guys work around the problem by arranging to keep the tty open.

Nevertheless, it seems to me that xorg should adapt to the loss of the
tty (which it can determine from the EIO error return code), and stop
polling it.

xorg-x11-server-Xorg-1.6.4-0.1-fc11.x86_64

Comment 1 Frank Ch. Eigler 2009-10-15 15:16:00 UTC
See also bug #475890 and bug #490829, except in this case, there 
appears to be no mingetty or whatever else also hammering on tty1.

Comment 2 Matěj Cepl 2009-10-16 17:04:01 UTC
Thanks for the bug report.  We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.

Please attach your X server config file (/etc/X11/xorg.conf, if available), /var/log/dmesg, and X server log file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file attachments using the bugzilla file attachment link below.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 3 Jeff Moyer 2009-10-16 17:14:19 UTC
Created attachment 365071 [details]
dmesg

Comment 4 Jeff Moyer 2009-10-16 17:15:07 UTC
Created attachment 365072 [details]
Xorg.0.log

Comment 5 Jeff Moyer 2009-10-16 17:15:26 UTC
Created attachment 365073 [details]
Xorg.1.log

Comment 6 Jeff Moyer 2009-10-16 17:15:44 UTC
Created attachment 365074 [details]
Xorg.2.log

Comment 7 Jeff Moyer 2009-10-16 17:16:03 UTC
Created attachment 365075 [details]
Xorg.3.log

Comment 8 Jeff Moyer 2009-10-16 17:16:24 UTC
Created attachment 365076 [details]
Xorg.4.log

Comment 9 Jeff Moyer 2009-10-16 17:17:07 UTC
Created attachment 365077 [details]
Xorg.5.log

I logged out and logged back in since this has happened, FYI.  There is no xorg.conf file.

Comment 10 Matěj Cepl 2009-11-05 18:39:02 UTC
Since this bugzilla report was filed, there have been several major updates in various components of the Xorg system, which may have resolved this issue. Users who have experienced this problem are encouraged to upgrade their system to the latest version of their packages. For packages from updates-testing repository you can use command

yum upgrade --enablerepo='*-updates-testing'

Alternatively, you can also try to test whether this bug is reproducible with the upcoming Fedora 12 distribution by downloading LiveMedia of F12 Beta available at http://alt.fedoraproject.org/pub/alt/nightly-composes/ . By using that you get all the latest packages without need to install anything on your computer. For more information on using LiveMedia take a look at https://fedoraproject.org/wiki/FedoraLiveCD .

Please, if you experience this problem on the up-to-date system, let us now in the comment for this bug, or whether the upgraded system works for you.

If you won't be able to reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

[This is a bulk message for all open Fedora Rawhide Xorg-related bugs. I'm adding myself to the CC list for each bug, so I'll see any comments you make after this and do my best to make sure every issue gets proper attention.]

Comment 11 Matěj Cepl 2010-02-26 12:26:41 UTC
Could you please reply to the previous question? If you won't reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

[Note please, that this is machine generated comment for large amount of bugs; due to some technical issues, it is possible we've missed some of the responses -- it is happens, please, just a make a comment about that; that we will see. Thank you]

Comment 12 Frank Ch. Eigler 2010-02-26 12:47:00 UTC
Matej, information has been provided, including strace logs.
It would be rather unfortunate if the only diagnosis / response
that we received in exchange is automatic notification about
'please try the new version'.  Can you do any level of examination
of the new source code, in order to see whether any *relevant*
areas have been changed?

Comment 13 Ben Skeggs 2010-02-26 23:50:12 UTC
I took a brief looks.  For starters, this is definitely nothing to do with nouveau.  I'd say it belongs on xorg-x11-server.  If this is still an issue for you, can you please reassign.

Comment 14 Frank Ch. Eigler 2010-02-27 01:13:49 UTC
Ben, thanks for taking a look.  I agree, the -server seems like the 
most appropriate component (and the one we initially selected for
this bugzilla report).
Jeff, can you reproduce this problem still?

Comment 15 Jeff Moyer 2010-02-28 23:09:15 UTC
No, I can't reproduce the problem.

Comment 16 Frank Ch. Eigler 2010-03-01 16:57:25 UTC
OK, let's close this then.  I hope next time we can nab the bug in flight.


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