[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xcb
Subject:    [Xcb] [Bug 22159] New: xorg-x11-libX11 with pthread isn't thread
From:       bugzilla-daemon () freedesktop ! org
Date:       2009-06-08 17:43:18
Message-ID: bug-22159-13485 () http ! bugs ! freedesktop ! org/
[Download RAW message or body]

http://bugs.freedesktop.org/show_bug.cgi?id=22159

           Summary: xorg-x11-libX11 with pthread isn't thread safe in
                    xcb_lock.c
           Product: XCB
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Library
        AssignedTo: xcb@lists.freedesktop.org
        ReportedBy: gunnar@besdo.de
         QAContact: xcb@lists.freedesktop.org
                CC: mhopf@suse.de


Created an attachment (id=26551)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=26551)
Example code file for xcb_lock.c error

tested with openSUSE 11.1
I use the xorg-x11-libX11 library 7.4-1.29, glibc library 2.9-2.11.1.

One thread use the XDrawPoints function to put pixel to the window.
An other thread waits with XNextEvent for an event.

Every time I produce some events the program stops.

Reproducible: Sometimes

Steps to Reproduce:
1. translate the xcb_Test.c with gcc -o xcb_Test xcb_Test.c -pthread
-I/usr/include/X11 -lX11
2. run the program xcb_Test
3. to tap some keys
Actual Results:  
Every time I produce some events the program stops with

xcb_lock.c:33: _XCBUnlockDisplay: Assertion
`xcb_get_request_sent(dpy->xcb->connection) == dpy->request' failed.
or
xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request))
>= 0)' failed.

In the xorg-x11-libX11-7.4-1.29.src.rpm is the file xcb_lock.c.
The file has a line
#include <pthread.h>
but nothing is used. I can translate the file without this line.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
Xcb mailing list
Xcb@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xcb
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic