Subject: Re: pkg/12462: digest-20010312 has alignment problems on NetBSD-alpha
To: None <tron@colwyn.zhadum.de>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 03/24/2001 23:14:10
Matthias Scheler wrote:

> >Number:         12462
> >Category:       pkg
> >Synopsis:       digest-20010312 has alignment problems on NetBSD-alpha
> Architecture: alpha
> Machine: alpha
> 
> >Description:
> When verifying a "SHA1" checksum on a NetBSD-alpha system you can lots
> of error messages caused by unaligned data access:
> 
> pid 799 (digest): unaligned access: va=0x12012275f pc=0x120004fc0 ra=0x12012275f op=stl

The problem here is that digest is using the libc sha1 functions which
have the alignment problems.  These were fixed very recently in -current
and pulled up to the 1.5 branch.

Al: Not sure what the best tack is here- perhaps we should just use the
pkgsrc sha1 routines all the time?  Unfortunately just checking the
kernel version isn't going to indicate whether or not libc is up to date
enough to have the working sha1 routines (for example, someone using
a 1.5.1 kernel on a 1.5 userland).  Checking the libc version doesn't
sound like it's the right idea either...

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/