<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jan,<br>
<br>
thanks for pushing this. <br>
<br>
I spent really a lot of time (weeks) tracking this down and
finding a solution. Digging down the depths of the operating
system, while actually writting application software. The result
is the mentioned patch. I then posted it here. I think there is
approval that the fix actually does work. Then there was starting
some discussion about implementation details, optimization and
possible further problems at other locations.<br>
<br>
At some point I had to take a break, since this had cost me
already so much time. Sorry about that. It's to bad this is still
pending.<br>
<br>
If nothing happens I might be willing to spend another small
amount of time to help completing this. But my time is limited. I
can not promise anything.<br>
<br>
I think this bug is quite serious. It suddenly kills programs
without asking out of nowhere. And it's patient.<br>
<br>
By the way, my software now runs on 64-bit, so luckily I'm not
affected anymore (hopefully). But there's probably still plenty of
32-bit systems
<meta http-equiv="content-type" content="text/html; charset=utf-8">
endangered by this.<br>
<br>
Have you seen? Keith posted a program to reproduce the bug (or
confirm that the patch works) as fast as possible:<br>
<br>
<pre wrap="">/* cc -o nop nop.c `pkg-config --cflags --libs x11` */
#include <stdio.h>
#include <stdint.h>
#include <X11/Xlib.h>
int
main (int argc, char **argv)
{
uint64_t i = 0;
Display *dpy = XOpenDisplay(NULL);
for (;;) {
++i;
if ((i & 0xfffffff) == 0) {
XFlush(dpy);
printf ("0x%llx\n", i);
}
XNoOp(dpy);
}
}
</pre>
<br>
Regards<br>
Jonas<br>
<br>
<br>
<br>
<br>
Am 29.07.2014 um 18:56 schrieb Jan Smout:<br>
</div>
<blockquote
cite="mid:CAHCfRVsUu85ro1AN4EF3UbN=LBTbe4-ZA=SmhPSOwefmP5V6Kg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,<br>
<div><br>
I recently stumbled into an application that crashed because
of this:<br>
<a moz-do-not-send="true"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71338">https://bugs.freedesktop.org/show_bug.cgi?id=71338</a><br>
<br>
and quickly found the following patch:<br>
<a moz-do-not-send="true"
href="http://patchwork.freedesktop.org/patch/16753/">http://patchwork.freedesktop.org/patch/16753/</a><br>
<br>
</div>
<div>which seems to work fine (the application used to crash in
less than 24 hrs. Has been running for 5 days straight with
the patch).<br>
</div>
<div><br>
</div>
<div><br>
Now my question: what is the status of this patch? Are there
still details to be clarified before it can be put into the
main tree?<br>
<br>
<br clear="all">
</div>
<div>best regards,<br>
</div>
<div>
Jan<br>
</div>
<div>-- <br>
Life is complex, it has a real part and an imaginary part.
</div>
</div>
</blockquote>
<br>
</body>
</html>