GnuPG with pcsc-lite, scdaemon segfaults

Simon Ferber simon at ist-schlau.de
Sun Mar 29 20:57:36 CEST 2009


Hello list,

I installed an fresh amd64 system with gnupg and smartcard support.
When pcsc-lite is started, I can see following in the logs:
Mar 29 20:51:13 [pcscd] ifdhandler.c:1249:init_driver() DriverOptions:
0x0000
Mar 29 20:51:13 [pcscd] ifdhandler.c:77:IFDHCreateChannelByName() lun:
0, device: usb:046a/003e:libusb:004:002
Mar 29 20:51:13 [pcscd] ccid_usb.c:233:OpenUSBByName() Manufacturer:
Ludovic Rousseau (ludovic.rousseau at free.fr)
Mar 29 20:51:13 [pcscd] ccid_usb.c:243:OpenUSBByName() ProductString:
Generic CCID driver v1.3.1
Mar 29 20:51:13 [pcscd] ccid_usb.c:249:OpenUSBByName() Copyright: This
driver is protected by terms of the GNU Lesser General Public License
version 2.1, or (at your option) any later version.
Mar 29 20:51:13 [pcscd] ccid_usb.c:397:OpenUSBByName() Found
Vendor/Product: 046A/003E (Cherry SmartTerminal ST-2XXX)
Mar 29 20:51:13 [pcscd] ccid_usb.c:399:OpenUSBByName() Using USB
bus/device: 004/002
Mar 29 20:51:13 [pcscd] ccid_usb.c:752:get_data_rates() IFD does not
support GET_DATA_RATES request: Broken pipe
Mar 29 20:51:13 [pcscd] ifdhandler.c:271:IFDHGetCapabilities() lun: 0,
tag: 0xFAE
Mar 29 20:51:13 [pcscd] ifdhandler.c:313:IFDHGetCapabilities() Reader
supports 1 slot(s)
Mar 29 20:51:18 [pcscd] ifdhandler.c:841:IFDHPowerICC() lun: 0, action:
PowerUp
Mar 29 20:51:18 [pcscd] eventhandler.c:431:EHStatusHandlerThread() Card
inserted into Cherry SmartTerminal ST-2XXX (00000aa4) 00 00
Mar 29 20:51:18 [pcscd] Card ATR: 3B FA 13 00 FF 81 31 80 45 00 31 C1 73
C0 01 00 00 90 00 B1
Mar 29 20:51:21 [pcscd] eventhandler.c:358:EHStatusHandlerThread() Card
Removed From Cherry SmartTerminal ST-2XXX (00000aa4) 00 00



As you can see, it find the reader and recognises the insertion of an card.

Well, no matter, which options I give to gnupg, I get an segfault in the
logs:
Mar 29 20:52:43 [kernel] gnupg-pcsc-wrap[21763]: segfault at 0 ip
0000000000000000 sp 00007fffc815e0d8 error 14 in
gnupg-pcsc-wrapper[400000+87000]



Or when I try to start scdaemon, it segfault again:
ray ~ # scdaemon  --debug-all --pcsc-driver
/usr/lib/libpcsclite.so.1.0.0 --server
scdaemon[21766]: Optionen werden aus '/root/.gnupg/scdaemon.conf' gelesen
scdaemon[21766]: Handhabungsroutine für fd -1 gestartet
Speicherzugriffsfehler



I tried several versions of gnupg and pcsc-lite. But always it
segfaults. :-/

Any idea? Oh, btw, now I use:
Kernel 2.6.28
gpg 2.0.11
libgcrypt 1.4.4
pcsc-lite 1.4.2

I ran out of ideas...

Kind regards,
Simon




More information about the Gnupg-users mailing list