Bug 25938 - JVM: Unexpected exception outside the JVM when trying to run an example
Summary: JVM: Unexpected exception outside the JVM when trying to run an example
Status: RESOLVED DUPLICATE of bug 4730
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-09 10:19 EST by Davor Cengija CLA
Modified: 2002-11-10 07:24 EST (History)
0 users

See Also:


Attachments
stack trace and detailed informations (6.41 KB, text/plain)
2002-11-09 10:20 EST, Davor Cengija CLA
no flags Details
detailed informations for jdk 1.4.0 (6.65 KB, text/plain)
2002-11-09 10:22 EST, Davor Cengija CLA
no flags Details
detailed informations jdk 1.3.1 (17.66 KB, text/plain)
2002-11-09 10:23 EST, Davor Cengija CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davor Cengija CLA 2002-11-09 10:19:13 EST
When trying to run an example, say HelloWorld1 or AddressBook, the following
error is reported:

Warning: XmStringComponentCreate() is not implemented yet!

Warning: XmParseMappingCreate() is not implemented yet!

Warning: XmStringComponentCreate() is not implemented yet!

Warning: XmParseMappingCreate() is not implemented yet!

Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list
Warning: XtRemoveGrab asked to remove a widget not on the list

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

Current Java thread:
	at org.eclipse.swt.internal.motif.OS.XmCreateScrolledList(Native Method)
	- locked <0x4834f990> (a java.lang.Class)
	at org.eclipse.swt.widgets.Display.initializeList(Display.java:1245)
	at org.eclipse.swt.widgets.Display.init(Display.java:1046)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:113)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:319)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:316)
	at org.eclipse.swt.examples.helloworld.HelloWorld1.main(HelloWorld1.java:19)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:41 30465      /opt/java/j2sdk1.4.1/bin/java
