[kaffe] Virtual timer expired on PPC LynxOS

Foerster stefan.foerster at m.eads.net
Wed Apr 9 23:28:02 PDT 2003


Hello!

I'm currently trying to compile kaffe-1.0.7 on a PPC running LynxOS
4.0.0.

In 'config/powerpc' I created the directory lynxos containing the
following
files :
'md.c' -> copy from powerpc/linux
'md.h' -> copy from powerpc/linux, but defining SP_OFFSET to be 57 (I
used
          the sp_offset.c program once posted in this group to figure
out the
          SP_OFFSET  value)
'config.frag' -> defining :
                   Khost_cpu=powerpc
                   Khost_os=lynxos
                   CFLAGS="$CFLAGS -fsigned-char -mpowerpc"

So far so good. The configure script (parameters: --host=ppc-elf-lynxos)

and the following make, make install succeeded.

After running kaffe with some simple "HelloWorld" program. I'm getting
a "SIGVTALRM, Virtual timer expired".

Using the gdb and some debug output I got the following :

--- begin gdb output 1st run ---

GNU gdb 4.17-gnupro-98r2 LynxOS 4.0.0 020307
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.  This version of GDB is
supported
for customers of LynuxWorks, Inc.  Type
(gdb) run
Starting program: /usr/local/kaffe/jre/bin/kaffe-bin -classpath \
                  /usr/local/kaffe/lib/kjc.jar:\
                  /usr/local/kaffe/lib/tools.jar:\
                  /usr/local/kaffe/jre/lib/rt.jar:\
                  /usr/local/kaffe/jre/lib/comm.jar:\
                  /usr/local/kaffe/jre/lib/pjava.jar:\
                  /usr/local/kaffe/jre/lib/servlet.jar:\
                  /usr/local/kaffe/jre/lib/microsoft.jar:\
                  /usr/local/kaffe/jre/lib/rmi.jar:. Test
Kernel supports MTD makeClasspath: initClasspath():
'/usr/local/kaffe/lib/kjc.jar:
/usr/local/kaffe/lib/tools.jar:/usr/local/kaffe/jre/lib/rt.jar:
/usr/local/kaffe/jre/lib/comm.jar:/usr/local/kaffe/jre/lib/pjava.jar:
/usr/local/kaffe/jre/lib/servlet.jar:/usr/local/kaffe/jre/lib/microsoft.jar:

/usr/local/kaffe/jre/lib/rmi.jar:.'
insertClasspath: insertClasspath(): '/us
Program terminated with signal SIGVTALRM, Virtual timer expired.
The program no longer exists.

--- end gdb output 1st run ---
--- begin gdb output 2nd run ---

Starting program: /usr/local/kaffe/jre/bin/kaffe-bin -classpath \
                  /usr/local/kaffe/lib/kjc.jar:\
                  /usr/local/kaffe/lib/tools.jar:\
                  /usr/local/kaffe/jre/lib/rt.jar:\
                  /usr/local/kaffe/jre/lib/comm.jar:\
                  /usr/local/kaffe/jre/lib/pjava.jar:\
                  /usr/local/kaffe/jre/lib/servlet.jar:\
                  /usr/local/kaffe/jre/lib/microsoft.jar:\
                  /usr/local/kaffe/jre/lib/rmi.jar:. Test
Kernel supports MTD makeClasspath: initClasspath():
'/usr/local/kaffe/lib/kjc.jar:
/usr/local/kaffe/lib/tools.jar:/usr/local/kaffe/jre/lib/rt.jar:
/usr/local/kaffe/jre/lib/comm.jar:/usr/local/kaffe/jre/lib/pjava.jar:
/usr/local/kaffe/jre/lib/servlet.jar:/usr/local/kaffe/jre/lib/microsoft.jar:

/usr/local/kaffe/jre/lib/rmi.jar:.'
insertClasspath: '/usr/local/kaffe/lib/kjc.jar' append
insertClasspath: '/usr/local/kaffe/lib/tools.jar' append
insertClasspath: '/usr/local/kaffe/jre/lib/rt.jar' append
insertClasspath: '/usr/local/kaffe/jre/lib/comm.jar' append
insertClasspath: '/usr/local/kaffe/jre/lib/pjava.jar' append
insertClasspath: '/usr/local/kaffe/jre/lib/servlet.jar' append
insertClasspath: '/usr/local/kaffe/jre/lib/microsoft.jar' append
insertClasspath: '/usr/local/kaffe/jre/lib/rmi.jar' append
insertClasspath: '.' append
findClass: Scanning for class java/lang/Object
findClassInJar: Scanning for element java/lang/Object.class
findClassInJar: Processing classpath entry
'/usr/local/kaffe/lib/kjc.jar'
findClassInJar: Opening JAR file /usr/local/kaffe/lib/kjc.jar for
java/lang/Object.class
findClassInJar: Processing classpath entry
'/usr/local/kaffe/lib/tools.jar'
findClassInJar: Opening JAR file /usr/local/kaffe/lib/tools.jar for
java/lang/Object.class
findClassInJar: Processing classpath entry
'/usr/local/kaffe/jre/lib/rt.jar'
findClassInJar: Opening JAR file /usr/local/kaffe/jre/lib/rt.jar for
java/lang/Object.class

Program terminated with signal SIGVTALRM, Virtual timer expired.
The program no longer exists.

--- end gdb output 2nd run ---

The output of other gdb runs is truncated on arbitary places. It seems
that the SIGVTALRM is not catched inside the kaffevm ?

Any suggestions ?

Thanks

  Stefan






More information about the kaffe mailing list