Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: gcrypt

libgcrypt 1.5.0 aes-ni test suite fails for i686

 

 

GnuPG gcrypt RSS feed   Index | Next | Previous | View Threaded


a.radke at arcor

Jul 8, 2011, 7:15 AM

Post #1 of 2 (576 views)
Permalink
libgcrypt 1.5.0 aes-ni test suite fails for i686

I'm packaging libgcrypt for ArchLinux. My build system has a core i7
AES capable cpu running x86_64 kernel and userland. The x86_64 package
builds fine in our chroot and passes all tests.

Building in an i686 chroot gives segfaults in 3 tests. Is this an
expected behavior or a bug? Adding --disable-aesni-support makes it
pass all tests also for i686.

-Andy

make check-TESTS
make[2]: Entering directory `/build/src/libgcrypt-1.5.0/tests'
version:1.5.0:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:md4:md5:rmd160:sha1:sha256:sha512:tiger:whirlpool:
rnd-mod:linux:
mpi-asm:i386/mpih-add1.S:i386/mpih-sub1.S:i386/mpih-mul1.S:i386/mpih-mul2.S:i386/mpih-mul3.S:i386/mpih-lshift.S:i386/mpih-rshift.S:
hwflist:intel-aesni:
fips-mode:n:n:
PASS: version
PASS: t-mpi-bit
PASS: prime
PASS: register
PASS: ac
PASS: ac-schemes
PASS: ac-data
/bin/sh: line 5: 25392 Segmentation fault ${dir}$tst
FAIL: basic
PASS: mpitests
PASS: tsexp
PASS: keygen
PASS: pubkey
PASS: hmac
PASS: keygrip
PASS: fips186-dsa
/bin/sh: line 5: 25771 Segmentation fault ${dir}$tst
FAIL: aeswrap
PASS: curves
PASS: t-kdf
PASS: pkcs1v2
PASS: random
MD5 0ms 0ms 20ms 0ms 0ms
SHA1 0ms 10ms 20ms 0ms 0ms
RIPEMD160 0ms 0ms 20ms 10ms 10ms
TIGER192 0ms 0ms 30ms 10ms 10ms
SHA256 10ms 10ms 40ms 10ms 10ms
SHA384 10ms 30ms 40ms 20ms 10ms
SHA512 20ms 20ms 40ms 10ms 10ms
SHA224 10ms 10ms 40ms 10ms 10ms
MD4 0ms 0ms 30ms 0ms 0ms
CRC32 0ms 0ms 10ms 10ms 0ms
CRC32RFC1510 0ms 0ms 20ms 0ms 0ms
CRC24RFC2440 10ms 10ms 20ms 10ms 10ms
WHIRLPOOL 20ms 20ms 30ms 20ms 20ms
TIGER 0ms 10ms 30ms 10ms 10ms
TIGER2 0ms 0ms 30ms 10ms 10ms

ECB/Stream CBC CFB
OFB CTR --------------- ---------------
--------------- --------------- ---------------
3DES 40ms 40ms 50ms 40ms 40ms
40ms 50ms 40ms 50ms 40ms CAST5
20ms 10ms 20ms 20ms 10ms 20ms 10ms
10ms 20ms 20ms BLOWFISH 10ms 20ms
10ms 20ms 10ms 20ms 10ms 20ms 10ms
10ms AES /bin/sh: line 5: 26083 Segmentation
fault ${dir}$tst FAIL: benchmark
======================================== 3 of 21 tests
failed Please report to bug-libgcrypt [at] gnupg

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel


a.radke at arcor

Aug 12, 2011, 1:14 AM

Post #2 of 2 (470 views)
Permalink
Re: libgcrypt 1.5.0 aes-ni test suite fails for i686 [In reply to]

Am Fri, 8 Jul 2011 16:15:52 +0200
schrieb Andreas Radke <a.radke [at] arcor>:

> I'm packaging libgcrypt for ArchLinux. My build system has a core i7
> AES capable cpu running x86_64 kernel and userland. The x86_64 package
> builds fine in our chroot and passes all tests.
>
> Building in an i686 chroot gives segfaults in 3 tests. Is this an
> expected behavior or a bug? Adding --disable-aesni-support makes it
> pass all tests also for i686.
>
> -Andy
>

Anybody around who can help me to track this down and find a fix? We've
just fixed a very similar segfault issue in gnutls 3.0.0 related to
AES-NI and alignment issues. Please have a look at this commit:

http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=d21285196611811120ff1ba41e64f716f244f3d8

I can try to give backtraces or whatever we need.

-Andy

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel

GnuPG gcrypt RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.