Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 269541 Details for
Bug 390261
xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch from Linux from scratch
libxcb-1.0-sloppy_lock-1.patch (text/plain), 2.36 KB, created by
Matěj Cepl
on 2007-11-27 09:24:35 UTC
(
hide
)
Description:
patch from Linux from scratch
Filename:
MIME Type:
Creator:
Matěj Cepl
Created:
2007-11-27 09:24:35 UTC
Size:
2.36 KB
patch
obsolete
>Submitted By: Dan Nicholson <dnicholson AT linuxfromscratch DOT org> >Date: 2007-07-08 >Initial Package Version: 1.0 >Upstream Status: Will not apply. >Origin: OpenSuSE > http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/src/xorg-x11-libxcb-7.2-33.src.rpm >Description: This is a workaround for X11 applications which have locking bugs > that will trigger assertions when libxcb is used. An environment variable, > LIBXCB_ALLOW_SLOPPY_LOCK, can be set to skip the check that the display lock > has been set correctly. This will not be merged upstream as the XCB > developers have decided to be strict in exposing the bugs so they are fixed > in the appropriate location. > >diff -pNur libxcb-1.0.orig/src/xcb_conn.c libxcb-1.0/src/xcb_conn.c >--- libxcb-1.0.orig/src/xcb_conn.c 2006-11-21 20:18:48.000000000 -0800 >+++ libxcb-1.0/src/xcb_conn.c 2007-07-08 17:29:46.000000000 -0700 >@@ -62,6 +62,11 @@ static int set_fd_flags(const int fd) > static int _xcb_xlib_init(_xcb_xlib *xlib) > { > xlib->lock = 0; >+ xlib->sloppy_lock = 0; >+ >+ if (getenv("LIBXCB_ALLOW_SLOPPY_LOCK")) >+ xlib->sloppy_lock = 1; >+ > pthread_cond_init(&xlib->cond, 0); > return 1; > } >diff -pNur libxcb-1.0.orig/src/xcbint.h libxcb-1.0/src/xcbint.h >--- libxcb-1.0.orig/src/xcbint.h 2006-11-20 23:06:29.000000000 -0800 >+++ libxcb-1.0/src/xcbint.h 2007-07-08 17:29:46.000000000 -0700 >@@ -130,6 +130,7 @@ int _xcb_in_read_block(xcb_connection_t > > typedef struct _xcb_xlib { > int lock; >+ int sloppy_lock; > pthread_t thread; > pthread_cond_t cond; > } _xcb_xlib; >diff -pNur libxcb-1.0.orig/src/xcb_xlib.c libxcb-1.0/src/xcb_xlib.c >--- libxcb-1.0.orig/src/xcb_xlib.c 2006-11-02 17:38:00.000000000 -0800 >+++ libxcb-1.0/src/xcb_xlib.c 2007-07-08 17:29:46.000000000 -0700 >@@ -38,7 +38,8 @@ unsigned int xcb_get_request_sent(xcb_co > void xcb_xlib_lock(xcb_connection_t *c) > { > _xcb_lock_io(c); >- assert(!c->xlib.lock); >+ if (!c->xlib.sloppy_lock) >+ assert(!c->xlib.lock); > c->xlib.lock = 1; > c->xlib.thread = pthread_self(); > _xcb_unlock_io(c); >@@ -47,7 +48,8 @@ void xcb_xlib_lock(xcb_connection_t *c) > void xcb_xlib_unlock(xcb_connection_t *c) > { > _xcb_lock_io(c); >- assert(c->xlib.lock); >+ if (!c->xlib.sloppy_lock) >+ assert(c->xlib.lock); > assert(pthread_equal(c->xlib.thread, pthread_self())); > c->xlib.lock = 0; > pthread_cond_broadcast(&c->xlib.cond);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 390261
: 269541