Page MenuHome GnuPG

libgcrypt 1.7.4 breaks KWallet5: "Can't get secure memory" from GCRYCTL_INIT_SECMEM
Closed, ResolvedPublic


Libgcrypt 1.7.4 completely breaks KWallet5, which starts complaining "Can't get
secure memory" and refuses to open wallet files, thus cutting off access to all of
the user's saved passwords. Downgrading to libgcrypt 1.7.3 restores correct
functionality. Took me a while to figure this out. :\

You can find the location of the failure here:

Why would gcry_control(GCRYCTL_INIT_SECMEM, 32768, 0) succeed in libgcrypt 1.7.3
but fail in libgcrypt 1.7.4?



Event Timeline

This is indeed a bug in libgcrypt. Thanks for the report.

I improved our test suite so that it detects this problem.

The Gentoo bug report for this has a
proposed fix, correcting a typo (EGAIN-

EAGAIN) in an autoconf script.

werner added a project: Unreleased.

Applied with commit 0a90f87799 to master. I will backport and release 1.7.5 today.