Here is exactly what I did:
mart@mart-laptop:~$ LIBCCID_ifdLogLevel=0x0007 mart@mart-laptop:~$ export LIBCCID_ifdLogLevel mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu 00000000 debuglog.c:224:DebugLogSetLevel() debug level=debug 00000029 debuglog.c:253:DebugLogSetCategory() Debug options: APDU 00000336 pcscdaemon.c:505:main() pcsc-lite 1.5.3 daemon ready. 00136403 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel packet arrival 00000026 winscard_msg_srv.c:248:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 5 00000007 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation is requested: 5 00000038 winscard_svc.c:133:ContextThread() Thread is started: 5 00000031 winscard_msg_srv.c:317:SHMProcessEventsContext() command CMD_VERSION received by client 5 00000008 winscard_svc.c:189:ContextThread() Client is protocol version 3:0 00000063 winscard_msg_srv.c:317:SHMProcessEventsContext() command ESTABLISH_CONTEXT received by client 5 00000022 winscard.c:242:SCardEstablishContext() Establishing Context: 17000575 00000264 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: 003:004 00005073 readerfactory.c:1024:RFInitializeReader() Attempting startup of SCM SCR 3310 (21120518102795) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so 00000153 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0 00000034 ifdhandler.c:1532:init_driver() Driver version: 1.3.11 00000333 ifdhandler.c:1545:init_driver() LogLevel: 0x000F 00000290 ifdhandler.c:1565:init_driver() DriverOptions: 0x0000 00000011 ifdhandler.c:82:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb:003:004 00000013 ccid_usb.c:162:OpenUSBByName() Reader index: 0, Device: usb:04e6/5116:libusb:003:004 Segmentation fault mart@mart-laptop:~$
Here is exactly what I did:
mart@mart-laptop:~$ LIBCCID_ ifdLogLevel= 0x0007 c:224:DebugLogS etLevel( ) debug level=debug c:253:DebugLogS etCategory( ) Debug options: APDU c:505:main( ) pcsc-lite 1.5.3 daemon ready. msg_srv. c:239:SHMProces sEventsServer( ) Common channel packet arrival msg_srv. c:248:SHMProces sEventsServer( ) SHMProcessCommo nChannelRequest detects: 5 c:147:SVCServic eRunLoop( ) A new context thread creation is requested: 5 svc.c:133: ContextThread( ) Thread is started: 5 msg_srv. c:317:SHMProces sEventsContext( ) command CMD_VERSION received by client 5 svc.c:189: ContextThread( ) Client is protocol version 3:0 msg_srv. c:317:SHMProces sEventsContext( ) command ESTABLISH_CONTEXT received by client 5 c:242:SCardEsta blishContext( ) Establishing Context: 17000575 libusb. c:477:HPAddHotP luggable( ) Adding USB device: 003:004 c:1024: RFInitializeRea der() Attempting startup of SCM SCR 3310 (21120518102795) 00 00 using /usr/lib/ pcsc/drivers/ ifd-ccid. bundle/ Contents/ Linux/libccid. so c:877:RFBindFun ctions( ) Loading IFD Handler 3.0 c:1532: init_driver( ) Driver version: 1.3.11 c:1545: init_driver( ) LogLevel: 0x000F c:1565: init_driver( ) DriverOptions: 0x0000 c:82:IFDHCreate ChannelByName( ) lun: 0, device: usb:04e6/ 5116:libusb: 003:004 c:162:OpenUSBBy Name() Reader index: 0, Device: usb:04e6/ 5116:libusb: 003:004
mart@mart-laptop:~$ export LIBCCID_ifdLogLevel
mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu
00000000 debuglog.
00000029 debuglog.
00000336 pcscdaemon.
00136403 winscard_
00000026 winscard_
00000007 pcscdaemon.
00000038 winscard_
00000031 winscard_
00000008 winscard_
00000063 winscard_
00000022 winscard.
00000264 hotplug_
00005073 readerfactory.
00000153 readerfactory.
00000034 ifdhandler.
00000333 ifdhandler.
00000290 ifdhandler.
00000011 ifdhandler.
00000013 ccid_usb.
Segmentation fault
mart@mart-laptop:~$