0804e000-0804f000 rw-p 00005000 03:41 30465      /opt/java/j2sdk1.4.1/bin/java
40000000-40014000 r-xp 00000000 03:05 121        /lib/ld-2.2.4.so
40014000-40015000 rw-p 00013000 03:05 121        /lib/ld-2.2.4.so
40016000-4001f000 r-xp 00000000 03:41 30944     
/opt/java/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
4001f000-40020000 rw-p 00008000 03:41 30944     
/opt/java/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
40021000-40022000 r--p 00000000 03:06 1807      
/usr/share/locale/en_US/LC_IDENTIFICATION
40022000-40023000 r--p 00000000 03:06 1806      
/usr/share/locale/en_US/LC_MEASUREMENT
40023000-40031000 r-xp 00000000 03:05 166        /lib/libpthread-0.9.so
40031000-40039000 rw-p 0000d000 03:05 166        /lib/libpthread-0.9.so
40039000-4003b000 r-xp 00000000 03:05 134        /lib/libdl-2.2.4.so
4003b000-4003c000 rw-p 00001000 03:05 134        /lib/libdl-2.2.4.so
4003c000-4016e000 r-xp 00000000 03:05 130        /lib/libc-2.2.4.so
4016e000-40174000 rw-p 00131000 03:05 130        /lib/libc-2.2.4.so
40179000-40491000 r-xp 00000000 03:41 30948     
/opt/java/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
40491000-40646000 rw-p 00317000 03:41 30948     
/opt/java/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
40657000-40669000 r-xp 00000000 03:05 139        /lib/libnsl-2.2.4.so
40669000-4066b000 rw-p 00011000 03:05 139        /lib/libnsl-2.2.4.so
4066d000-4068e000 r-xp 00000000 03:05 136        /lib/libm-2.2.4.so
4068e000-4068f000 rw-p 00020000 03:05 136        /lib/libm-2.2.4.so
4068f000-4069f000 r-xp 00000000 03:41 30938     
/opt/java/j2sdk1.4.1/jre/lib/i386/libverify.so
4069f000-406a1000 rw-p 0000f000 03:41 30938     
/opt/java/j2sdk1.4.1/jre/lib/i386/libverify.so
406a1000-406c2000 r-xp 00000000 03:41 30953     
/opt/java/j2sdk1.4.1/jre/lib/i386/libjava.so
406c2000-406c4000 rw-p 00020000 03:41 30953     
/opt/java/j2sdk1.4.1/jre/lib/i386/libjava.so
406c4000-406d9000 r-xp 00000000 03:41 30942     
/opt/java/j2sdk1.4.1/jre/lib/i386/libzip.so
406d9000-406db000 rw-p 00014000 03:41 30942     
/opt/java/j2sdk1.4.1/jre/lib/i386/libzip.so
406db000-41da9000 r--s 00000000 03:41 31051      /opt/java/j2sdk1.4.1/jre/lib/rt.jar
41dec000-41e03000 r--s 00000000 03:41 31009     
/opt/java/j2sdk1.4.1/jre/lib/sunrsasign.jar
41e03000-41e74000 r--s 00000000 03:41 30989     
/opt/java/j2sdk1.4.1/jre/lib/jsse.jar
41e74000-41e87000 r--s 00000000 03:41 31055     
/opt/java/j2sdk1.4.1/jre/lib/jce.jar
41e87000-42143000 r--s 00000000 03:41 31048     
/opt/java/j2sdk1.4.1/jre/lib/charsets.jar
441eb000-441ee000 r--s 00000000 03:41 30929     
/opt/java/j2sdk1.4.1/jre/lib/ext/dnsns.jar
441ee000-441ef000 r--p 00000000 03:06 1800      
/usr/share/locale/en_US/LC_TELEPHONE
441ef000-441f0000 r--p 00000000 03:06 1808       /usr/share/locale/en_US/LC_ADDRESS
4c270000-4c29b000 r--p 00000000 03:06 1211      
/usr/share/locale/ISO-8859-1/LC_CTYPE
4c29b000-4c29d000 r-xp 00000000 03:06 7828      
/usr/X11R6/lib/X11/locale/common/xlcDef.so.2
4c29d000-4c29e000 rw-p 00001000 03:06 7828      
/usr/X11R6/lib/X11/locale/common/xlcDef.so.2
4c29e000-4c29f000 r--p 00000000 03:06 1803       /usr/share/locale/en_US/LC_NAME
4c29f000-4c2a0000 r--p 00000000 03:06 1801       /usr/share/locale/en_US/LC_PAPER
4c2a0000-4c2a1000 r--p 00000000 03:06 1805      
/usr/share/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
4c2a1000-4c2a2000 r--p 00000000 03:06 1804       /usr/share/locale/en_US/LC_MONETARY
4c2a2000-4c2a8000 r--p 00000000 03:06 1210      
/usr/share/locale/ISO-8859-1/LC_COLLATE
4c2a8000-4c2b1000 r-xp 00000000 03:05 155        /lib/libnss_files-2.2.4.so
4c2b1000-4c2b2000 rw-p 00008000 03:05 155        /lib/libnss_files-2.2.4.so
4c2b2000-4c2cf000 r--s 00000000 03:41 30930     
/opt/java/j2sdk1.4.1/jre/lib/ext/sunjce_provider.jar
4c2cf000-4c2dd000 r--s 00000000 03:41 30931     
/opt/java/j2sdk1.4.1/jre/lib/ext/ldapsec.jar
4c2dd000-4c37c000 r--s 00000000 03:41 30932     
/opt/java/j2sdk1.4.1/jre/lib/ext/localedata.jar
4c37c000-4c44f000 r--s 00000000 03:07 3865      
/home/davor/eclipse/plugins/org.eclipse.swt.motif_2.0.0/ws/motif/swt.jar
4c44f000-4c494000 r-xp 00000000 03:07 3870      
/home/davor/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/linux/x86/libswt-motif-2047.so
4c494000-4c497000 rw-p 00044000 03:07 3870      
/home/davor/eclipse/plugins/org.eclipse.swt.motif_2.0.0/os/linux/x86/libswt-motif-2047.so
4c498000-4c5f4000 r-xp 00000000 03:06 27879      /usr/X11R6/lib/libXm.so.2.0.1
4c5f4000-4c605000 rw-p 0015b000 03:06 27879      /usr/X11R6/lib/libXm.so.2.0.1
4c607000-4c6cb000 r-xp 00000000 03:06 4338       /usr/X11R6/lib/libX11.so.6.2
4c6cb000-4c6ce000 rw-p 000c3000 03:06 4338       /usr/X11R6/lib/libX11.so.6.2
4c6ce000-4c6dc000 r-xp 00000000 03:06 4346       /usr/X11R6/lib/libXext.so.6.4
4c6dc000-4c6dd000 rw-p 0000d000 03:06 4346       /usr/X11R6/lib/libXext.so.6.4
4c6dd000-4c72b000 r-xp 00000000 03:06 4364       /usr/X11R6/lib/libXt.so.6.0
4c72b000-4c72f000 rw-p 0004d000 03:06 4364       /usr/X11R6/lib/libXt.so.6.0
4c72f000-4c736000 r-xp 00000000 03:06 4358       /usr/X11R6/lib/libXp.so.6.2
4c736000-4c737000 rw-p 00006000 03:06 4358       /usr/X11R6/lib/libXp.so.6.2
4c737000-4c73f000 r-xp 00000000 03:06 4336       /usr/X11R6/lib/libSM.so.6.0
4c73f000-4c740000 rw-p 00007000 03:06 4336       /usr/X11R6/lib/libSM.so.6.0
4c740000-4c754000 r-xp 00000000 03:06 4332       /usr/X11R6/lib/libICE.so.6.3
4c754000-4c755000 rw-p 00013000 03:06 4332       /usr/X11R6/lib/libICE.so.6.3
4c757000-4c758000 r--p 00000000 03:06 1799       /usr/share/locale/en_US/LC_TIME
4c758000-4c759000 r--p 00000000 03:06 1802       /usr/share/locale/en_US/LC_NUMERIC

