libgcrypt 1.5.0 aes-ni test suite fails for i686

Andreas Radke a.radke at
Fri Jul 8 16:15:52 CEST 2011

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.


make  check-TESTS
make[2]: Entering directory `/build/src/libgcrypt-1.5.0/tests'
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

More information about the Gcrypt-devel mailing list