sun-java 6 x64 crashes

Bug #204193 reported by Jaroslav Šmíd
6
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Incomplete
Undecided
jlparise

Bug Description

Binary package hint: sun-java6-jre

I'm trying to run NetBeans on Ubuntu 8.04 x64. I downloaded lates NetBeans 6.1 beta 1, but this is happening with NetBeans 6.0.1. I don't have another java application, but I don't think the problem is related to NetBeans, it looks like it is java problem.

There is output if I try to run NetBeans:

Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7fed3dc7997c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x24) [0x7fed3dc79a84]
#2 /usr/lib/libX11.so.6(_XReply+0x10f) [0x7fed3e4d2f4f]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7fed3e9e4786]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7fed3e9c54eb]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7fed3e9c57bd]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x12) [0x7fed3e9c5a32]
#7 [0x7fed6239f878]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7fed3dc7997c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7fed3dc79a15]
#2 /usr/lib/libX11.so.6 [0x7fed3e4d2323]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x2c) [0x7fed3e4c972c]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7fed3e9c4885]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7fed3e9c4ad9]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so [0x7fed3e9c585f]
#7 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x12) [0x7fed3e9c5a32]
#8 [0x7fed6239f878]

NetBeans then runs with gtk-drawed widgets. I think that default in NetBeans is to run with Metal theme, so this could be result of Metal failure.

When I export environment variable AWT_TOOLKIT=MToolkit and try to run NetBeans, I get:

Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7f6905d3397c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x24) [0x7f6905d33a84]
#2 /usr/lib/libX11.so.6(_XReply+0x10f) [0x7f69067a9f4f]
#3 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so [0x7f690739b096]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so [0x7f6907347bfb]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so [0x7f6907347ecd]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x12) [0x7f6907348142]
#7 [0x7f692af59878]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7f6905d3397c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7f6905d33a15]
#2 /usr/lib/libX11.so.6 [0x7f69067a9323]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x2c) [0x7f69067a072c]
#4 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so [0x7f6907346f25]
#5 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so [0x7f6907347179]
#6 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so [0x7f6907347f6f]
#7 /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/amd64/motif21/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x12) [0x7f6907348142]
#8 [0x7f692af59878]
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f692fa167a5, pid=7286, tid=1099684176
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (10.0-b19 mixed mode linux-amd64)
# Problematic frame:
# C [libc.so.6+0x307a5] catgets+0x15
#
# An error report file with more information is saved as:
# /Programs/NetBeans/bin/hs_err_pid7286.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./../platform7/lib/nbexec: line 440: 7286 Aborted (core dumped) "/usr/lib/jvm/java-6-sun/bin/java" -Djdk.home="/usr/lib/jvm/java-6-sun" -classpath "/Programs/NetBeans/platform7/lib/boot.jar:/Programs/NetBeans/platform7/lib/org-openide-modules.jar:/Programs/NetBeans/platform7/lib/org-openide-util.jar:/Programs/NetBeans/platform7/lib/locale/boot_ja.jar:/Programs/NetBeans/platform7/lib/locale/boot_pt_BR.jar:/Programs/NetBeans/platform7/lib/locale/boot_zh_CN.jar:/Programs/NetBeans/platform7/lib/locale/org-openide-modules_ja.jar:/Programs/NetBeans/platform7/lib/locale/org-openide-modules_pt_BR.jar:/Programs/NetBeans/platform7/lib/locale/org-openide-modules_zh_CN.jar:/Programs/NetBeans/platform7/lib/locale/org-openide-util_ja.jar:/Programs/NetBeans/platform7/lib/locale/org-openide-util_pt_BR.jar:/Programs/NetBeans/platform7/lib/locale/org-openide-util_zh_CN.jar:/Programs/NetBeans/platform7/lib/locale/swing-l10n_pt_BR.jar:/usr/lib/jvm/java-6-sun/lib/dt.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/Programs/NetBeans/nb6.0:/Programs/NetBeans/ide8:/Programs/NetBeans/java1:/Programs/NetBeans/xml1:/Programs/NetBeans/apisupport1:/Programs/NetBeans/enterprise4:/Programs/NetBeans/mobility8:/Programs/NetBeans/profiler2:/Programs/NetBeans/ruby1:/Programs/NetBeans/visualweb1:/Programs/NetBeans/soa1:/Programs/NetBeans/identity1:/Programs/NetBeans/uml4:/Programs/NetBeans/harness:/Programs/NetBeans/cnd1:" -Dnetbeans.home="/Programs/NetBeans/platform7" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx362m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-XX:MaxPermSize=200m' '-Xverify:none' '-Dapple.laf.useScreenMenuBar=true' org.netbeans.Main --userdir "/Users/Jarda/.netbeans/6.0" "--branding" "nb"

