Bug 8526 - Eclipse stalls after displaying logo
Summary: Eclipse stalls after displaying logo
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux-Motif
: P1 blocker (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Mike Wilson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-25 19:54 EST by Claus Olesen CLA
Modified: 2002-03-07 10:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claus Olesen CLA 2002-01-25 19:54:05 EST
I just as of right now updated my computer with the latest updates from Redhat for Redhat 7.2 using up2date. I then rebooted and downloaded and the 
new stable build of Eclipse-Motif that was posted today. I unzipped Eclipse under /usr/local and invoked Eclipse from $HOME from the commandline. 
Eclipse displays the Eclipse logo but no more and appears to be stalled/crashed.
Following is the error log that Eclipse wrote.


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x403e2071
Function name=strlen
Library=/lib/i686/libc.so.6

Current Java thread:
	at org.eclipse.swt.internal.motif.OS.XmCreateScrolledList(Native Method)
	at org.eclipse.swt.widgets.Display.initializeList(Display.java:1178)
	at org.eclipse.swt.widgets.Display.init(Display.java:946)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:114)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:307)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:304)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:878)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:321)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)

Dynamic libraries:
08048000-0804c000 r-xp 00000000 08:02 655991     /usr/java/jdk1.3.1_02/bin/i386/native_threads/java
0804c000-0804d000 rw-p 00003000 08:02 655991     /usr/java/jdk1.3.1_02/bin/i386/native_threads/java
40000000-40016000 r-xp 00000000 08:02 114271     /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 08:02 114271     /lib/ld-2.2.4.so
40018000-40029000 r-xp 00000000 08:02 231546     /usr/java/jdk1.3.1_02/jre/lib/i386/libverify.so
40029000-4002b000 rw-p 00010000 08:02 231546     /usr/java/jdk1.3.1_02/jre/lib/i386/libverify.so
4002b000-4002c000 r--p 00000000 08:02 979205     /usr/lib/locale/en_US/LC_IDENTIFICATION
4002c000-4002d000 r--p 00000000 08:02 70528      /usr/lib/locale/en_US/LC_MEASUREMENT
4002d000-4002e000 r--p 00000000 08:02 930321     /usr/lib/locale/en_US/LC_TELEPHONE
4002e000-4002f000 r--p 00000000 08:02 933612     /usr/lib/locale/en_US/LC_ADDRESS
4002f000-40030000 r--p 00000000 08:02 930849     /usr/lib/locale/en_US/LC_NAME
40030000-40031000 r--p 00000000 08:02 261211     /usr/lib/locale/en_US/LC_PAPER
40031000-40032000 r--p 00000000 08:02 1011883    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
40032000-40033000 r--p 00000000 08:02 65322      /usr/lib/locale/en_US/LC_MONETARY
40033000-40040000 r-xp 00000000 08:02 701806     /lib/i686/libpthread-0.9.so
40040000-40048000 rw-p 0000c000 08:02 701806     /lib/i686/libpthread-0.9.so
40048000-40051000 r-xp 00000000 08:02 117440     /usr/java/jdk1.3.1_02/jre/lib/i386/native_threads/libhpi.so
40051000-40052000 rw-p 00008000 08:02 117440     /usr/java/jdk1.3.1_02/jre/lib/i386/native_threads/libhpi.so
40052000-40242000 r-xp 00000000 08:02 868149     /usr/java/jdk1.3.1_02/jre/lib/i386/client/libjvm.so
40242000-40340000 rw-p 001ef000 08:02 868149     /usr/java/jdk1.3.1_02/jre/lib/i386/client/libjvm.so
40357000-4035a000 r-xp 00000000 08:02 114298     /lib/libdl-2.2.4.so
4035a000-4035b000 rw-p 00002000 08:02 114298     /lib/libdl-2.2.4.so
4035b000-4048d000 r-xp 00000000 08:02 701786     /lib/i686/libc-2.2.4.so
4048d000-40493000 rw-p 00131000 08:02 701786     /lib/i686/libc-2.2.4.so
40498000-404ab000 r-xp 00000000 08:02 114303     /lib/libnsl-2.2.4.so
404ab000-404ac000 rw-p 00012000 08:02 114303     /lib/libnsl-2.2.4.so
404ae000-404d0000 r-xp 00000000 08:02 701804     /lib/i686/libm-2.2.4.so
404d0000-404d1000 rw-p 00021000 08:02 701804     /lib/i686/libm-2.2.4.so
404d1000-40505000 r-xp 00000000 08:02 327519     /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
40505000-40511000 rw-p 00033000 08:02 327519     /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
40513000-40534000 r-xp 00000000 08:02 231537     /usr/java/jdk1.3.1_02/jre/lib/i386/libjava.so
40534000-40536000 rw-p 00020000 08:02 231537     /usr/java/jdk1.3.1_02/jre/lib/i386/libjava.so
40537000-4054b000 r-xp 00000000 08:02 231547     /usr/java/jdk1.3.1_02/jre/lib/i386/libzip.so
4054b000-4054e000 rw-p 00013000 08:02 231547     /usr/java/jdk1.3.1_02/jre/lib/i386/libzip.so
4054e000-4127f000 r--s 00000000 08:02 639691     /usr/java/jdk1.3.1_02/jre/lib/rt.jar
412ac000-41551000 r--s 00000000 08:02 639684     /usr/java/jdk1.3.1_02/jre/lib/i18n.jar
41551000-41567000 r--s 00000000 08:02 639692     /usr/java/jdk1.3.1_02/jre/lib/sunrsasign.jar
4360f000-43610000 r--p 00000000 08:02 982028     /usr/lib/locale/en_US/LC_TIME
49c6f000-49c9a000 r--p 00000000 08:02 897707     /usr/lib/locale/en_US/LC_CTYPE
49c9a000-49ca0000 r--p 00000000 08:02 440728     /usr/lib/locale/en_US/LC_COLLATE
49ca0000-49ca1000 r--p 00000000 08:02 897701     /usr/lib/locale/en_US/LC_NUMERIC
49ca1000-49ca4000 r--s 00000000 08:02 851715     /usr/local/eclipse/startup.jar
49ca4000-49cb0000 r-xp 00000000 08:02 490244     /usr/X11R6/lib/libXext.so.6.4
49cb0000-49cb2000 rw-p 0000b000 08:02 490244     /usr/X11R6/lib/libXext.so.6.4
49cb2000-49cb8000 r-xp 00000000 08:02 490256     /usr/X11R6/lib/libXp.so.6.2
49cb8000-49cba000 rw-p 00005000 08:02 490256     /usr/X11R6/lib/libXp.so.6.2
49cbc000-49cc6000 r-xp 00000000 08:02 114319     /lib/libnss_files-2.2.4.so
49cc6000-49cc7000 rw-p 00009000 08:02 114319     /lib/libnss_files-2.2.4.so
4a533000-4a562000 r--s 00000000 08:02 868484     /usr/local/eclipse/plugins/org.eclipse.core.boot/boot.jar
4a562000-4a591000 r--s 00000000 08:02 868495     /usr/local/eclipse/plugins/org.eclipse.core.runtime/runtime.jar
4a591000-4a74a000 r--s 00000000 08:02 605584     /usr/local/eclipse/plugins/org.apache.xerces/xerces.jar
4a74a000-4a981000 r--s 00000000 08:02 868549     /usr/local/eclipse/plugins/org.eclipse.ui/workbench.jar
4a981000-4a9f2000 r--s 00000000 08:02 326683     /usr/local/eclipse/plugins/org.eclipse.core.resources/resources.jar
4a9f2000-4aa36000 r-xp 00000000 08:02 868509     /usr/local/eclipse/plugins/org.eclipse.swt/ws/motif/libswt-linux-2023.so
4aa36000-4aa39000 rw-p 00043000 08:02 868509     /usr/local/eclipse/plugins/org.eclipse.swt/ws/motif/libswt-linux-2023.so
4aa55000-4ab63000 r-xp 00000000 08:02 963057     /usr/X11R6/LessTif/Motif2.1/lib/libXm.so.2.0.1
4ab63000-4ab74000 rw-p 0010d000 08:02 963057     /usr/X11R6/LessTif/Motif2.1/lib/libXm.so.2.0.1
4ab77000-4abbf000 r-xp 00000000 08:02 490262     /usr/X11R6/lib/libXt.so.6.0
4abbf000-4abc3000 rw-p 00047000 08:02 490262     /usr/X11R6/lib/libXt.so.6.0
4abc3000-4abca000 r-xp 00000000 08:02 490234     /usr/X11R6/lib/libSM.so.6.0
4abca000-4abcc000 rw-p 00006000 08:02 490234     /usr/X11R6/lib/libSM.so.6.0
4abcc000-4abe0000 r-xp 00000000 08:02 490230     /usr/X11R6/lib/libICE.so.6.3
4abe0000-4abe1000 rw-p 00013000 08:02 490230     /usr/X11R6/lib/libICE.so.6.3
4ac13000-4ac2f000 r--s 00000000 08:02 280353     /usr/local/eclipse/plugins/org.eclipse.help/help.jar
4ac2f000-4ad04000 r--s 00000000 08:02 868512     /usr/local/eclipse/plugins/org.eclipse.swt/ws/motif/swt.jar
4ad04000-4adf5000 r-xp 00000000 08:02 490236     /usr/X11R6/lib/libX11.so.6.2
4adf5000-4adf9000 rw-p 000f0000 08:02 490236     /usr/X11R6/lib/libX11.so.6.2