Local Time = Sat Nov  9 16:04:23 2002
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)
#
# An error report file has been saved as hs_err_pid12931.log.
# Please refer to the file for further information.
#
Comment 1 Davor Cengija CLA 2002-11-09 10:20:39 EST
Created attachment 2356 [details]
stack trace and detailed informations
Comment 2 Davor Cengija CLA 2002-11-09 10:22:28 EST
Created attachment 2357 [details]
detailed informations for jdk 1.4.0
Comment 3 Davor Cengija CLA 2002-11-09 10:23:32 EST
Created attachment 2358 [details]
detailed informations jdk 1.3.1
Comment 4 Davor Cengija CLA 2002-11-09 10:27:52 EST
Hmmm... somehow detailed informations about my system disappeared.

Linux Mandrake, 2.4.18-6mdk, glibc-2.2.4-25mdk on Intel.
JDKs 1.3.1 from IBM, 1.4.0 and 1.4.1 from Sun.
Eclise 2.0.1 upgraded from 2.0.0, Linux-motif
tried -Djava.library.path on both libswt-motif-2047.so and libswt-motif-2049.so
Comment 5 Grant Gayed CLA 2002-11-09 10:50:01 EST
You're picking up installed Lesstif libraries instead of the shipped Open Motif 
libraries.  You need to:

1. put "." on the front of your LD_LIBRARY_PATH environment variable
2. launch Eclipse from its own directory (ie.- "./eclipse ...")

Doing these will solve your problem.


*** This bug has been marked as a duplicate of 4730 ***
Comment 6 Davor Cengija CLA 2002-11-10 07:24:18 EST
Very true.

I uninstalled lesstif and now I'm starting eclipse as
cd <eclipse inst dir>
LD_LIBRARY_PATH=<eclipse inst dir> ./eclipse

and it works.