and netbeans doesn't start at all.

I didn't test distribution's NetBeans as it depends on icedtea-java7 and gcj, and I'd rather have sun-java6 for better compatibility.

Revision history for this message
Jaroslav Šmíd (jardasmid) wrote :

I tried distribution netbeans and it crashes as well even without exporting AWT_TOOLKIT, there is the error I get:

#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f6223eed141, pid=12065, tid=1105725776
#
# Java VM: IcedTea 64-Bit Server VM (1.7.0-b24 mixed mode linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5ca141]
#
# An error report file with more information is saved as:
# /Users/Jarda/hs_err_pid12065.log
#
# If you would like to submit a bug report, please visit:
# http://icedtea.classpath.org/bugzilla
#
/usr/share/netbeans/6.0.1/bin/../platform7/lib/nbexec: line 440: 12065 Aborted (core dumped) "/usr/lib/jvm/java-7-icedtea/bin/java" -Djdk.home="/usr/lib/jvm/java-7-icedtea" -classpath "/usr/share/netbeans/6.0.1/platform7/lib/boot.jar:/usr/share/netbeans/6.0.1/platform7/lib/org-openide-modules.jar:/usr/share/netbeans/6.0.1/platform7/lib/org-openide-util.jar:/usr/lib/jvm/java-7-icedtea/lib/dt.jar:/usr/lib/jvm/java-7-icedtea/lib/tools.jar" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/usr/share/netbeans/6.0.1/nb6.0:/usr/share/netbeans/6.0.1/ide8:/usr/share/netbeans/6.0.1/java1:/usr/share/netbeans/6.0.1/apisupport1:/usr/share/netbeans/6.0.1/harness:" -Dnetbeans.home="/usr/share/netbeans/6.0.1/platform7" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx362m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-XX:MaxPermSize=200m' '-Xverify:none' '-Dapple.laf.useScreenMenuBar=true' org.netbeans.Main --userdir "/Users/Jarda/.netbeans/6.0" "--branding" "nb"

Revision history for this message
jlparise (jlparise) wrote :

Thanks for submitting this bug report to make Ubuntu and Java better!

I was wondering which version of Java you are using. Even if you have sun6-jre installed you may not be using it.

Please add the output of:

java --version

This will show what version of Java you are using. It is possible that Ubuntu is using a version of Java other than Sun's version.

Changed in sun-java6:
assignee: nobody → jlparise
status: New → Incomplete
Revision history for this message
Jaroslav Šmíd (jardasmid) wrote :

It gives me error, that java was not found (it's directory is not in PATH). But I have only one java installed (in /usr/lib/jvm/java-6-sun-1.6.0.0.04 with java-6-sun symlink in the same directory) and netbeans is configured to use this path as java home directory. If I run java from that directory I get

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

Revision history for this message
jlparise (jlparise) wrote :

If java ins't in your path this may be the problem. Netbeans needs Java to run, try adding java to your path.

Also, I made a mistake above the command should have been: java -version

Once you have the path set confirm that Sun Java is your default version to do this run: sudo update-alternatives --config java

Here is result on my machine:

jon@jon-laptop-ubuntu:~$ sudo update-alternatives --config java

There are 4 alternatives which provide `java'.

  Selection Alternative
-----------------------------------------------
* 1 /usr/lib/jvm/java-6-sun/jre/bin/java
          2 /usr/bin/gij-4.1
          3 /usr/bin/gij-4.2
 + 4 /usr/lib/jvm/java-gcj/jre/bin/java

Press enter to keep the default[*], or type selection number: 1
Using `/usr/lib/jvm/java-6-sun/jre/bin/java' to provide `java'.
jon@jon-laptop-ubuntu:~$

The one that is called java-6-sun is the official sun version. Once you've tried that I am stumped....at that point I'll be confirming this bug.

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.