Am 17.11.2013 09:26, schrieb Keith Packard:
Jonas Petersen <[email protected]> writes:
It might take one or two hours, but when it reaches the 4294 million it will
explode into a "Fatal IO error 11".
This reproduces the bug in about 15 minutes on my machine:
/* 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);
}
}
Great, thanks! I was spending some time to find a way to reproduce it as
fast as possible. Haven't thought of XNoOp. I get it in 25 minutes now.
The fastest I got before was 70 minutes.
- Jonas
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel