GNOME Bugzilla – Bug 761863
Must use threadsafe gpgme
Last modified: 2016-02-29 21:10:28 UTC
I'm getting this: gnome-software: /srv/nightly/freedesktop-sdk-base/build/x86_64/tmp-glibc/work/core2-64-unknown-linux/gpgme/1.5.4-r0/gpgme-1.5.4/src/ath.c:109: _gpgme_ath_mutex_lock: Assertion `*lock == ((ath_mutex_t) 0)' failed. gnome-software uses libostree in threads, and it seems to me that according to this: https://www.gnupg.org/documentation/manuals/gpgme/Multi-Threading.html we must pull in gpgme-phtread instead of gpgme. Looking into it.
In addition, there's a couple non-threadsafe calls to gpgme_strerror() which should be switched to gpgme_strerror_r(). I *think* we're okay on calling gpgme_check_version() early enough.
Created attachment 320886 [details] [review] Patch that seems to fix this
Review of attachment 320886 [details] [review]: Looks OK, but let's also address comment #2 in this patch?
I meant comment #1
Colin finished this off here: https://github.com/GNOME/ostree/pull/190