Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602502 - dev-libs/libgcrypt-1.7.4 breaks kde-frameworks/kwallet:5 at runtime: "Can't get secure memory"
Summary: dev-libs/libgcrypt-1.7.4 breaks kde-frameworks/kwallet:5 at runtime: "Can't g...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kristian Fiskerstrand (RETIRED)
Depends on:
Reported: 2016-12-13 06:21 UTC by Matt Whitlock
Modified: 2016-12-15 11:29 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---

Fix the regression (typo-acinclude.path,453 bytes, patch)
2016-12-15 00:34 UTC, Nicolas Porcel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2016-12-13 06:21:03 UTC
kwalletd5 fails to open existing wallets when running with dev-libs/libgcrypt-1.7.4.

I have reported the issue upstream: <>

Perhaps kde-frameworks/kwallet should RDEPEND on "!=dev-libs/libgcrypt-1.7.4" to save users from losing access to their wallets and being confused as to why.
Comment 1 Neil Bothwick 2016-12-13 08:59:37 UTC
The same happens here, going back to 1.7.3 restores the situation.

Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.3.0, glibc-2.23-r3, 4.8.14-gentoo x86_64)
System uname: Linux-4.8.14-gentoo-x86_64-Intel-R-_Core-TM-_i5-5200U_CPU_@_2.20GHz-with-gentoo-2.3
KiB Mem:     8081644 total,   4478960 free
KiB Swap:    8388928 total,   8388928 free
Timestamp of repository gentoo: Tue, 13 Dec 2016 07:02:12 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
ccache version 3.3.3 [disabled]
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo

    location: /mnt/portage/layman/sabayon
    masters: gentoo
    priority: 0

    location: /mnt/portage/nelz
    masters: gentoo
    priority: 15

    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: 20

    location: /mnt/portage/layman/devpump-gor
    masters: gentoo
    priority: 50

    location: /mnt/portage/layman/fouxlay
    masters: gentoo
    priority: 50

    location: /mnt/portage/layman/pipelight
    masters: gentoo
    priority: 50

    location: /mnt/portage/layman/sunrise
    masters: gentoo
    priority: 50

    location: /mnt/portage/local
    masters: gentoo
    priority: 100

Installed sets: @base, @dependencies, @desktop, @kde, @kernels, @temp
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /etc/env.d /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS="--alphabetical --jobs --load-average 7 --quiet-unmerge-warn --backtrack=20"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs 8 --load 10"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac aalib acpi alsa amd64 apng audiofile bluetooth bluray branding bzip2 cairo cdda cddb cdr cli cracklib crypt cryptsetup cups curl cxx dbus declarative device-mapper djvu dri dts dvb dvd dvdr ebook emacs encode exif fam ffmpeg flac gdbm gif gimp glamor gmp gnutls gpg gphoto2 gpm gtk iconv id3 imagemagick imap java jpeg jpeg2k kde kdeenablefinal kdeprefix kipi laptop libnotify libwww lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mtp multilib musicbrainz ncurses network-cron nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf phonon plasma png policykit pulseaudio qml qt3support qt4 qt5 quicktime rdesktop readline real scanner sdl seccomp semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis webkit widgets wifi win32codecs wxwidgets x264 xattr xcb xcomposite xinerama xml xmp xulrunner xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi krita sheets stage words" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="apache apcups battery cgroups cpu cpufreq curl df disk ethstat exec filecount interface load logfile md memory network nfs notify_desktop notify_email ntpd ping processes python rrdtool sensors syslog tail thermal uptime vmem wireless" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="vesa intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 2 Fabio Coatti 2016-12-13 10:05:41 UTC
Same issue here, reverting to 1.7.3 fixes kdewallet. Pretty scare one, this buglet :)
Comment 3 Matt Whitlock 2016-12-14 01:56:15 UTC
Upstream has confirmed this as a bug in libgcrypt 1.7.4. I really think a blocker should be added — if not an outright hard mask.
Comment 4 2016-12-14 02:04:06 UTC
(In reply to Matt Whitlock from comment #3)
> Upstream has confirmed this as a bug in libgcrypt 1.7.4. I really think a
> blocker should be added — if not an outright hard mask.

Comment 5 Nicolas Porcel 2016-12-15 00:34:57 UTC
Created attachment 456262 [details, diff]
Fix the regression

Add this patch and it should fix your problem. I will submit to upstream (if no one already did). Tested with gnupg (I had the same warning).

Basically, a test in the autoconf script uses EGAIN (which doesn't exist) instead of EAGAIN. The test in question will detect broken mlock which require root on some systems and core otherwise. But because it doesn't compile, it thinks that mlock is broken so it can only be used with root.
Comment 6 Nicolas Porcel 2016-12-15 00:55:37 UTC
I couldn't post anything on the bug tracker so I sent an email to the maintainer. If anyone can please do.
Comment 7 Matt Whitlock 2016-12-15 01:32:43 UTC
(In reply to Nicolas Porcel from comment #6)
> I couldn't post anything on the bug tracker so I sent an email to the
> maintainer. If anyone can please do.

I posted a comment on the upstream report.
Comment 8 Matt Whitlock 2016-12-15 08:02:06 UTC
Upstream has committed the fix, which will be included in libgcrypt 1.7.5.;a=commit;h=0a90f87799903a3fb97189ef7cba19e7b3534e1c
Comment 9 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-12-15 08:16:33 UTC
(In reply to Matt Whitlock from comment #8)
> Upstream has committed the fix, which will be included in libgcrypt 1.7.5.
> h=0a90f87799903a3fb97189ef7cba19e7b3534e1c

Thank you for the report and good upstream contact. 1.7.5 is expected to be released today so will include it in Gentoo ebuild repository and remove 1.7.4 once it hits
Comment 10 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-12-15 11:29:26 UTC
libgcrypt 1.7.5 in tree

Never affecting stable version, closing