FW: [kaffe] bug report

Thomas Keane tkeane at cs.may.ie
Mon Sep 15 07:30:02 PDT 2003

Just wondering if anyone knows what the problem is below. I've attached
the output from gnu debugger. I cant get the "make check" to run
completely on my system.

-----Original Message-----
From: Thomas Keane [mailto:tkeane at cs.may.ie] 
Sent: 04 September 2003 19:06
To: 'Helmer Krämer'
Subject: RE: [kaffe] bug report

That seemed to work - here's the output:

(gdb) run
Starting program: /root/kaffe/kaffe/kaffe/.libs/lt-kaffe-bin

Program received signal SIGSEGV, Segmentation fault.
start_this_sucker_on_a_new_frame () at jthread.c:1453
1453            if ((currentJThread->flags & THREAD_FLAGS_KILLED) != 0)
(gdb) where
#0  start_this_sucker_on_a_new_frame () at jthread.c:1453
#1  0x400af194 in jthread_create (pri=11 '\v', 
    func=0x400dbede <__DTOR_END__+2054>, daemon=1, jlThread=0xc5d00, 
    threadStackSize=0) at jthread.c:1533

Let me know if you need more information to figure out what the problem


-----Original Message-----
From: Helmer Krämer [mailto:hkraemer at freenet.de] 
Sent: 04 September 2003 18:55
To: Thomas Keane
Subject: Re: [kaffe] bug report

On Thu, 4 Sep 2003 18:20:33 +0100
"Thomas Keane" <tkeane at cs.may.ie> wrote:

> Unfortunately gdb isn_t liking that - kaffe wont start so I cant get
> stack trace. Here_s the bash output:
> primordialbiosoup:~/kaffe# . BUILD_ENVIRONMENT ; libtool
> gdb $JAVA
> GNU gdb 2002-04-01-cvs
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> 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 "hppa-linux"...
> (gdb) set args at.dms.kjc.Main
> (gdb) run
> Starting program: /root/kaffe/kaffe/kaffe/.libs/lt-kaffe-bin
> at.dms.kjc.Main
> Couldn't find or load essential class `java/lang/Object'
> java.lang.ClassNotFoundException java/lang/Object
> Program received signal SIGABRT, Aborted.
> 0x401c06c4 in kill () from /lib/libc.so.6
> Looks like the classpath might not be working (even though it is set

hmpf, should've remembered this ...

Kaffe clearly can't find java/lang/Object, since BUILD_ENVIRONMENT
only adds libraries/javalib/rt.jar to the classpath, which obviously
can't work, since you don't have that yet ...

If you modify the first line of the BUILD_ENVIRONMENT script to look
like this (assuming that /root/kaffe contains the sources):

'//root/kaffe/libraries/javalib/Klasses.jar.bootstrap; export

libraries/javalib/Klasses.jar.bootstrap is a precompiled jar archive
that contains the classes that are required to be able to run our
java compiler, kjc. So adding that one to the bootclasspath will
hopefully help (unless I forgot something else, that is).


More information about the kaffe mailing list