mhash na sparc - testy

Tomasz Mateja tommat w pimpek.one.pl
Pią, 29 Cze 2007, 14:12:30 CEST


Budowanie wywala sie na testach (Bus error).
wiekszosc testów co się wykłada to na czymś takim:

Testing save/restore for algorithm SHA224: Ok
Testing save/restore for algorithm SHA512: Ok
Testing save/restore for algorithm SHA384: Ok
Bus error
FAIL: rest_test
Checking fragmentation capabilities of MD5: Bus error
FAIL: frag_test

[builder w moon mhash-0.9.9]$ export LD_LIBRARY_PATH=$(pwd)/lib/.libs
[builder w moon mhash-0.9.9]$ cd src/.libs/
[builder w moon .libs]$ gdb ./frag_test
GNU gdb 6.6
Copyright (C) 2006 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 "sparc-pld-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: 
/home/users/builder/rpm/BUILD/mhash-0.9.9/src/.libs/frag_test
Checking fragmentation capabilities of MD5:
Program received signal SIGBUS, Bus error.
0xf7f07540 in mutils_memset (s=0xffadf6e7, c=0 '\0', n=<value optimized 
out>) at stdfns.c:176
176             for (i = 0; i < words; i++, ltmp++)
(gdb) bt
#0  0xf7f07540 in mutils_memset (s=0xffadf6e7, c=0 '\0', n=<value 
optimized out>) at stdfns.c:176
#1  0x00010844 in frag_test (hashid=<value optimized out>) at frag_test.c:70
#2  0x00010aac in main () at frag_test.c:130


Wygląda to na problem z memory alignment w mutils_memset ale jak sobie z 
tym poradzić to nie wiem ;)

-- 
T.


Więcej informacji o liście dyskusyjnej pld-devel-pl