If you spend anytime in #xubuntu-devel (or if you've experienced this issue yourself), you'll knew it isn't much fun. Luckily, I'm happy to report that I think I may have found a fix (at least a fix to avoid the problem). For those of you experiencing the freezing at the login, edit /etc/xdg/xfce4/xinitrc so that the dbus-launch stuff occurs before the screensaver stuff. This should hopefully result in it not hanging on login for you anymore. If it does, let me know and then try adding a sleep 1 statement inbetween dbus-launch stuff and screensaver stuff and see if you can still reproduce it. Be sure to attach your modified xinitirc file when you send me your success or failures.<br>
<br>Cheers,<br><br>Your fearless leader Cody ;]<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Bryce Harrington</b> <<a href="mailto:bryce@canonical.com">bryce@canonical.com</a>><br>
Date: Fri, Jun 20, 2008 at 11:33 PM<br>Subject: libX11/XCB problems in Hardy<br>To: <a href="mailto:ubuntu-devel@lists.ubuntu.com">ubuntu-devel@lists.ubuntu.com</a><br><br><br>A couple fairly subtle but serious issues have come to light in Hardy<br>
relating to XCB-enablement in libX11, and I wanted to send this note<br>
to notify of a pending change we'll push out once we have a bit more<br>
verification.<br>
<br>
<br>
185311 locking assertion failure, xorg/libsdl (13 dupes)<br>
Particularly afflicting OpenOffice.org users<br>
<br>
<br>
232364 dbus-launch hangs at session start waiting on socket output in libxcb<br>
Particularly afflicting Xubuntu users<br>
<br>
<br>
Both issues have seemingly been traced to be related to and/or due to<br>
the enablement of XCB in libx11. While we're not 100% certain libxcb is<br>
at fault here, in contacting XCB upstream it seems that locking issues<br>
are a known issue with the current version and re-architecting work is<br>
underway to resolve them.<br>
<br>
In the interim, for Hardy I'm considering that we should revert XCB in<br>
libx11. I've prepared libx11 debs with XCB disabled for testing<br>
purposes at the above bug id's. If we can get this verified as<br>
resolving the issue (and causing no other notable regression), we can<br>
decide on putting an SRU through on it.<br>
<br>
I'm guessing that the new libxcb will not be appropriate for a Hardy<br>
SRU, but we should certainly include it for testing in Intrepid.<br>
<br>
Thanks go to Calc and Cody for their frontline work on the respective<br>
issues.<br>
<br>
Bryce<br>
<br>
----- Forwarded message from Barton C Massey <<a href="mailto:bart@cs.pdx.edu">bart@cs.pdx.edu</a>> -----<br>
<br>
Date: Fri, 20 Jun 2008 18:06:23 -0700<br>
From: Barton C Massey <<a href="mailto:bart@cs.pdx.edu">bart@cs.pdx.edu</a>><br>
To: Bryce Harrington <<a href="mailto:bryce@canonical.com">bryce@canonical.com</a>><br>
cc: <a href="mailto:cody-somerville@ubuntu.com">cody-somerville@ubuntu.com</a>, <a href="mailto:jamey@cs.pdx.edu">jamey@cs.pdx.edu</a>, <a href="mailto:tripletj@cs.pdx.edu">tripletj@cs.pdx.edu</a><br>
Subject: Re: (X)Ubuntu hang with XCB / dbus-launch<br>
X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,EMPTY_MESSAGE autolearn=no<br>
version=3.2.4<br>
<br>
Hi Bryce! Going well. I've Cc-ed Jamey and Josh, who<br>
are the canonical designees for this stuff. Jamey is biking<br>
for a week in the San Juans, and thus completely<br>
uncontactable. I called Josh and we had a long and<br>
informative conversation about the state of things.<br>
<br>
This is almost surely a bug in libXCB or Xlib: calling<br>
XOpenDisplay() arguably should never hang you.<br>
<br>
Jamey and Josh are finishing up "connection handoff" code<br>
that completely re-architectes the Xlib / XCB interaction,<br>
and may solve this problem and a bunch of others. They're<br>
close to finishing cleaning up this code and shipping it as<br>
the next release of Xlib/XCB.<br>
<br>
In the meantime, Josh will look at this bug and let you know<br>
if he sees anything obvious; also, he may ask you to ship<br>
experimental bits to some users with the problem and see if<br>
things get all better for them.<br>
<br>
Thanks much for the note.<br>
<br>
Bart<br>
<br>
In message <<a href="mailto:20080620215012.GV9928@bryceharrington.org">20080620215012.GV9928@bryceharrington.org</a>> you wrote:<br>
> We've got a bit of an XCB-related deadlocking problem I'm trying to help<br>
> Cody with. Cody is the lead maintainer of Xubuntu, and this particular<br>
> bug is afflicting a huge proportion of the Xubuntu users. I'm hoping<br>
> you could either give us some pointers on debugging this, or introduce<br>
> us to someone who can help figure it out?<br>
><br>
> The issue is that during dbus-launch start up, there is a hang following<br>
> the select() call in _xcb_in_read_block(). I've filed a bug in fdo<br>
> bugzilla here:<br>
><br>
> <a href="https://bugs.freedesktop.org/show_bug.cgi?id=16420" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=16420</a><br>
><br>
> We're not certain that it's a libxcb bug, or an underlying bug that<br>
> libxcb just exposes in this particular environment. Do you have any<br>
> advice on what we could do to chase this down (and/or work around it)?<br>
<br>
----- End forwarded message -----<br>
<font color="#888888"><br>
--<br>
ubuntu-devel mailing list<br>
<a href="mailto:ubuntu-devel@lists.ubuntu.com">ubuntu-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel</a><br>
</font></div><br><br clear="all"><br>-- <br>Cody A.W. Somerville<br>Software Engineer<br>Red Cow Marketing & Technologies, Inc.<br>Office: 506-458-1290<br>Toll Free: 1-877-733-2699<br>Fax: 506-453-9112<br>Cell: 506-449-5899<br>
Email: <a href="mailto:cody@redcow.ca">cody@redcow.ca</a><br><a href="http://www.redcow.ca">http://www.redcow.ca</a>