libxcb cause java to crash when running swing applications in Hardy

Bug #177888 reported by Matteo Collina
2
Affects Status Importance Assigned to Milestone
libxcb (Ubuntu)
New
Undecided
Unassigned

Bug Description

Any Swing application running under hardy crashes due to /usr/lib/libxcb-xlib.so.0.
This is not a java problem because installing it from scratch doesn't solve the problem.

This is an example with the netbeans installer.
matteo@matteo-laptop:~/Downloads$ ./netbeans-6.0-linux.sh
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb4bb2767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb4bb28b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x9fc912ed]
#3 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0x9ff5164e]
#4 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0x9ff2ff97]
#5 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so [0x9ff30248]
#6 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0x9ff3054f]
#7 [0xb4c85b7b]
#8 [0xb4c7df0d]
#9 [0xb4c7df0d]
#10 [0xb4c7b243]
#11 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/server/libjvm.so [0x62c5ecd]
#12 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/server/libjvm.so [0x64523b8]
#13 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/server/libjvm.so [0x62c5d60]
#14 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x34b) [0x631bc1b]
#15 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7c9696d]
#16 [0xb4c85b7b]
#17 [0xb4c7dda7]
#18 [0xb4c7b243]
#19 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/server/libjvm.so [0x62c5ecd]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted (core dumped)

Revision history for this message
Matteo Collina (matteo-collina) wrote :

I'm sorry, I've just found that's a java issue as stated here: http://bugs.archlinux.org/task/8521.
However it's necessary to do something for this problem, java apps like netbeans doesn't run at all.
In the forum entry they showed two possible workarounds:
* add a "export LIBXCB_ALLOW_SLOPPY_LOCK=1" somewhere
* patch a .so java library using sed

I think that Ubuntu should support even older sun jvm, so the first solution may be the best one and it leaves all the error messages whereas all the error messages remains.

Revision history for this message
Matteo Collina (matteo-collina) wrote :

In this bug https://bugs.launchpad.net/ubuntu/+source/sun-java5/+bug/86103 the problem was heavily discussed while relating to a java app: azureus.

While java 7 as stated here (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373) doesn't have this problem, older jvm still has it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.