Jonas Petersen <jnsptr...@gmail.com> 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);
        }
}

-- 
keith.pack...@intel.com

Attachment: pgpmUC3_VpeGy.pgp
Description: PGP signature

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to