FW: [kaffe] bug report

Thomas Keane tkeane@cs.may.ie
Mon Sep 15 07:30:02 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.

Cheers,
thomas
-----Original Message-----
From: Thomas Keane [mailto:tkeane@cs.may.ie]=20
Sent: 04 September 2003 19:06
To: 'Helmer Kr=E4mer'
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
at.dms.kjc.Main

Program received signal SIGSEGV, Segmentation fault.
start_this_sucker_on_a_new_frame () at jthread.c:1453
1453            if ((currentJThread->flags & THREAD_FLAGS_KILLED) !=3D =
0)
{
(gdb) where
#0  start_this_sucker_on_a_new_frame () at jthread.c:1453
#1  0x400af194 in jthread_create (pri=3D11 '\v',=20
    func=3D0x400dbede <__DTOR_END__+2054>, daemon=3D1, =
jlThread=3D0xc5d00,=20
    threadStackSize=3D0) at jthread.c:1533
(gdb)

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

thomas

-----Original Message-----
From: Helmer Kr=E4mer [mailto:hkraemer@freenet.de]=20
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@cs.may.ie> wrote:

> Unfortunately gdb isn_t liking that - kaffe wont start so I cant get
the
> stack trace. Here_s the bash output:
>=20
> primordialbiosoup:~/kaffe# . BUILD_ENVIRONMENT ; libtool
--mode=3Dexecute
> 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
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 "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
>=20
> Program received signal SIGABRT, Aborted.
> 0x401c06c4 in kill () from /lib/libc.so.6
>=20
> Looks like the classpath might not be working (even though it is set
in
> the BUILD_ENVIRONMENT).

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):

BOOTCLASSPATH=3D${BOOTCLASSPATH}':'//root/kaffe/libraries/javalib/rt.jar'=
:
'//root/kaffe/libraries/javalib/Klasses.jar.bootstrap; export
BOOTCLASSPATH

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).

Helmer