Page MenuHome GnuPG

t-secmem test failure on ppc64le / musl c-library
Closed, DuplicatePublic

Description

We are trying to build, test and package libgcrypt on Alpine Linux for all supported architectures. Others work just fine, but ppc64le test t-secmem fails:

make[2]: Entering directory '/home/buildozer/aports/main/libgcrypt/src/libgcrypt-1.8.1/tests'
version:1.8.1:10801:1.27:11b00:
cc:60400:gcc:6.4.0:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:blake2:
rnd-mod:linux:
cpu-arch:ppc:
mpi-asm:generic/mpih-add1.c:generic/mpih-sub1.c:generic/mpih-mul1.c:generic/mpih-mul2.c:generic/mpih-mul3.c:generic/mpih-lshift.c:generic/mpih-rshift.c:
hwflist:
fips-mode:n:n:
rng-type:standard:1:0:0:
PASS: version
t-secmem: allocation did not fail as expected
FAIL: t-secmem
PASS: mpitests
PASS: t-sexp
PASS: t-convert
PASS: t-mpi-bit

Configured with:

Libgcrypt v1.8.1 has been configured as follows:
 
Platform:                  GNU/Linux (powerpc64le-alpine-linux-musl)
Hardware detection module: none
Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish
                           serpent rfc2268 seed camellia idea salsa20
                           gost28147 chacha20
Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1
                           sha256 sha512 sha3 tiger whirlpool stribog
                           blake2
Enabled kdf algorithms:    s2k pkdf2 scrypt
Enabled pubkey algorithms: dsa elgamal rsa ecc
Random number generator:   default
Try using jitter entropy:  n/a
Using linux capabilities:  no
Try using Padlock crypto:  n/a
Try using AES-NI crypto:   n/a
Try using Intel PCLMUL:    n/a
Try using Intel SSE4.1:    n/a
Try using DRNG (RDRAND):   n/a
Try using Intel AVX:       n/a
Try using Intel AVX2:      n/a
Try using ARM NEON:        n/a
Try using ARMv8 crypto:    n/a

No suspicious build warnings. The only warning shown by gcc is:

ec.c: In function '_gcry_mpi_point_log':
ec.c:78:7: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
       _gcry_mpi_release (y);
       ^~~~~~~~~~~~~~~~~~~~~
ec.c:77:7: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
       _gcry_mpi_release (x);
       ^~~~~~~~~~~~~~~~~~~~~

Any suggestions how to debug?

Details

Version
1.8.1