[kaffe] 1.1.4 crash report: Unexpected Exception

Steven Augart augart at watson.ibm.com
Thu Mar 11 06:13:02 PST 2004


I got the following error while using Kaffe 1.1.4 to build part of 
Jikes RVM:

> Internal error: caught an unexpected exception.
> Please check your CLASSPATH and your installation.
> java/lang/NullPointerException
>         at java.lang.Thread.finish(Thread.java:183)
> Abortito (core dumped)

I invoked Kaffe as:

>  kaffe -Xmx200M -classpath .:/home/augart/JikesRVM/OSS/Images.Sun/BaseBaseCopyMS/RVM.classes:/home/augart/JikesRVM/OSS/Images.Sun/BaseBaseCopyMS/RVM.classes/rvmrt.jar GenerateInterfaceDeclarations -ia 0x43000000 -out /home/augart/JikesRVM/OSS/Images.Sun/BaseBaseCopyMS/RVM.scratch/InterfaceDeclarations.h.kaffe

Here's what GDB says about the stack:

> gdb /usr/loffe/jre/bin/kaffe-bin core
> GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
> Copyright 2003 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 "i386-redhat-linux-gnu"...
> Core was generated by `/usr/local/kaffe/jre/bin/kaffe-bin -Xmx200M -classpath .:/home/augart/JikesRVM/'.
> Program terminated with signal 6, Aborted.
> Reading symbols from /usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.4.so...done.
> Loaded symbols for /usr/local/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
> Reading symbols from /lib/tls/libm.so.6...done.
> Loaded symbols for /lib/tls/libm.so.6
> Reading symbols from /lib/libdl.so.2...done.
> Loaded symbols for /lib/libdl.so.2
> Reading symbols from /lib/tls/libc.so.6...done.
> Loaded symbols for /lib/tls/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /usr/local/kaffe/jre/lib/i386/libnative-1.1.4.so...done.
> Loaded symbols for /usr/local/kaffe/jre/lib/i386/libnative-1.1.4.so
> Reading symbols from /lib/libnss_files.so.2...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /usr/local/kaffe/jre/lib/i386/libio-1.1.4.so...done.
> Loaded symbols for /usr/local/kaffe/jre/lib/i386/libio-1.1.4.so
> #0  0xffffe002 in ?? ()
> (gdb) i stack
> #0  0xffffe002 in ?? ()#2  0x40033552 in unhandledException (eobj=0x8960a98) at exception.c:448
> #1  0x42028b93 in abort () from /lib/tls/libc.so.6
> #2  0x40033552 in unhandledException (eobj=0x8960a98) at exception.c:448
> #3  0x400334a0 in dispatchException (eobj=0x8960a98, baseFrame=0x82b82bc)
>     at exception.c:409
> #4  0x4003327f in throwExternalException (eobj=0x8960a98) at exception.c:284
> #5  0x4004cd7f in soft_athrow (o=0x0) at soft.c:471
> #6  0x08e31786 in ?? ()
> #7  0x40050cf2 in callMethodV (meth=0x82df5a0, func=0x82bbbf4, obj=0xbfffd5d0, 
>     args=0x82bc6fc "ü\b+\b", ret=0xbfffd8e8) at sysdepCallMethod.h:41
> #8  0x400502d5 in do_execute_java_method_v (obj=0x82bc6fc, 
>     method_name=0x40093267 "finish", 
>     signature=0xbfffd5d0 "¸Øÿ¿ò\f\005@üÆ+\b\200åï¿r", mb=0x42131a14, 
>     isStaticCall=0, argptr=0xbfffd978 "\030Ð$\b\211\034\005@¨Ùÿ¿pÂ")
>     at support.c:160
> #9  0x40050405 in do_execute_java_method (obj=0x82bc6fc, 
>     method_name=0x6 <Address 0x6 out of bounds>, signature=0x4008bef9 "()V", 
>     mb=0x0, isStaticCall=0) at support.c:186
> #10 0x40051ce6 in exitThread () at thread.c:488
> #11 0x400476f2 in Kaffe_DestroyJavaVM (vm=0x4009dd00) at jni.c:3580
> #12 0x08048e6e in main2 (env=0x824d018, argv=0xbfffe084, farg=5, argc=4)
>     at main.c:328
> #13 0x08048d8c in main (argc=5, argv=0xbfffe084) at main.c:189
> #14 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6

I should add that the Sun JDK (Blackdown 1.4.1-01) dies on this too. 
Sun throws an exception, but can't display a backtrace, to display the 
backtrace, so Kaffe isn't alone in choking on this.  All that the Sun 
JVM says is:

> Exception in thread "main" java.lang.StackOverflowError

This time around, Robilad, I haven't touched the state since the crash 
happened, so maybe this bug report will actually be useful.

I'll go onto the #kaffe IRC group at about 16:10 UTC today (11:10 am, 
USA Eastern Time) and if someone wants to walk me through what I 
should do to provide more useful information, I'll be glad to spend an 
hour doing what I can.

-- 
Steven Augart

Jikes RVM, open source Research Virtual Machine:
http://oss.software.ibm.com/jikesrvm

Office: +1 914/784-6743
T.J. Watson Research Center, IBM





More information about the kaffe mailing list