Subject: Re: Running java (kaffe) dumps core
To: Uwe Lienig <Uwe.Lienig@fif.mw.htw-dresden.de>
From: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
List: port-alpha
Date: 07/03/2006 19:11:06
On Mon, Jul 03, 2006 at 03:34:08PM +0200, Uwe Lienig wrote:
> I have the following problem
> 
> kaffe dumps core with a very simple Hello world. The source is 5 lines
> 
> public class Hallo {
>     public static void main(String[] args) {
>         System.out.println("Hallo Welt!");
>     }
> }
> 
> I'm running bash:
> GNU bash, version 2.05b.0(1)-release (alpha--netbsd)
> Copyright (C) 2002 Free Software Foundation, Inc.
> 
> The environment is
> PATH=/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/pkg/java/kaffe/bin
> CLASSPATH=/usr/pkg/java/kaffe/jre/lib/rt.jar:.
> 
> Compiling with jikes gives no error. Running the resulting class stops with the 
> following message:
> 
> (kaffe-bin): unaligned access: va=0x1200d42f1 pc=0x160090090 ra=0x160090004 
> sp=0x1ffffe430 op=ldq

This sounds like a bug in kaffe. try setting the machdep.unaligned_fix
sysctl to 1.

Pavel