Problem in sun java

Bug #193190 reported by Rajeev Sharma
4
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am using sun java 6 on my ubuntu 8.04. I was trying to execute a jar file from the command line and I get a crash in command java. I was using ubuntu 7.10 earlier and java was working fine.

here is "java -version" command output:

rajeev@rajeev-dell:~$ 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)

here is the command line output when I try to execute a jar file:

rajeev@rajeev-dell:~$ java -jar /usr/share/doc/sun-java6-demo/demo/jfc/SwingSet2/SwingSet2.jar
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7db6767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7db68b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb7cca29d]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xb4bbf8ce]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xb4b9c067]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so [0xb4b9c318]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb4b9c61f]
#7 [0xb4fb2ecd]
#8 [0xb4fabedd]
#9 [0xb4fabedd]
#10 [0xb4fa9249]
#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) [0xb70e596d]
#16 [0xb4fb2ecd]
#17 [0xb4fabd77]
#18 [0xb4fa9249]
#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)

ProblemType: Bug
Architecture: i386
Date: Tue Feb 19 13:42:15 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/yelp
Package: yelp 2.21.90-0ubuntu2
PackageArchitecture: i386
ProcCwd: /home/rajeev
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: yelp
Uname: Linux rajeev-dell 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Rajeev Sharma (rajeev1982) wrote :
Revision history for this message
Parthan SR (parth-technofreak) wrote :

Changed the affected package to sun-java6

Revision history for this message
atreju (atreju-tauschinsky) wrote :

Does prefixing your command with LIBXCB_ALLOW_SLOPPY_LOCK=1 fix the problem?
i.e. try running

LIBXCB_ALLOW_SLOPPY_LOCK=1 java -jar /usr/share/doc/sun-java6-demo/demo/jfc/SwingSet2/SwingSet2.jar

Revision history for this message
Rajeev Sharma (rajeev1982) wrote : Re: [Bug 193190] Re: Problem in sun java

Hi Atreju,

If I give the command 'LIBXCB_ALLOW_SLOPPY_LOCK=1 java
-jar /usr/share/doc/sun-java6-demo/demo/jfc/SwingSet2/SwingSet2.jar' it
works fine.

Now I am able to execute the jar file correctly.

Regards,
Rajeev Sharma

On Sun, 2008-02-24 at 12:45 +0000, atreju wrote:
> Does prefixing your command with LIBXCB_ALLOW_SLOPPY_LOCK=1 fix the problem?
> i.e. try running
>
> LIBXCB_ALLOW_SLOPPY_LOCK=1 java -jar /usr/share/doc/sun-
> java6-demo/demo/jfc/SwingSet2/SwingSet2.jar
>

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.