If you spend anytime in #xubuntu-devel (or if you&#39;ve experienced this issue yourself), you&#39;ll knew it isn&#39;t much fun. Luckily, I&#39;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> &lt;<a href="mailto:bryce@canonical.com">bryce@canonical.com</a>&gt;<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&#39;ll push out once we have a bit more<br>
verification.<br>
<br>
<br>
185311 &nbsp;locking assertion failure, xorg/libsdl (13 dupes)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Particularly afflicting OpenOffice.org users<br>
<br>
<br>
232364 &nbsp;dbus-launch hangs at session start waiting on socket output in libxcb<br>
 &nbsp; &nbsp; &nbsp; &nbsp;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. &nbsp;While we&#39;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&#39;m considering that we should revert XCB in<br>
libx11. &nbsp;I&#39;ve prepared libx11 debs with XCB disabled for testing<br>
purposes at the above bug id&#39;s. &nbsp;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&#39;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 &lt;<a href="mailto:bart@cs.pdx.edu">bart@cs.pdx.edu</a>&gt; -----<br>
<br>
Date: Fri, 20 Jun 2008 18:06:23 -0700<br>
From: Barton C Massey &lt;<a href="mailto:bart@cs.pdx.edu">bart@cs.pdx.edu</a>&gt;<br>
To: Bryce Harrington &lt;<a href="mailto:bryce@canonical.com">bryce@canonical.com</a>&gt;<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>
 &nbsp; &nbsp; &nbsp; &nbsp;version=3.2.4<br>
<br>
Hi Bryce! &nbsp;Going well. &nbsp;I&#39;ve Cc-ed Jamey and Josh, who<br>
are the canonical designees for this stuff. &nbsp;Jamey is biking<br>
for a week in the San Juans, and thus completely<br>
uncontactable. &nbsp;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 &quot;connection handoff&quot; code<br>
that completely re-architectes the Xlib / XCB interaction,<br>
and may solve this problem and a bunch of others. &nbsp;They&#39;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>
 &nbsp; &nbsp; &nbsp; &nbsp;Bart<br>
<br>
In message &lt;<a href="mailto:20080620215012.GV9928@bryceharrington.org">20080620215012.GV9928@bryceharrington.org</a>&gt; you wrote:<br>
&gt; We&#39;ve got a bit of an XCB-related deadlocking problem I&#39;m trying to help<br>
&gt; Cody with. &nbsp;Cody is the lead maintainer of Xubuntu, and this particular<br>
&gt; bug is afflicting a huge proportion of the Xubuntu users. &nbsp;I&#39;m hoping<br>
&gt; you could either give us some pointers on debugging this, or introduce<br>
&gt; us to someone who can help figure it out?<br>
&gt;<br>
&gt; The issue is that during dbus-launch start up, there is a hang following<br>
&gt; the select() call in _xcb_in_read_block(). &nbsp;I&#39;ve filed a bug in fdo<br>
&gt; bugzilla here:<br>
&gt;<br>
&gt; &nbsp; <a href="https://bugs.freedesktop.org/show_bug.cgi?id=16420" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=16420</a><br>
&gt;<br>
&gt; We&#39;re not certain that it&#39;s a libxcb bug, or an underlying bug that<br>
&gt; libxcb just exposes in this particular environment. &nbsp;Do you have any<br>
&gt; 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 &amp; 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>