<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - XCloseDisplay() takes one minute around nouveau_dri.so, freezing Firefox startup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75279">75279</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>XCloseDisplay() takes one minute around nouveau_dri.so, freezing Firefox startup
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bjacob@mozilla.com
</td>
</tr>
<tr>
<th>URL</th>
<td>https://bugzilla.mozilla.org/show_bug.cgi?id=973192
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>XOrg CVS
</td>
</tr>
<tr>
<th>Component</th>
<td>DRM/other
</td>
</tr>
<tr>
<th>Product</th>
<td>DRI
</td>
</tr></table>
<p>
<div>
<pre>Hi, I'm just forwarding to you a bug report originally made against Firefox:
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=973192">https://bugzilla.mozilla.org/show_bug.cgi?id=973192</a>
The symptom is Firefox freezing on startup. The cause (see around <a href="show_bug.cgi?id=75279#c39">comment
39</a>--42 on that bug) is that a XCloseDisplay() call takes about one minute to
return.
The original reporter of the bug has recorded a profile which shows time spent
in nouveau_dri.so (see comments 50, 51 on the mozilla bug)
If you want to see what the application code triggering this bug looks like,
it's all self-contained in this file:
<a href="http://hg.mozilla.org/mozilla-central/file/tip/toolkit/xre/glxtest.cpp">http://hg.mozilla.org/mozilla-central/file/tip/toolkit/xre/glxtest.cpp</a>
228 glXMakeCurrent(dpy, None, nullptr);
229 glXDestroyContext(dpy, context);
230 XDestroyWindow(dpy, window);
231 XFreeColormap(dpy, swa.colormap);
232 XCloseDisplay(dpy); // <--- this XCloseDisplay call takes 1 minute
233 dlclose(libgl);
Is there some more information that you need, that isn't already on the mozilla
bug?
Is this application code doing something evil here?
Is this a known issue? Do you have a guess as to whether it might affect many
users (i.e., should we try working around it)?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>