Java JVM 6 Swing Crashes

Bug #192761 reported by Juergen Beckmerhagen
8
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

Binary package hint: sun-java6-jre

Java Swing application crashes in Hardy Alpha 4

java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)

Linux 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux

Graphic Card ATi Mobility Radeon X1600
fglrx driver

JVM output:

Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7d10767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7d108b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x905b729d]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0x906b38ce]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0x90690067]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0x90690318]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0x9069061f]
#7 [0xb4ca03aa]
#8 [0xb4c98f0d]
#9 [0xb4c98f0d]
#10 [0xb4c96249]
#11 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x637338d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x64fd168]
#13 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x6373220]
#14 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x363) [0x63c90d3]
#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) [0xb7cb196d]
#16 [0xb4ca03aa]
#17 [0xb4c98da7]
#18 [0xb4c96249]
#19 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/server/libjvm.so [0x637338d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.

Revision history for this message
FriedChicken (domlyons) wrote :
Revision history for this message
FriedChicken (domlyons) wrote :

Confirmed (Kubuntu 8.04 with all recent updates)

Changed in sun-java6:
status: New → Confirmed
Revision history for this message
Juergen Beckmerhagen (juergen-beckmerhagen) wrote :

Thanks to a Gentoo forum entry today I found a "workaround". Please read http://gentoo-wiki.com/Compiz_fusion#XCB_workaround

I wanted to run my Swing base app on this Hardy machine. Therefore I first saved a copy of "libmawt.so" to "libmawt.so.sicher" (I am German) and then I applied a (dirty) patch to "libmawt.so". Here are the command lines entered as root from the root-directory:

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

Same works for Java 5.

Revision history for this message
FriedChicken (domlyons) wrote :

I thinks it's a general problem, for example Java Web Start doesn't work.

It would be better to use
   $ cp /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so.saved
   $ echo /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so | sudo xargs sed -i 's/XINERAMA/FAKEEXTN/g'
because you don't have to be root and it's executable from evrywhere, not only in "/".

Thank you, this worked at my system, too.

I think we can change status to "Fix commited" because the guys packing java should know now what they have to change.

Revision history for this message
FriedChicken (domlyons) wrote :

There's a dirty fix, but the packages should be edited.

Changed in sun-java6:
status: Confirmed → Fix Committed
Revision history for this message
anagor (anagor) wrote :

I can confirm that the bug also affects amd64 hardy and the fix commited here works for amd64 also, all needed is to change the /i386/ directory to /amd64/ .

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.