Page MenuHome GnuPG

gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error
Closed, WontfixPublic

Description

I'm working on one of my older test machines. It is Fedora 1, i686 with GCC 3.3. I keep it around for testing with the ancient compiler and toolchain. The toolchain only provides SSSE3 support.

libgcrypt is failing 2 self tests.

It would be nice to have a working GnuPG on this machine so I could sign commits from it. otherwise I have to scp files around the network.

[jwalton@localhost libgcrypt-1.8.4]$ make check
Making check in compat
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/compat'make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/build/libgcrypt-1.8.4/compat'
Making check in mpi
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/mpi'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/build/libgcrypt-1.8.4/mpi'
Making check in cipher
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/cipher'make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/build/libgcrypt-1.8.4/cipher'
Making check in random
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/random'make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/build/libgcrypt-1.8.4/random'
Making check in src
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/src'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/build/libgcrypt-1.8.4/src'
Making check in doc
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/doc'
make  check-am
make[2]: Entering directory `/home/build/libgcrypt-1.8.4/doc'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/build/libgcrypt-1.8.4/doc'
make[1]: Leaving directory `/home/build/libgcrypt-1.8.4/doc'
Making check in tests
make[1]: Entering directory `/home/build/libgcrypt-1.8.4/tests'
make  check-TESTS
make[2]: Entering directory `/home/build/libgcrypt-1.8.4/tests'
version:1.8.4:10804:1.33:12100:
cc:30302:gcc:3.3.2 20031022 (Red Hat Linux 3.3.2-1):
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:x86:
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-cpu:intel-fast-shld:intel-ssse3:intel-sse4.1:intel-rdrand:intel-rdtsc:
fips-mode:n:n:
rng-type:standard:1:2010000:1:
PASS: version
t-secmem: line 176: gcry_control (GCRYCTL_INIT_SECMEM, pool_size, 0) failed: General error
FAIL: t-secmem
PASS: mpitests
t-sexp: line 1174: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error
FAIL: t-sexp
PASS: t-convert
PASS: t-mpi-bit
PASS: t-mpi-point
PASS: curves
PASS: t-lock
PASS: prime
PASS: basic
PASS: keygen
PASS: pubkey
PASS: hmac
PASS: hashtest
PASS: t-kdf
PASS: keygrip
PASS: fips186-dsa
PASS: aeswrap
PASS: pkcs1v2
PASS: random
PASS: dsa-rfc6979
      256 of 1026 tests done
      512 of 1026 tests done
      768 of 1026 tests done
      1024 of 1026 tests done
      1026 tests done
PASS: t-ed25519
      18 tests done
PASS: t-cv25519
      now running 'basic' test with all hardware features disabled.
PASS: basic-disable-all-hwf
Note: benchmark running in quick regression test mode.
...

And:

$ uname -a
Linux localhost.localdomain 2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST 2003 i686 i686 i386 GNU/Linux

I can provide config.log, but I don't see how to attach it to a bug report. Derp...

Details

Version
1.8.4

Event Timeline

Reading https://en.wikipedia.org/wiki/Fedora_version_history, I guess that your kernel/glibc doesn't have working mlock.
It may work if running by root, though.

werner triaged this task as Normal priority.May 17 2019, 6:47 PM
werner claimed this task.
werner added projects: Fedora, Legacy OS.