[Pkg-db-devel] Bug#437931: libdb4.6: alignment issues, causes bus errors on sparc

Julien Cristau jcristau at debian.org
Tue Aug 14 20:58:08 UTC 2007


Package: libdb4.6
Version: 4.6.18-1
Severity: serious

Hi,

bogofilter currently FTBFS on sparc becauses a configure test dies with
a bus error in libdb4.6.  The test program is attached for reference.

The first error was:
Program terminated with signal 10, Bus error.
#0  0xf7d9b6fc in __env_alloc (infop=<value optimized out>,
 len=264,  retp=0xffec5888) at ../dist/../env/env_alloc.c:275
#1  0xf7da32e0 in __env_attach () from /usr/lib/libdb-4.6.so
#2  0xf7da052c in __env_open () from /usr/lib/libdb-4.6.so
#3  0x00010674 in main () at conftest.c:107

I then did this change:
< Clint> try changing env_alloc.c:66 to
< Clint> } ALLOC_ELEMENT __attribute__ ((aligned));
< Clint> and see if that helps

which resulted in:
#0  __env_alloc (infop=<value optimized out>, len=264, retp=0xffd6b6c8)
        at ../dist/../env/env_alloc.c:280
280             elp->ulen = len;

And with this change:
< Clint> jcristau: dbinc/region.h:205, change size_t pad to uintmax_t

bogofilter built without error.

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conftest.c
Type: text/x-csrc
Size: 2976 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-db-devel/attachments/20070814/da265fff/attachment.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-db-devel/attachments/20070814/da265fff/attachment.pgp 


More information about the Pkg-db-devel mailing list