Local Time = Fri Jan 25 16:29:38 2002
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode)
#
Comment 1 Kevin Haaland CLA 2002-01-31 21:55:33 EST
Did Eclipse work before you installed the patches? 

The problem you are reporting sounds like the wrong motif library was found.
Eclipse ships with it's own copy and relies on it being found. 
Comment 2 Kevin Haaland CLA 2002-02-07 20:46:13 EST
McQ have you seen other reports like this? From the description above it's not 
clear if Eclipse worked before on the clients machine. I run 7.2 without any 
updates on my ThinkPad and had no trouble. 
Comment 3 Claus Olesen CLA 2002-02-07 23:07:27 EST
Sorry that I did not respond earlier.
No, Eclipse did not work before I installed the patches. But I tried.
But then again - that was with the previous release of Eclipse. At that time
I filed bug report #7332.

This is what I do to install
1. login as root
2. download eclipse-SDK-20020125-linux-motif.zip into /usr/local
3. unzip the zip-file. I tried both using "unzip" and the KDE Archiver.
4. logout from root and login as normal user
5. create workspace directory in the home directory
6. change default to workspace directory
7. invoke eclipse using the command /usr/local/eclipse/eclipse

It looks to me as if Eclipse is indeed applying the Motif files that is
bundled with it - see included listing that I got using "ls -al"
(As seen from the file dates - I tried again. I deleted and re-downloaded
and re-installed. But I get the same error)

