Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 201611

Summary: [Graphics] Cannot start IDE after installing web tools
Product: [Eclipse Project] Platform Reporter: Carlos Alvarez <caalvare>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact: Felipe Heidrich <eclipse.felipe>
Severity: major    
Priority: P3 CC: asgeir, caalvare, gheorghe, jherende, snorthov, vidyaram
Version: 3.3Keywords: triaged
Target Milestone: ---   
Hardware: Sun   
OS: Solaris   
Whiteboard:
Attachments:
Description Flags
hs_err_pid4812.log (Log file) none

Description Carlos Alvarez CLA 2007-08-29 13:25:01 EDT
Created attachment 77275 [details]
hs_err_pid4812.log (Log file)

+++ This bug was initially created as a clone of Bug #177525 +++

Could not decide if this is a web tools problem or a IDE problem, so I have put it here. Apologies if it is the wrong place.

I am running Solaris 10 11/06 on an x86 platform, and therefore and quite correctly using the 32bit version of Eclipse. Now, with the standard Eclipse installation (compiling the source code!!), I have no problems, I can run it, use it and everything seems fine. But, I have the need to use the Web Tools Platform extension. When I install this extension (using the downloaded file "wtp-sdk-R-2.0-200706260303.zip", so as to only install the WTP, not the entire Eclipse again), on the first time of running Eclipse, everything seems fine! But the next time I run Eclipse, I get the following error:

Fontconfig error: Cannot load default config file
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfe7a4179, pid=4924, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# C  [libfontconfig.so.1+0x24179]
#
# An error report file with more information is saved as hs_err_pid4924.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


If I manually remove the WTP directories and jar files (generally everything containing the letters WST and JST) from the features and plugins folders, then Eclipse will start again no problem, so to me it is obviously something wrong with the interaction between the WTP and the Eclipse.

The error file that is created (hs_err_pid4812.log in this case) contains the following:


#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xfe7a4179, pid=4812, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# C  [libfontconfig.so.1+0x24179]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x080ff000):  JavaThread "main" [_thread_in_native, id=1]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x20e071f8

Registers:
EAX=0xfe7b398c, EBX=0xfe7c4000, ECX=0x041c0e3f, EDX=0x00000000
ESP=0x08046920, EBP=0x08046948, ESI=0x00000000, EDI=0x0a668548
EIP=0xfe7a4179, EFLAGS=0x00010217

Top of Stack: (sp=0x08046920)
0x08046920:   fe7b398c 0a668548 00000000 fe7c4000
0x08046930:   fe7a411f 00000001 041c0e3f 08381c7f
0x08046940:   00000000 080469b4 08046970 fe7a4244
0x08046950:   08381c58 fe7b398c 0a668548 00000000
0x08046960:   fe7c4000 fe7a421f feffc918 09fc2ea4
0x08046970:   080469a0 fe7a4f64 08381c58 fe7b398c
0x08046980:   0a668548 00000000 fe7c4000 fe7829bd
0x08046990:   fe7a4f3f fe781500 fe7881dc feffc080 

Instructions: (pc=0xfe7a4179)
0xfe7a4169:   89 45 f0 8b 45 08 8b 4d f0 8b 50 08 8b 45 0c 50
0xfe7a4179:   8b 04 ca 50 e8 aa 44 fe ff 83 c4 08 89 45 ec 8b 

Stack: [0x07848000,0x08048000),  sp=0x08046920,  free space=8186k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libfontconfig.so.1+0x24179]
C  [libfontconfig.so.1+0x24244]  FcPatternFindElt+0x34
C  [libfontconfig.so.1+0x24f64]  FcPatternGet+0x34
C  [libfontconfig.so.1+0x253dc]  FcPatternGetCharSet+0x3c
C  [libfontconfig.so.1+0x2063b]
C  [libfontconfig.so.1+0x20be4]  FcFontSetSort+0x3fc
C  [libfontconfig.so.1+0x20d52]  FcFontSort+0xca

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.gtk.OS._pango_context_get_metrics(III)I+0
j  org.eclipse.swt.internal.gtk.OS.pango_context_get_metrics(III)I+10
j  org.eclipse.swt.graphics.GC.getFontMetrics()Lorg/eclipse/swt/graphics/FontMetrics;+53
j  org.eclipse.jface.wizard.ProgressMonitorPart.initialize(Lorg/eclipse/swt/widgets/Layout;I)V+84
j  org.eclipse.jface.wizard.ProgressMonitorPart.<init>(Lorg/eclipse/swt/widgets/Composite;Lorg/eclipse/swt/widgets/Layout;I)V+21
j  org.eclipse.jface.wizard.ProgressMonitorPart.<init>(Lorg/eclipse/swt/widgets/Composite;Lorg/eclipse/swt/widgets/Layout;)V+4
j  org.eclipse.ui.splash.BasicSplashHandler$AbsolutePositionProgressMonitorPart.<init>(Lorg/eclipse/ui/splash/BasicSplashHandler;Lorg/eclipse/swt/widgets/Composite;)V+8
j  org.eclipse.ui.splash.BasicSplashHandler.getBundleProgressMonitor()Lorg/eclipse/core/runtime/IProgressMonitor;+58
j  org.eclipse.ui.splash.BasicSplashHandler.getContent()Lorg/eclipse/swt/widgets/Composite;+1
j  org.eclipse.ui.internal.splash.EclipseSplashHandler.init(Lorg/eclipse/swt/widgets/Shell;)V+235
j  org.eclipse.ui.internal.Workbench$5.run()V+254
j  org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
j  org.eclipse.ui.internal.Workbench.createSplashWrapper()V+32
j  org.eclipse.ui.internal.Workbench.runUI()I+111
j  org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j  org.eclipse.ui.internal.Workbench$4.run()V+23
j  org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j  org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+81
j  org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+100
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+118
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j  org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+148
j  org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+114
j  org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0a67e400 JavaThread "Worker-0" [_thread_blocked, id=14]
  0x08462800 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=11]
  0x08461000 JavaThread "State Saver" [_thread_blocked, id=10]
  0x083dc000 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=9]
  0x08196400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7]
  0x08194c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6]
  0x08193c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5]
  0x08181400 JavaThread "Finalizer" daemon [_thread_blocked, id=4]
  0x0817d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3]
