[Bug 251087] New: JAVA apps fails with "xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed"
https://bugzilla.novell.com/show_bug.cgi?id=251087 Summary: JAVA apps fails with "xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed" Product: openSUSE 10.3 Version: Alpha 1plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: jorschiedt@novell.com QAContact: sndirsch@novell.com With xorg-x11-libxcb-7.2-11 various JAVA applications fail with "xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed". Unfortunately, some of those apps aren't OSS ore pretty hard to get fixed shorttime and are also business critical (from personal view). Examples: Novell ConsoleOne Novell RConj Install Anywhere Therefore I wrote this little patch, which allows a "sloppy lock" without failing. By setting the environment variable LIBXCB_ALLOW_SLOPPY_LOCK to any value the xcb assertion check will simply be ignored. I would appreciate to see such a solution in our products. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #1 from jorschiedt@novell.com 2007-03-03 17:25 MST ------- Created an attachment (id=122211) --> (https://bugzilla.novell.com/attachment.cgi?id=122211&action=view) Patch to allow sloppy lock/unlock with libxcb -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Priority|P5 - None |P2 - High -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #2 from sndirsch@novell.com 2007-03-04 02:58 MST ------- Patch looks good to me. Thanks! I don't think it's a bug in Java applications, but in Java in general. There seems to be more Java applications affected by this. See https://bugs.freedesktop.org/show_bug.cgi?id=9336 for another example. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #3 from jorschiedt@novell.com 2007-03-04 04:17 MST ------- It may be a method specific problem, because Eclipse works without flaws. I will also open a bugzilla against ConsoleOne, so we may be able to track down the reason. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #4 from sndirsch@novell.com 2007-03-04 05:15 MST ------- (In reply to comment #3)
It may be a method specific problem, because Eclipse works without flaws. I will also open a bugzilla against ConsoleOne, so we may be able to track down the reason. Could you add me to this bugreport? Thanks.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #5 from sndirsch@novell.com 2007-03-04 06:01 MST ------- patch applied for STABLE/Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #6 from mhopf@novell.com 2007-03-05 04:12 MST ------- Patch doesn't look good. IMHO c->xlib.lock should be increased / decreased if lock()/unlock() is called, so that it unlocks only if unlock() has been called the same number of times as lock(). In that case it has to be tested for underflow as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #7 from sndirsch@novell.com 2007-03-05 04:50 MST ------- Hmm. Could you add an improved patch so I can see what you mean exactly? The current patch switches back to old behavior, which of course is only a workaround. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087 ------- Comment #8 from mhopf@novell.com 2007-03-05 06:55 MST ------- Ok, after reading the old code a bit more: it uses pthreads (in our usage), with default mutex initialization. Which basically doesn't tell you the semantics (rekursive/oneshot). So the patch is ok, but *could* be made more robust by implementing a recursive lock. Leave this resolved fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251087#c9
--- Comment #9 from Matthias Hopf
Standard bug in java (actually in the statically linked libXinerama of hava). Still not fixed.
According to changelogs, fixed in JDK7 beta 22 (b22). FYI -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=251087#c10
Matthias Hopf
https://bugzilla.novell.com/show_bug.cgi?id=251087#c11
Matthias Hopf
https://bugzilla.novell.com/show_bug.cgi?id=251087#c12
--- Comment #12 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=251087#c13
Matthias Hopf
https://bugzilla.novell.com/show_bug.cgi?id=251087#c14
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=251087#c15
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=251087
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=251087#c16
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=251087#c19
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=251087#c20
--- Comment #20 from Anja Stock
participants (1)
-
bugzilla_noreply@novell.com