Bug 887507 - lightdm-gtk loops with qxl
Summary: lightdm-gtk loops with qxl
Keywords:
Status: CLOSED DUPLICATE of bug 915986
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-drv-qxl
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alon Levy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 879535 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-15 19:35 UTC by Gene Czarcinski
Modified: 2014-08-04 22:09 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-08 06:55:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/varr/log/lightdm/lightdm.log (10.83 KB, text/plain)
2012-12-16 13:17 UTC, Gene Czarcinski
no flags Details
/var/log/lightdm/x-0.log (2.83 KB, text/plain)
2012-12-16 13:19 UTC, Gene Czarcinski
no flags Details
debug.output (7.28 KB, text/plain)
2013-01-29 09:36 UTC, Jens Petersen
no flags Details
lightdm.log from latest test (2 cycles) (5.59 KB, text/plain)
2013-01-30 20:47 UTC, Gene Czarcinski
no flags Details
xz compressed strace output (149.59 KB, application/octet-stream)
2013-01-30 20:54 UTC, Gene Czarcinski
no flags Details

Description Gene Czarcinski 2012-12-15 19:35:25 UTC
Description of problem:
On a system installed in a qemu/kvm virtual system with mutliple desktops installed, if lightdm is the enabled display manager, the system gets in a crash loop.  The only thing to do at that point appears to be a "force off" of the system.

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

How reproducible:
It varies a little but it takes multple desktops installed "or something" because I have had it work OK a couple of times.

Additional info:
I believe I will be able to create the problem at will.  What info do you need?

Comment 1 Rex Dieter 2012-12-16 01:51:30 UTC
An abrt-report and/or backtrace would help.

Comment 2 Gene Czarcinski 2012-12-16 13:17:51 UTC
Created attachment 664322 [details]
/varr/log/lightdm/lightdm.log

I ran lightdm from a terminal as:
  lightdm --log-dir=/var/log/lightdm -d --test-mode

^c broke in.

This was run in a qemu/kvm/libvirt/virt-manager with a virtual console.

Also .. in runlevel 3

Comment 3 Gene Czarcinski 2012-12-16 13:19:10 UTC
Created attachment 664323 [details]
/var/log/lightdm/x-0.log

Comment 4 Gene Czarcinski 2013-01-03 17:37:43 UTC
I have the problem isolated down the the package which causes lightdm to get into the fail-loop: xorg-x11-drv-qxl

In the last couple days I installed F18 into a qemu-kvm/libvirt virtual system and used virt-manager also.  The install did not include anything form updates-testing and, to my surprise, lightdm worked just fine.  But, after I updated to updates-testing, I had the problem again.

THrough trail and error and increamentally updates a few packages at a time, I isolated the cause.  With the "qxl" package installed, I had the problem.  Without the update to 0.1.0-1, the problem was there.

I am not sure if this is a lightdm problem or a "qxl" problem but "qxl" is suspicious.

Comment 5 Jens Petersen 2013-01-28 06:12:23 UTC
Haven't seen this recently with F18 but it is happening for F19 Rawhide.

(I just tested F18 XFCE Live in virt-manager which default to qxl
and it works fine.)

Comment 6 Jens Petersen 2013-01-28 06:14:07 UTC
Any particular files in /var/log/lightdm/ you want to see?

Comment 7 Jens Petersen 2013-01-28 06:17:47 UTC
(In reply to comment #5)
> it is happening for F19 Rawhide.

Switching from qxl to a different virt graphics chip seems to fix it.

Comment 8 Christoph Wickert 2013-01-28 08:42:00 UTC
Do we have any signs that lightdm actually *crashes*? 
"Server terminated successfully (0). Closing log file." doesn't sound like a crash to me, I assume it's more like the xserver crashed.

Does startx work with the qxl driver installed?

Comment 9 Jens Petersen 2013-01-29 09:14:22 UTC
> Does startx work with the qxl driver installed?

Yes, and gdm too.

Comment 10 Jens Petersen 2013-01-29 09:36:04 UTC
Created attachment 689708 [details]
debug.output

This is the debug output I see on stderr when running "lightdm -d" in current rawhide.

I interrupted it after several X loops by holding down Ctrl-c.

Comment 11 Rex Dieter 2013-01-29 14:25:11 UTC
Based on the log submitted, its the greeter exiting unexpectedly (crash?), reassigning...

Comment 12 Gene Czarcinski 2013-01-30 17:30:26 UTC
Sorry, this is NOT fix in Fedora 18 (and is likely not fixed in rawhide either).  I just ran a test and it is still there.  I can provide any needed info.

My test was:
1. Fedora 18 on host with qemu-kvm/libvirt virtualization

2. Fedora 18 on virtual system.  After:
      systemctl  --force  enable  lightdm.service
and rebooting, I got loop and had to force-shutdown.

Both host and virtual had been updated to current Fedora+updates

Comment 13 Rex Dieter 2013-01-30 17:48:26 UTC
see comment #1 (if crash is occurring, a backtrace is likely required to find what's going wrong where)

Comment 14 Gene Czarcinski 2013-01-30 20:27:21 UTC
I have no idea how to get a backtrace in this situation.  However, in attempt to move things along I ran an strace:
    strace -f -o lightdm.st /usr/sbin/lightdm -d

There are two files that may be of interest: /var/log/lightdm/lightdm.log and the output of strace.  The strace file is a bit large (about 4MB) and I am reluctant to attach it here.

I am going to try and edit the two files so that just a complete cycle is captured which should cut down on the size (it looped for three or four times).  I gzipped the strace file and that reduced 4MB  to around 512KB.

So, how do you want this info.  Do you want it.

Comment 15 Gene Czarcinski 2013-01-30 20:47:25 UTC
Created attachment 690574 [details]
lightdm.log from latest test (2 cycles)

Comment 16 Gene Czarcinski 2013-01-30 20:54:36 UTC
Created attachment 690599 [details]
xz compressed strace output

editing for 2 cycles brought it down to 2.7MB.

with gzip: 342KB
with bzip2: 244KB
with xz: 153KB  .... I am impressed

So xz it is

Comment 17 Jens Petersen 2013-01-31 07:30:57 UTC
Actually I realised I only see the light-gtk crash on F19 rawhide guest when using qxl - sorry if I hijacked your report - anyway I can't reproduce on F18 (neither guest nor host).

Comment 18 Gene Czarcinski 2013-01-31 09:10:16 UTC
And I only see it with lightdm-gtk and qxl which I only have as a virtual device.  Using lightdm-kde, lxdm, etc. seem to work OK.  I need to track down what produces a 239 return code.

Comment 19 Jens Petersen 2013-02-01 01:38:24 UTC
Ok reassigning to the qxl driver then.

Comment 20 Jens Petersen 2013-04-06 08:16:20 UTC
*** Bug 879535 has been marked as a duplicate of this bug. ***

Comment 21 Dan Mashal 2013-05-08 06:55:55 UTC

*** This bug has been marked as a duplicate of bug 915986 ***


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