Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139730 - gpgsm+gpg-agent+pinentry failure
Summary: gpgsm+gpg-agent+pinentry failure
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-08 23:08 UTC by Jesper FA
Modified: 2006-10-11 16:46 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 Jesper FA 2006-07-08 23:08:22 UTC
Not actually sure if that is gpgsm or some dependency that cause this.
When this command is run a pinentry window appears very briefly and then disappears again after which the final 3 lines below are printed.


$ gpgsm -d smime.p7m
gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
gpgsm: It is only intended for test purposes and should NOT be
gpgsm: used in a production environment or with production keys!
gpgsm: DBG: recp 0 - issuer: `CN=TDC OCES CA,O=TDC,C=DK'
gpgsm: DBG: recp 0 - serial: 43831086
gpgsm: error decrypting session key: Assuan server fault
gpgsm: decrypting session key failed: Assuan server fault
gpgsm: message decryption failed: No secret key <GpgSM>

related packages:
[I--] [ ~] app-crypt/dirmngr-0.9.4 (0)
[I--] [ ~] dev-libs/libksba-0.9.15 (0)
[I--] [  ] dev-libs/libassuan-0.6.10 (0)
[I--] [  ] app-crypt/gpgme-0.3.14-r1 (0.3)
[I--] [  ] app-crypt/gpgme-1.1.2-r1 (1)
[I--] [  ] app-crypt/gnupg-1.4.4 (0)
[I--] [ ~] app-crypt/gnupg-1.9.21 (1.9)

Portage 2.1.1_pre2-r2 (default-linux/x86/2005.1, gcc-3.4.6/vanilla, glibc-2.3.6-r3, 2.6.15.6 i686)
=================================================================
System uname: 2.6.15.6 i686 Intel(R) Pentium(R) D CPU 2.80GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/var/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/var/gentoo/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl acpi acpi4linux alsa apache2 arts artswrappersuid avi bash-completion berkdb bidi bitmap-fonts bzip2 caps cdparanoia chroot cjk cli crypt cups dga dlloader dmi dri dv dvb dvd dvdread eds emboss encode exif fbcon flac font-server foomaticdb gcj gd gdbm ggi gif gimp gimpprint glut gstreamer gtk2 hal haskell howl idn imlib immqt-bc innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jack jpeg jpeg2k kde kdeenablefinal kdexdeltas keyscrub libcaca libclamav libg++ libwww live maildir makecheck matroska mikmod mmx mmxext motif mp3 mpeg mpeg4 musicbrainz mythtv ncurses network nptl offensive ogg oggvorbis openexr opengl pam pcre pda pdflib perl php png pnp povray ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc sasl sdl session slp smime spell spl sse sse2 ssl subversion tidy truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 video_cards_nvidia vorbis wifi win32codecs xanim xcomposite xinerama xml2 xmlrpc xmms xorg xrandr xscreensaver xsl xv xvid xvmc zeroconf zlib elibc_glibc kernel_linux userland_GNU video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-07-09 00:40:51 UTC
try the following to see if its looking for something non-existant?
strace -fe trace=open gpgsm -d smime.p7m
Comment 2 Jesper FA 2006-07-09 05:03:55 UTC
I looked using strace on this before but couldn't see anything 
interesting. 
But made me think that it is talking to gpg-agent, which is a different 
process, so I tried unsetting the GPG_AGENT_INFO environment variable. 
Interestingly enough then it works.
So I guess the problem is actually gpg-agent when running in daemon mode.


open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib/libgcrypt.so.11", O_RDONLY) = 3
open("/usr/lib/libgpg-error.so.0", O_RDONLY) = 3
open("/usr/lib/libksba.so.8", O_RDONLY) = 3
open("/usr/lib/libpth.so.14", O_RDONLY) = 3
open("/lib/libnsl.so.1", O_RDONLY)      = 3
open("/lib/libz.so.1", O_RDONLY)        = 3
open("/lib/libbz2.so.1", O_RDONLY)      = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
open("/dev/urandom", O_RDONLY)          = 3
open("/home/jesper/.gnupg/gpgsm.conf", O_RDONLY|O_LARGEFILE) = 3
gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
gpgsm: It is only intended for test purposes and should NOT be
gpgsm: used in a production environment or with production keys!
open("/home/jesper/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 3
open("/home/jesper/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 3
open("/home/jesper/.gnupg/.#lk0x807e558.ender.4437", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = 3
open("/home/jesper/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 3
open("/home/jesper/.gnupg/pubring.kbx.tmp", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
open("/home/jesper/.gnupg/pubring.kbx.lock", O_RDONLY|O_LARGEFILE) = 3
open("smime.p7m", O_RDONLY|O_LARGEFILE) = 3
gpgsm: DBG: recp 0 - issuer: `CN=TDC OCES CA,O=TDC,C=DK'
gpgsm: DBG: recp 0 - serial: 43831086
open("/home/jesper/.gnupg/pubring.kbx", O_RDONLY|O_LARGEFILE) = 5
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 9
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 9
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 9
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 9
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 9
gpgsm: error decrypting session key: Assuan server fault
gpgsm: decrypting session key failed: Assuan server fault
gpgsm: message decryption failed: No secret key <GpgSM>
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-08 22:32:36 UTC
Which version of pinentry do you use?
Which USE flags?
Which one does gpg-agent use?

Can you please:
./pinentry[-suffix]
GETPIN

And see if it works?
It should "steal" all keystrokes... So try to press keyboard when other window is active and see if it does not quit.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-11 16:46:06 UTC
If you have requested info, please reopen.