My login script(s) contains nothing related to Motif.
I have included these as well - for just in case.

Thanks

>ls -al
total 2028
drwxr-xr-x    6 root     root         4096 Jan 25 07:42 .
drwxr-xr-x   23 root     root         4096 Feb  6 23:13 ..
-rwxr-xr-x    1 root     root         2712 Jan 25 07:40 about.html
-rw-r--r--    1 root     root         2726 Jan 25 07:42 buildmanifest.properties
-rwxr-xr-x    1 root     root        16579 Jan 25 07:40 cpl-v05.html
-rwxr-xr-x    1 root     root        26166 Jan 25 07:40 eclipse
-rwxr-xr-x    1 root     root        10489 Jan 25 07:40 eclipse_icon.xpm
drwxr-xr-x    3 root     root         4096 Jan 25 07:42 install
-rwxr-xr-x    1 root     root        34573 Jan 25 07:40 launchersrc.zip
lrwxrwxrwx    1 root     root           12 Feb  6 23:13 libXm.so -> libXm.so.2.1
lrwxrwxrwx    1 root     root           12 Feb  6 23:13 libXm.so.2 -> 
libXm.so.2.1
-rwxr-xr-x    1 root     root      1915756 Jan 25 07:40 libXm.so.2.1
-rwxr-xr-x    1 root     root         3664 Jan 25 07:40 notice.html
drwxr-xr-x   54 root     root         4096 Jan 25 07:41 plugins
drwxr-xr-x    2 root     root         4096 Jan 25 07:40 readme
drwxr-xr-x    2 root     root         4096 Jan 25 07:40 splash
-rw-r--r--    1 root     root         8371 Jan 25 07:40 startup.jar
-rw-r--r--    1 root     root         7537 Jan 25 07:40 startupsrc.zip

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

unset USERNAME
PATH=$PATH:$HOME/bin

# Qt.
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR MANPATH LD_LIBRARY_PATH

# Java
JAVADIR=/usr/java

# J2EE
J2EE_HOME=$JAVADIR/j2sdkee1.3
export J2EE_HOME
PATH=$J2EE_HOME/bin:$PATH

# Ide toolkit for J2EE
FORTE_HOME=/usr/local/forte4j
export FORTE_HOME
PATH=$FORTE_HOME/bin:$PATH

# Ant for Java
ANT_HOME=$JAVADIR/jakarta-ant-1.3
export ANT_HOME
PATH=$ANT_HOME/bin:$PATH

#  Netscape plugin for Java
NPX_PLUGIN_PATH=$JAVADIR/jre1.3.1_02
export NPX_PLUGIN_PATH

# JDBC
CLASSPATH=.:$JAVADIR/mm.mysql.jdbc-1.2c
export CLASSPATH

# MyCC for MySQL
MYCC_HOME=/usr/local/mycc
PATH=$MYCC_HOME:$PATH

# Eclipse
ECLIPSE_HOME=/usr/local/eclipse
PATH=$ECLIPSE_HOME:$PATH

# J2SE (Petstore demo requires that JAVA_HOME be FIRST in the PATH)
JDK_HOME=$JAVADIR/jdk1.3.1_02
JAVA_HOME=$JDK_HOME
export JDK_HOME JAVA_HOME
PATH=$JDK_HOME/bin:$PATH

# PATH
PATH=.:$PATH
export PATH
Comment 4 Mike Wilson CLA 2002-02-08 11:37:40 EST
The particular pattern shown in the stack trace typically indicates that the 
user's machine is configured in such a way that the libXm.so which is being 
invoked is not the one provided with Eclipse. Ensure that the LD_LIBRARY_PATH 
is set appropriately.
Comment 5 Claus Olesen CLA 2002-02-08 15:13:05 EST
Thanks. It now works.
What I did is create the following 3 line script in $HOME to start Eclipse

ECLIPSE_HOME=/usr/local/eclipse
LD_LIBRARY_PATH=$ECLIPSE_HOME:$LD_LIBRARY_PATH
$ECLIPSE_HOME/eclipse

Note the absense of EXPORT of the LD_LIBRARY_PATH - don't want any other app 
but Eclipse to use the path.

Suggestion: Leave a hint about this in the installation doc for Eclipse to 
avoid Linux newbie's like me filing bug reports on what is not a bug.