=>0x080ff000 JavaThread "main" [_thread_in_native, id=1]

Other Threads:
  0x0817a400 VMThread [id=2]
  0x08198400 WatcherThread [id=8]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 2880K, used 2819K [0xe5a00000, 0xe5d10000, 0xe6db0000)
  eden space 2624K,  99% used [0xe5a00000, 0xe5c8f840, 0xe5c90000)
  from space 256K,  77% used [0xe5c90000, 0xe5cc1680, 0xe5cd0000)
  to   space 256K,   0% used [0xe5cd0000, 0xe5cd0000, 0xe5d10000)
 tenured generation   total 37824K, used 16828K [0xe6db0000, 0xe92a0000, 0xf5a00000)
   the space 37824K,  44% used [0xe6db0000, 0xe7e1f278, 0xe7e1f400, 0xe92a0000)
 compacting perm gen  total 12288K, used 9944K [0xf5a00000, 0xf6600000, 0xf9a00000)
   the space 12288K,  80% used [0xf5a00000, 0xf63b62b8, 0xf63b6400, 0xf6600000)
No shared spaces configured.

Dynamic libraries:
0x08050000 	eclipse_v3.3/eclipse
0xfec00000 	/usr/lib/libgtk-x11-2.0.so.0
0xfef80000 	/usr/lib/libgdk_pixbuf-2.0.so.0
0xfef30000 	/usr/lib/libgobject-2.0.so.0
0xfeeb0000 	/usr/lib/libgdk-x11-2.0.so.0
0xfeb60000 	/usr/lib/libglib-2.0.so.0
0xfee90000 	/lib/libthread.so.1
0xfefb0000 	/lib/libdl.so.1
0xfea80000 	/lib/libc.so.1
0xfea50000 	/lib/libsocket.so.1
0xfe9c0000 	/lib/libnsl.so.1
0xfe9a0000 	/usr/lib/libgmodule-2.0.so.0
0xfe960000 	/usr/lib/libatk-1.0.so.0
0xfe940000 	/usr/lib/libpangoxft-1.0.so.0
0xfe8f0000 	/usr/lib/libpango-1.0.so.0
0xfe8d0000 	/usr/lib/libpangox-1.0.so.0
0xfe890000 	/usr/lib/libXft.so.2
0xfe800000 	/usr/sfw/lib/libfreetype.so.6
0xfe7e0000 	/usr/sfw/lib/libXrender.so.1
0xfe780000 	/usr/lib/libfontconfig.so.1
0xfe6f0000 	/usr/lib/libX11.so.4
0xfe690000 	/lib/libm.so.2
0xfd600000 	/usr/lib/libmlib.so.2
0xfe660000 	/usr/X11/lib/libXrandr.so.2
0xfd5e0000 	/usr/lib/libXi.so.5
0xfd5b0000 	/usr/lib/libXext.so.0
0xfd560000 	/usr/lib/libpangoft2-1.0.so.0
0xfc400000 	/usr/lib/libmlib/libmlib_sse2.so.2
0xfd510000 	/export/home/calvarc/eclipse_v3.3/plugins/org.eclipse.equinox.launcher.gtk.solaris.x86_1.0.0.v20070523/eclipse_1017a.so
0xfd4f0000 	/usr/lib/iconv/UTF-8%8859-1.so
0xfd4d0000 	/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-bmp.so
0xfbe00000 	/usr/jdk/jdk1.6.0/bin/../jre/lib/i386/client/libjvm.so
0xfd530000 	/usr/lib/libsched.so.1
0xfd4a0000 	/lib/libm.so.1
0xfd470000 	/usr/lib/libCrun.so.1
0xfd450000 	/lib/libdoor.so.1
0xfd430000 	/lib/libmp.so.2
0xfd400000 	/lib/libmd5.so.1
0xfc3d0000 	/lib/libscf.so.1
0xfd3e0000 	/lib/libuutil.so.1
0xfc370000 	/usr/sfw/lib/libexpat.so.0
0xfc350000 	/usr/lib/libz.so.1
0xfc310000 	/usr/jdk/jdk1.6.0/jre/lib/i386/native_threads/libhpi.so
0xfc2b0000 	/usr/jdk/jdk1.6.0/jre/lib/i386/libverify.so
0xfc270000 	/usr/jdk/jdk1.6.0/jre/lib/i386/libjava.so
0xfbdc0000 	/usr/jdk/jdk1.6.0/jre/lib/i386/libzip.so
0xe57e0000 	/usr/jdk/jdk1.6.0/jre/lib/i386/libnet.so
0xe57c0000 	/usr/jdk/jdk1.6.0/jre/lib/i386/libnio.so
0xe5790000 	/lib/librt.so.1
0xe5770000 	/lib/libaio.so.1
0xe5750000 	/usr/lib/libsendfile.so.1
0xe3cf0000 	/export/home/calvarc/eclipse_v3.3/configuration/org.eclipse.osgi/bundles/122/1/.cp/libswt-gtk-3346.so
0xe3c80000 	/export/home/calvarc/eclipse_v3.3/configuration/org.eclipse.osgi/bundles/122/1/.cp/libswt-pi-gtk-3346.so
0xe3c50000 	/usr/lib/libgthread-2.0.so.0
0xe3c30000 	/usr/lib/libXtst.so.1

