JDK-6550660 : Can't start NetBeans on Solaris x64 with JDK 1.6.0_01
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: dev
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2007-04-26
  • Updated: 2011-03-12
  • Resolved: 2007-05-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u1Resolved
Description
The issue based on http://www.netbeans.org/issues/show_bug.cgi?id=97882

Failed to start NetBeans, get the following error during Loading Modules stage.

  Product Version         = NetBeans IDE Dev (Build 070425)
  Operating System        = SunOS version 5.10 running on x86
  Java; VM; Vendor; Home  = 1.6.0_01; Java HotSpot(TM) Server VM 1.6.0_01-b06;
Sun Microsystems Inc.; /opt/jdk1.6.0_01/jre
  System Locale; Encoding = en (nb); ISO646-US

The result is still the same:

Fontconfig error: Cannot load default config file
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xe626f5ab, pid=22155, tid=18
#
# Java VM: Java HotSpot(TM) Server VM (1.6.0_01-b06 mixed mode)
# Problematic frame:
# C  [libfontconfig.so.1+0x1f5ab]  FcFontRenderPrepare+0x73
#
# An error report file with more information is saved as hs_err_pid22155.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
22155 Abort - core dumped
We managed to reproduce it on NB dev, JDK 1.6.0_01 running on Sun Blade 1000
(Sparc):

...

System Info: 
 Product Version         = NetBeans IDE Dev (Build 200705081800)
 Operating System        = SunOS version 5.10 running on sparc
 Java; VM; Vendor; Home  = 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06;
Sun Microsystems Inc.; /space/jdks/jdk1.6.0_01/jre
 System Locale; Encoding = en_GB (nb); UTF-8
And we've found solution for this situation in nbusers mailing list. 

Two patches for Solaris 10 on Sparc led to the solution:
120473 and 125100-04 (or greater)

There are also comparable patches for x86 machines running Solaris 10. Applying
this one should be sufficient:
120037

IDE runs normally after applying these patches.
Just to explain: the solution of this problem was not reported by the person, who filled the bug...

But now we have Netbeans user, who is still able to reproduce this bug with all Solaris 10 patches installed (on AMD64 X2). So I've made fresh installation of latest Solaris 10, applied all patches and I am still able to reproduce it. The solution above works only in some cases.

So is there any way to bring Netbeans to work with Solaris 10, GTK and JDK 1.6.0_01?

Comments
EVALUATION The patches required to fix this are x86: 125101-04 (or later): SunOS 5.10_x86: Kernel Update patch 120037-15 (or later): SunOS 5.10_x86: ldap patch SPARC: 120473-05 (or later): SunOS 5.10: libc nss ldap PAM zfs patch 125100-04 (or later): SunOS 5.10: Kernel Update patch At the time of writing one of the x86 patches is still unreleased for reasons unknown.
01-06-2007

EVALUATION I am puzzled why a bug was filed which in its description says its resolved if you install the needed Solaris patches .. what is the point in filing a bug that is already fixed 1085341: 32-bit stdio routines should support file descriptors >255 If the complaint is that JDK uses a standard Solaris platform library which is vulnerable to that issue, then that is resolved either by installing the Solaris patch above, or by resolving issues in fontconfig and that has been done for nevada but isn't backported to S10 6365777 : libfontconfig should not use fopen/stdio routines But that is likely not the only one. So there are several bugs I could choose to close this a dup of - its even been previously reported against netbeans 6376832: Netbeans 5.0 RC2: abnormal termination with GTK LAF in JDK6 on Solaris 6419357: Netbeans 5.0 crashes when started with GTK L&F on solaris-sparc I am closing it as dup of the bug for which the patch directly fixes it.
16-05-2007