regression: java RE crash when installing java software

Bug #187061 reported by Christian Göbel on 2008-01-29
4
Affects Status Importance Assigned to Milestone
sun-java5 (Ubuntu)
Undecided
Unassigned
Nominated for Hardy by Egon Willighagen
sun-java6 (Ubuntu)
Undecided
Unassigned
Nominated for Hardy by Egon Willighagen

Bug Description

Using a standard install of Ubuntu hardy alpha 3 + the latest updates (29jan2008) I run
into the following problem:
Installation of Jedit fails (www.jedit.org) - this is a regression over Gutsy where the installation of
the same program worked flawlessly.
Since the version of Jedit is exactly the same that I installed successfully on Gutsy I suspect there is a
problem with the Java package in hardy development version.

Java has been installed via the /Applications/Add/Remove menu by selecting the package:
"Ubuntu restricted extras"

This pulls in the following version of java:
:~$ java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

This is the output I get in the gnome terminal when I try to install the software:
~$ sudo java -jar jedit42install.jar
[sudo] password for goebbe:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb5a00767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb5a008b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb548829d]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xb5a418ce]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xb5a1e067]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xb5a1e318]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb5a1e61f]
#7 [0xb5cdcecd]
#8 [0xb5cd5edd]
#9 [0xb5cd5edd]
#10 [0xb5cd3249]
#11 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x621c40d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x6310378]
#13 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x621c2a0]
#14 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x363) [0x6272153]
#15 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7cee96d]
#16 [0xb5cdcecd]
#17 [0xb5cd5d77]
#18 [0xb5cd3249]
#19 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/client/libjvm.so [0x621c40d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted (core dumped)

Expected behavior: java application should install without problems (as it did in Gutsy)
Please let me know if I can provide any additional information.

Now I removed (completely removed the sun-java 1.6 package) and installed sun-java 1.5.
I also did a
~$ sudo update-alternatives --auto java
to make my computer recognize the new package.

The problem persists:

~$ java -jar jedit4.3pre12install.jar
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb17da767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb17da8b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb182229d]
#3 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so [0xb1903d7e]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so [0xb18edd47]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so [0xb18edec3]
#6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0xb18ee106]
#7 [0xb2589c1b]
#8 [0xb2583b3b]
#9 [0xb2583b3b]
#10 [0xb2581219]
#11 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/client/libjvm.so [0xb77402bc]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/client/libjvm.so [0xb7854f98]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/client/libjvm.so [0xb77400ef]
#14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x32d) [0xb779db9d]
#15 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb753730d]
#16 [0xb25894bb]
#17 [0xb2583a64]
#18 [0xb2581219]
#19 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/client/libjvm.so [0xb77402bc]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted (core dumped)

~$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)

Frits Letteboer (f-letteboer) wrote :

I can confirm this. Both versions of Java, plugin and standalone.

Sascha Grossenbacher (berdir) wrote :

See: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373

Workaround: sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun/jre/lib/i386/motif21/libmawt.so
(Replace XINERAMA with a dummy value of the same size)

Sascha Grossenbacher (berdir) wrote :

Sorry, wrong file, this is the right one (for java 6)

 sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so

Thank a lot for the suggested workaround, Berdir!
The workaround solved my problems for the installation of Jedit.

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

Other bug subscribers

Bug attachments