Bug 43853 - X crash during second (and subsequent) login on kubuntu 11.10
Summary: X crash during second (and subsequent) login on kubuntu 11.10
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.6 (2010.12)
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Chris Wilson
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 01:58 UTC by Robert Chalmas
Modified: 2011-12-15 09:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (copied just after the crash) (25.80 KB, text/plain)
2011-12-15 01:58 UTC, Robert Chalmas
no flags Details
dmesg (54.16 KB, application/octet-stream)
2011-12-15 02:00 UTC, Robert Chalmas
no flags Details
syslog (145.18 KB, application/octet-stream)
2011-12-15 02:01 UTC, Robert Chalmas
no flags Details
lspci (2.05 KB, application/octet-stream)
2011-12-15 02:01 UTC, Robert Chalmas
no flags Details
Xorg.0.log.old (with backtrace) (47.18 KB, text/plain)
2011-12-15 08:34 UTC, Robert Chalmas
no flags Details

Description Robert Chalmas 2011-12-15 01:58:28 UTC
Created attachment 54456 [details]
Xorg.0.log (copied just after the crash)

Overview:

At boot time, the KDE session always opens successfully. If I log out and try
to log in again, X crashes immediatly after entering my password and
pressing enter, without displaying the KDE desktop, and the login screen is displayed again. The next attempt is always successful and the KDE session opens, but with the desktop effects disabled.

In KDE, after opening System Settings, then Desktop Effects, I can see the message: "OpenGL compositing (the default) has crashed KWin in the past." If I re-enable the desktop effects and log out, then try to log in again, the crash repeats as described above. This is 100% reproductible.

The only two ways to be able to log in without crash when the desktop effects
are enabled are rebooting or killing the X-server.

Steps to Reproduce:
Log in; make sure the desktop effects are enabled (OpenGL or XRender give
similar results); log out; try to log in again.

Actual Results:  
The login fails and I'm returned to the login window.

Expected Results:  
I would expect my login to succeed and the KDE desktop to appear.

Platform:
This happens with kubuntu 11.10 (on a fresh install but also with all updates)

Additional Platforms:
It also happens with kubuntu 12.04 alpha1, but did not happen with kubuntu 11.04.
This happens with both 32 bit and 64 bit versions of kubuntu 11.10.
This was verified on several machines from different models and brands, but all using Intel integrated graphics chipset (i915).
This doesn't happen on a machine using kubuntu 11.10 with a Nvidia GEForce 9800,
Comment 1 Robert Chalmas 2011-12-15 02:00:13 UTC
Created attachment 54457 [details]
dmesg
Comment 2 Robert Chalmas 2011-12-15 02:01:00 UTC
Created attachment 54458 [details]
syslog
Comment 3 Robert Chalmas 2011-12-15 02:01:31 UTC
Created attachment 54459 [details]
lspci
Comment 4 Chris Wilson 2011-12-15 02:04:29 UTC
That Xorg.log doesn't include the stacktrace from the crash, perhaps look in Xorg.log.old. Anyway, I am pretty certain that this is this bug

commit 34b0e4eee911f8b09a3682a7f1b4c8598ef48b8d
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Aug 25 16:04:04 2011 +0100

    dri2: Register the DRI2DrawableType after server regeneration
    
    The Resource database is reset upon regeneration and so the dri2 module
    needs to re-register its RESTYPE for the drawable or else it will
    clobber the next unsuspecting user of the database. Fortunately, DRI2 is
    loaded late in the initialisation sequence and was last up until
    xf86-video-intel started using the Resource database to track
    outstanding swaps...
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
    Tested-by: Paulo Zanoni <paulo.r.zanoni@intel.com>

which is available from a very recent xserver. Can you please try ppa:xorg-edgers?
Comment 5 Robert Chalmas 2011-12-15 08:33:39 UTC
Thank you very much for your very quick answer!

In case this could be useful for a final checking, I'm posting the Xorg.0.log.old which includes the crash backtrace.

I spent the past few hours making extensive tests with the ppa you suggested on several machine types and I'm glad to report that the result is 100% positive: the bug has gone on all tested machines.

Thanks for your great cooperation!
Comment 6 Robert Chalmas 2011-12-15 08:34:55 UTC
Created attachment 54466 [details]
Xorg.0.log.old (with backtrace)
Comment 7 Chris Wilson 2011-12-15 09:01:51 UTC
The stacktrace looks consistent with the bug, and *fingers crossed* you don't run into any other problems. Thanks for the report.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.