[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Kaffe segfaults running anything



sballard@rainbow:~/java/classes$ /usr/lib/jdk1.1/bin/java Hello
Hello
sballard@rainbow:~/java/classes$ java Hello
Segmentation fault
sballard@rainbow:~/java/classes$ dpkg -l kaffe
Desired=Unknown/Install/Remove/Purge
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  kaffe          1.0.5e-0.4     A JVM to run Java bytecode
sballard@rainbow:~/java/classes$ dpkg -l jdk1.1
Desired=Unknown/Install/Remove/Purge
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  jdk1.1         1.1.8v1-2      JDK 1.1.x (Java Development Kit) -
Runtime o
sballard@rainbow:~/java/classes$

Hello.class is the obvious System.out.println("Hello") program; the same
thing happens no matter what class I try to run. I discovered that kaffe
supports a KAFFE_DEBUG environment variable, so I tried the following:

sballard@rainbow:~/java/classes$ export KAFFE_DEBUG=gdb
You have new mail in /var/spool/mail/sballard
sballard@rainbow:~/java/classes$ java      
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) run Hello
Starting program: /usr/lib/kaffe/bin/Kaffe Hello
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x401814ea in gc_heap_malloc () from /usr/lib/libkaffevm-1.0.5.so
(gdb) bt
#0  0x401814ea in gc_heap_malloc () from /usr/lib/libkaffevm-1.0.5.so
#1  0x4018d1dc in finaliserMan () from /usr/lib/libkaffevm-1.0.5.so
#2  0x4018da2c in jmalloc () from /usr/lib/libkaffevm-1.0.5.so
#3  0x40184cec in lookupClassEntry () from /usr/lib/libkaffevm-1.0.5.so
#4  0x401837f6 in loadStaticClass () from /usr/lib/libkaffevm-1.0.5.so
#5  0x401824f1 in initBaseClasses () from /usr/lib/libkaffevm-1.0.5.so
#6  0x4018238a in initialiseKaffe () from /usr/lib/libkaffevm-1.0.5.so
#7  0x401915e3 in JNI_CreateJavaVM () from /usr/lib/libkaffevm-1.0.5.so
#8  0x804d957 in main ()
#9  0x401e9a42 in __libc_start_main () from /lib/libc.so.6
(gdb) 

Does this mean anything to anyone? Perhaps I'm missing something that
should be a dependency but isn't? Or does this happen to everyone with
Kaffe?

TIA,
Stuart.


Reply to: