Subject: Re: Alignment error
To: Sung-Won Chung <swchung7@hotmail.com>
From: Andrey Petrov <petrov@netbsd.org>
List: port-sparc64
Date: 07/17/2002 12:29:04
On Wed, Jul 03, 2002 at 11:16:54PM +0900, Sung-Won Chung wrote:
> After installing 20020526-1.6A snapshot, I tried to compile some packages,
> since NetBSD/sparc binary was not executed. Some packages (xfig, lyx) needed
> simple modification to prevent gcc internal compile error 'emit_move_insn_1' 
> and
> the compilation of some packages produced unexecutable binaries.
> I think this problem is sparc64-specific, since the compilation of
> the same package on i386 or alpha doesn't make internal compile error
> or alignemnt error.
> 
> For example, when I run olvwm and mosaic, I got console error message and
> the program stopped with bus error.
> 
>   Jul  2 10:06:35 ultra1 /netbsd: Alignment error: pid=21955 comm=olvwm 
> dsfsr=0000
>   0000:00800005 dsfar=ffffffff:ffffcf9c isfsr=00000000:00000000 pc=406689ac
> 
>   Jul  3 11:07:22 ultra1 /netbsd: Alignment error: pid=27274 comm=Mosaic 
> dsfsr=000
>   00000:00800005 dsfar=ffffffff:ffffb8ac isfsr=00000000:00000000 pc=41097788
> 
> Is there any possible way to escape this error ?
> 

It could be application error i.e. it's not 64-bit big endian clean or
compiler problem. If you compile your application without optimization and
it will work then it's compiler failure and you can try to use newer gcc.
3.1 for example. Otherwise, debug your app.

Also it would be interesting to see what instruction causes misalignment.

	Andrey