VM Arguments:
jvm_args: -Xms40m -Xmx256m
java_command: <unknown>
Launcher Type: generic

Environment Variables:
JAVA_HOME=/usr/java
PATH=/opt/apache-ant-1.7.0/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/sfw/lib:/opt/SDK/lib:/usr/local/bin:/usr/sbin:/opt/netbeans-5.5/bin/
LD_LIBRARY_PATH=/usr/jdk/jdk1.6.0/jre/lib/i386/client::/usr/jdk/jdk1.6.0/jre/lib/i386::/lib:/usr/lib:/usr/local/lib:/usr/share/lib:/usr/sfw/lib:/opt/NMS/dist/lib:/usr/ccs/lib
SHELL=/bin/bash
DISPLAY=localhost:10.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x359100], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0x359100], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x111c78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: [libjvm.so+0x111c78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x111c78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGHUP: [libjvm.so+0x2cf508], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0x2cf508], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGQUIT: [libjvm.so+0x2cf508], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x2cf508], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGQUIT: [libjvm.so+0x2cf508], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x2cf508], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0x2d097c], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x111c78], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c


---------------  S Y S T E M  ---------------

OS:                        Solaris 10 11/06 s10x_u3wos_10 X86
           Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 14 November 2006

uname:SunOS 5.10 Generic_118855-33 i86pc  (T2 libthread)
rlimit: STACK 10240k, CORE infinity, NOFILE 65536, AS infinity
load average:0.18 0.15 0.16

CPU:total 4 family 15, cmov, cx8, fxsr, mmx, sse, sse2, mmxext, 3dnowext, 3dnow, ht

Memory: 4k page, physical 12451364k(10073136k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-b105) for solaris-x86, built on Nov 29 2006 01:28:54 by "" with unknown Workshop:0x580
Comment 1 Asgeir Storesund Nilsen CLA 2007-09-06 05:32:27 EDT
You might want to install the latest version of the 1.6.0 JRE (b02), and also run updatemanager to get the latest patches.
Comment 2 Felipe Heidrich CLA 2008-01-22 17:08:20 EST
Looking at the stack I'd say it is a bug in pango or even in fontconfig.
I have no idea why or how WTP triggers this problem to happen.

What is the version of Gtk2, glib2, pango, and fontconfig you have installed ?
Can you check if there is updates for these libraries available for you system ?
Comment 3 Felipe Heidrich CLA 2009-08-21 16:54:36 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 4 Grant Gayed CLA 2010-04-01 11:38:23 EDT
Someone on the newsgroup has reported seeing this as well, with an interesting observation:

"it was working fine with Eclipse 3.4 and Java 5, the problem came when we upgraded java to 1.6"
Comment 5 Jamie CLA 2010-08-10 17:16:42 EDT
I got this error too and was able to work around it.

The problem was in the libfontconfig.so file. I think it might have been corrupted. I was lucky enough to have the so file in another location, so I changed my LD_LIBRARY_PATH order to go to the good libfontconfig.so file first. Success!
Comment 6 Lakshmi P Shanmugam CLA 2017-06-20 02:39:11 EDT
Solaris is no longer a supported platform.