Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85065 - gnupg and apps relying on it are crashing at RANDOM time
Summary: gnupg and apps relying on it are crashing at RANDOM time
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-13 04:22 UTC by Simon Keimer
Modified: 2005-03-15 02:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Keimer 2005-03-13 04:22:11 UTC
I use gnupg 1.9.15, because I want GnuPG/MIME support in Kontact/KMail.

When I sign or encrypt a message, pinentry-qt displays an error in most cases (about 60%), which is just telling me, that the message could not be signed/encrypted.

When I run "echo "test" | gpg -ase -r 0xMYKEYID | gpg" from the X console and everything works fine I get the pinentry Windows, enter it an it encrypts/decrypts as it should do.
But in 3 out of 5 attempts I get the following error message:

gpg: ath.c:201: _gcry_ath_mutex_unlock: Assertion `*lock == ((ath_mutex_t) 1)' failed.
gpg: processing message failed: Unknown system error


That seems to be the source of my "RANDOM" crashes. 

A google search assumes a gentoo related problem:
http://www.google.de/search?q=gpg:%20ath.c:201:%20_gcry_ath_mutex_unlock:%20Assertion%20`*lock%20==%20((ath_mutex_t)%201)'%20failed.&ie=UTF-8&oe=UTF-8



Reproducible: Always
Steps to Reproduce:
1. just run any application that relies on gnupg
2.
3.

Actual Results:  
no successful encryption and the above mentioned error message 

Expected Results:  
it should enrypt/sign my files/emails 

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10 i686) 
================================================================= 
System uname: 2.6.10 i686 Intel(R) Pentium(R) M processor 1.80GHz 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 
00:02:54)] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.9.4, 1.5 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.4.22-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 
-mfpmath=sse" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 
-mfpmath=sse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv 
usersandbox" 
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo 
http://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage.de /usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 16bit 3dnow 3dnowex S3TC X X509 aac aalib acl acpi acpi4linux 
activefilter alsa apache2 arts audiofile avi bash-completion bcmath berkdb 
bitmap-fonts bluetooth bzip2 bzlib cap caps cdda cddb cdio cdparanoia cdr 
cdrom chroot clamavcracklib crypt css cups dhcp directfb divx4linux dmx doc 
dvb dvd dvdr dvdread encode ethereal exif fam fbcon fbdev ffmpeg fla flac 
flash font-server foomaticdbfreetype fs ftp gdbm gdlib gif gimp gimpprint glut 
gmp gphoto2 gpm gps gtk gtk2gtkhtml hbci icq ieee1394 imap imlib imlib2 ipv6 
irda isdn jabber java javascript jikes jp2 jpeg jpeg2k kde kdepim kerberos 
koffice-plugin lcms libclamav lm_sensors lzo mad maildir md5sum mime mjpeg mmx 
mmx2 mng motif mp3 mpeg mpeg2 mpeg4 mplayer mppe-mppc mysql ncurses nls nptl 
ntlm nvidia oav ogg oggvorbis ooo-kde opengl openntpd openssh openssl pam pcap 
pcmcia pda pdf perl php png pnp posix ppds profile pthreads python qmail qt 
quicktime quotas readline real samba sasl scanner sdl sftplogging shared 
sockets sox spamassassin speex sse sse2 ssl svga sysvipc szip tcltk tcpd tetex 
threads tidy tiff transcode truetype truetype-fonts type1 type1-fonts usb v4l 
v4l2 vanilla vcd vcdimager vorbis wifi winbind wmf xine xinerama xinetd xml 
xml2 xmms xosd xrandr xslt xv xvid yahoo zlib zvbi linguas_de linguas_en 
linguas_nds linguas_nb linguas_nn" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-13 04:56:46 UTC
well, it's a development version...
Comment 2 Thomas Fischer 2005-03-13 06:04:17 UTC
You do not require gpg 1.9.15 to use GnuPG/MIME in Kontact. GnuPG 1.2.6 works well for me perfectly including pinentry-qt. I'm using ~x86 builds for app-crypt/gpg-agent, dev-libs/libassuan, dev-libs/libksba. Everything else (regaring crypto software) is x86.
Comment 3 Simon Keimer 2005-03-14 08:48:15 UTC
Is there a way to install the gnupg 1.2.X and the gnupg-tools from 1.9.X parallel?

Or will I have to "mess up" installation by running make install manually?
Comment 4 Simon Keimer 2005-03-14 09:00:59 UTC
Ok, I have installed gnupg-1.2.6 and gpg-agent-1.9.15 and everything seems to run fine. I didn't notice that gnupg and the agent were split into two separate ebuilds.

Comment 5 Simon Keimer 2005-03-14 09:22:01 UTC
Sorry, closed to early,

Now everything works fine, except KMail. If I click the rescan button to search for crypto plugins, it complains that the gpgme backend could not find /usr/bin/gpg2 and /usr/bin/gpgsm.

I re-emerged gpgme, but this didn't change anything.

Which version of gpgme do you use?
Comment 6 Simon Keimer 2005-03-15 02:53:37 UTC
Seems that after a complete KDE (not just KMail) restart it works within KMail, too.