Project: SWT
Bug 53141 JVM crash at eclipse exit
Reported: 2004-02-25 20:50:05 | Status: resolved fixed

The JVM crashes when eclipse 3.0M7-motif exits to the shell. The crash occured after I changed fonts. The crash is reproducible on my machine. Steps to reproduce: - start eclipse - open Window/Preferences/Workbench/Fonts - select Banner Font - click on Change - select a scalable font - click OK - click Apply - click OK - exit eclipse by clicking on 'close' button on the window - confirm with OK - wait for crash report on the terminal This is the "User preferences" part of the config: *** User Preferences: #Wed Feb 25 20:17:59 EST 2004 org.eclipse.ui.workbench/org.eclipse.jface.dialogfont=1|tahoma|17|0|MOTIF|1|-microsoft-tahoma-medium-r-normal--17-170-72-72-p-76-iso8859-1; org.eclipse.ui.ide/INTRO=false org.eclipse.ui.workbench=3.0.0 org.eclipse.ui.workbench/org.eclipse.jface.bannerfont=1|tahoma|14|0|MOTIF|1|-microsoft-tahoma-medium-r-normal--14-140-72-72-p-62-iso8859-1; org.eclipse.ui.ide/WELCOME_DIALOG=false org.eclipse.ui.ide=3.0.0 The error message from JVM: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0xFF232C88 Function=strcmp+0x238 Library=/usr/lib/libc.so.1 Current Java thread: at org.eclipse.swt.internal.motif.OS.XtDestroyWidget(Native Method) - locked <0xf5827e78> (a java.lang.Class) at org.eclipse.swt.widgets.Display.destroyDisplay(Display.java:728) at org.eclipse.swt.widgets.Display.destroy(Display.java:707) at org.eclipse.swt.graphics.Device.dispose(Device.java:232) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:279) at org.eclipse.core.launcher.Main.run(Main.java:742) at org.eclipse.core.launcher.Main.main(Main.java:581) Dynamic libraries: 0x10000 /usr/bin/java 0xff360000 /usr/lib/libthread.so.1 0xff3a0000 /usr/lib/libdl.so.1 0xff200000 /usr/lib/libc.so.1 0xff330000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 0xfe000000 /usr/j2se/jre/lib/sparc/client/libjvm.so 0xff2e0000 /usr/lib/libCrun.so.1 0xff1e0000 /usr/lib/libsocket.so.1 0xff100000 /usr/lib/libnsl.so.1 0xff0d0000 /usr/lib/libm.so.1 0xff1c0000 /usr/lib/libsched.so.1 0xff310000 /usr/lib/libw.so.1 0xff0a0000 /usr/lib/libmp.so.2 0xff070000 /usr/j2se/jre/lib/sparc/native_threads/libhpi.so 0xfe7d0000 /usr/j2se/jre/lib/sparc/libverify.so 0xfe790000 /usr/j2se/jre/lib/sparc/libjava.so 0xff020000 /usr/j2se/jre/lib/sparc/libzip.so 0xfe500000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2 0xfe470000 /usr/j2se/jre/lib/sparc/libnet.so 0xfe440000 /usr/j2se/jre/lib/sparc/libnio.so 0xfdfe0000 /usr/lib/librt.so.1 0xfdfc0000 /usr/lib/libaio.so.1 0xfbb90000 /opt/local/eclipse/plugins/org.eclipse.swt.motif_3.0.0/os/solaris/sparc/libswt-motif-3038.so 0xf0a80000 /usr/lib/libXm.so.4 0xfba90000 /usr/openwin/lib/libXt.so.4 0xf1300000 /usr/openwin/lib/libX11.so.4 0xfc2b0000 /usr/openwin/lib/libXp.so.1 0xfb9e0000 /usr/openwin/lib/libSM.so.6 0xfb9b0000 /usr/openwin/lib/libICE.so.6 0xfb8d0000 /usr/openwin/lib/libXext.so.0 0xfc290000 /usr/openwin/lib/locale/common/xlibi18n.so.2 0xfb990000 /usr/openwin/lib/locale/iso8859-1/xomEuro.so.2 0xfb8b0000 /usr/lib//liblayout.so 0xfb860000 /usr/openwin/lib/locale/common/ximlocal.so.2 Heap at VM Abort: Heap def new generation total 2112K, used 1842K [0xf1400000, 0xf1620000, 0xf1b10000) eden space 2048K, 86% used [0xf1400000, 0xf15bcbf0, 0xf1600000) from space 64K, 100% used [0xf1610000, 0xf1620000, 0xf1620000) to space 64K, 0% used [0xf1600000, 0xf1600000, 0xf1610000) tenured generation total 9096K, used 7475K [0xf1b10000, 0xf23f2000, 0xf5400000) the space 9096K, 82% used [0xf1b10000, 0xf225cd38, 0xf225ce00, 0xf23f2000) compacting perm gen total 12032K, used 11874K [0xf5400000, 0xf5fc0000, 0xf9400000) the space 12032K, 98% used [0xf5400000, 0xf5f98a08, 0xf5f98c00, 0xf5fc0000) Local Time = Wed Feb 25 20:00:47 2004 Elapsed Time = 244 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode) # # An error report file has been saved as hs_err_pid11931.log. # Please refer to the file for further information. # bash-2.05b$ uname -a SunOS joanna 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-5_10 bash-2.05b$ java -version java version "1.4.2_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) Eclipse info: Version: 3.0.0 Build: 200402122000

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java