[kaffe]"Internal error: caught an unexpected exception." on mips platform

ColinYen colin.yen at gmail.com
Fri Sep 16 05:15:39 PDT 2005


Hi, All:

I am a newbie. I have  some problems in kaffe(1.1.x-cvs 2005/09/16)on
mips platfrom.
See follow in detail.

please help me. Thank a lot. 

Colin Yen ^^

attached text:


*******************************************************************************************


./configure --prefix=$(TARGET_DIR) --host=mips-linux --build=i686-pc-linux-gnu \
 --without-x  --without-classpath-gtk-awt --enable-pure-java-math
--with-awt=no --disable-sound \
 --with-threads=unix-pthreads --with-engine=intrp ; 

*******************************************************************************************
/jre/bin # export
export CLASSPATH='.:/jre/lib/rt.jar:/jre/lib/mips:/jre/lib/security:/jre:/jre/lib'
export HOME='/'
export JAVA_HOME='/jre'
export KAFFEHOME='/jre/lib'
export LD_LIBRARY_PATH='/jre/lib/mips:/lib:/jre/lib:/usr/lib:/include'
export OLDPWD='/jre'
export PATH='/usr/bin:/bin:/usr/sbin:/sbin:/jre/bin:/jre/lib/:/jre/lib/mips'
export PWD='/jre/bin'
export SHELL='/bin/sh'
export TERM='linux'
export USER='root'


/jre/bin # ./kaffe-bin -fullversion
java full version "kaffe-1.4.2"

kaffe VM "1.1.x-cvs"

Copyright (c) 1996-2005 Kaffe.org project contributors (please see
  the source code for a full list of contributors).  All rights reserved.
Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc.

The Kaffe virtual machine is free software, licensed under the terms of
the GNU General Public License.  Kaffe.org is a an independent, free software
community project, not directly affiliated with Transvirtual Technologies,
Inc.  Kaffe is a Trademark of Transvirtual Technologies, Inc.  Kaffe comes
with ABSOLUTELY NO WARRANTY.

Engine: Interpreter   Version: 1.1.x-cvs   Java Version: 1.4
Heap defaults: minimum size: 5 MB, maximum size: unlimited
Stack default size: 64 KB
Configuration/Compilation options:
)  Compile date     : 6 16:49:56 CST 2005
  Compile host     : AK442
  Install prefix   :
/home/colin/workspace/brcm97xxx/src/mediacenter_askey/mipsel-uclibc_97318/target
  Thread system    : unix-pthreads
  Garbage Collector: kaffe-gc
  CC               : mipsel-uclibc-gcc
  CFLAGS           : -I
/home/colin/workspace/brcm97xxx/src/linux/linux/include -Wall -W
-fno-omit-frame-pointer -pthread -mips2 -DENABLE_BINRELOC
  LDFLAGS          :
  ChangeLog head   : 2005-09-15  Dalibor Topic  <robilad at kaffe.org>


**************************************************************************************
test 1: ./kaffe-bin -cp .  Hello

test 1 result:Internal error: caught an unexpected exception.


0x10012030 leaving process class java/lang/VMObject -> success
 processClass.......................... out(final)
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
   at java.lang.Object.getClass (Object.java:331)
   at java.security.Permissions.add (Permissions.java:112)
Aborted

****************************************************************************

test 2: ./kaffe-bin -v -vmdebug ALL Hello

test 2 result: bus error

findMethodLocal(java/lang/VMObject,getClass,(Ljava/lang/Object;)Ljava/lang/Class;)
-> 0x100fa208
getMethodSignatureClass(java/lang/VMObject,getClass,(Ljava/lang/Object;)Ljava/lang/Class;)
-> success
gc_heap_free: memory 0x100f6cb0 size 32
gc_heap_free: memory 0x100f6cd0 size 32
gc_heap_free: memory 0x100f35e8 size 48
gc_heap_free: memory 0x100c2e38 size 96
tidyAnalyzeMethod 0x10016030: clearing codeInfo 0x7fff7528
000: ALOAD_0
000: ALOAD_1
000: ALOAD_2
000: ALOAD_3
@0:     aload 0
- local 0: ref 0x100f0d90
001: INVOKESTATIC
  ARG 0-1: 71
@1:     invokestatic 71
findMethodLocal(java/lang/VMObject,getClass,(Ljava/lang/Object;)Ljava/lang/Class;)
-> 0x100fa208
getMethodSignatureClass(java/lang/VMObject,getClass,(Ljava/lang/Object;)Ljava/lang/Class;)
-> success
 soft_initialise_class..............java/lang/VMObject............ comein
 processClass..............java/lang/VMObject............ comein
slowLockMutex(lk=0x100f8251, th=0x10016030)
  getHeavyLock(lk=0x100f8251, th=0x10016030)
  putHeavyLock(lk=0x100f8250, th=0x10016030)
  0x10016030 entering process class java/lang/VMObject 8->13
findMethodLocal(java/lang/VMObject,finalize,()V) -> NOT FOUND
findMethodLocal(java/lang/Object,finalize,()V) -> 0x100944ac
slowUnlockMutex(lk=0x100f8251, th=0x10016030)
  getHeavyLock(lk=0x100f8251, th=0x10016030)
  putHeavyLock(lk=0x100f8250, th=0x10016030)
 processClass..............java/lang/Object............ comein
 processClass..............java/lang/Object............ comein
 processClass................java/lang/Object.......... out
slowLockMutex(lk=0x100f8251, th=0x10016030)
  getHeavyLock(lk=0x100f8251, th=0x10016030)
  putHeavyLock(lk=0x100f8250, th=0x10016030)
Initialising java/lang/VMObject static 12
findMethodLocal(java/lang/VMObject,<clinit>,()V) -> NOT FOUND
_broadcastCond(lk=0x100f8251, th=0x10016030)
  getHeavyLock(lk=0x100f8251, th=0x10016030)
  putHeavyLock(lk=0x100f8250, th=0x10016030)
slowUnlockMutex(lk=0x100f8251, th=0x10016030)
  getHeavyLock(lk=0x100f8251, th=0x10016030)
  putHeavyLock(lk=0x100f8250, th=0x10016030)
  0x10016030 leaving process class java/lang/VMObject -> success
0x10016030 leaving process class java/lang/VMObject -> success
 processClass.......................... out(final)
on current stack: base=0x7fef8000 size=1048576 bp=0x7fff6fe8 yes
Call: java/lang/VMObject.getClass(Ljava/lang/Object;)Ljava/lang/Class;.
Call to native java/lang/VMObject.getClass(Ljava/lang/Object;)Ljava/lang/Class;.
Method = java/lang/VMObject.getClass(Ljava/lang/Object;)Ljava/lang/Class;
Native stub = 'java_lang_VMObject_getClass'
Found java_lang_VMObject_getClass in library handle 0 ==
/jre/lib/mips/libnative.
Bus error

********* attached text end     ....  Thanks.




More information about the kaffe mailing list