[kaffe] kaffe doesn't runs onfreebsd5.2

pancake sergipop at mx3.redestb.es
Thu Apr 22 12:15:03 PDT 2004

It's patched on the cvs version?

it seems a bug into the jthreads implementation, take a look:

$/usr/pkg/java/kaffe> kaffe -version
Kaffe Virtual Machine

Copyright (c) 1996-2004 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

Engine: Interpreter   Version: 1.1.4   Java Version: 1.1
$/usr/pkg/java/kaffe> cd
$~> cd prg/java
$~/prg/java> kaffe test
Fatal error 'longjmp()ing between thread contexts is undefined by POSIX 1003.1' at line 72 in file /usr/src/lib/libc_r/uthread/uthread_jmp.c (errno = 2)
Abort trap (core dumped)
$~/prg/java> gdb jre/bin/kaffe-bin ~/prg/java/kaffe-bin.core 
GNU gdb 5.2.1 (FreeBSD)
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 "i386-unknown-freebsd"...jre/bin/kaffe-bin: No such file or directory.

Core was generated by `kaffe-bin'.
Program terminated with signal 6, Aborted.
#0  0x28258dcf in kill () from /lib/libc.so.5
(gdb) bt
#0  0x28258dcf in kill () from /lib/libc.so.5
#1  0x2824d878 in raise () from /lib/libc.so.5
#2  0x282c5f82 in abort () from /lib/libc.so.5
#3  0x281ff565 in _thread_exit () from /usr/lib/libc_r.so.5
#4  0x281f26c2 in longjmp () from /usr/lib/libc_r.so.5
#5  0x280db3dd in reschedule ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#6  0x280d9255 in resumeThread ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#7  0x280da829 in jthread_create ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#8  0x280a9408 in createThread ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#9  0x280a9851 in createDaemon ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#10 0x2809130a in gcEnable ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#11 0x28080172 in initialiseKaffe ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#12 0x28095aec in JNI_CreateJavaVM ()
   from /usr/pkg/java/kaffe/jre/lib/i386/libkaffevm-1.1.4.so
#13 0x08048c3d in main ()
#14 0x08048a82 in _start ()


More information about the kaffe mailing list