Replying to myself after a test with the new beta versions of pcsc-lite and libccid.

On 02/13/10 02:15 PM, Kevin Reinholz wrote:

Yes, I also have issues when removing a reader using pcsc-lite-1.5.5:

reinh...@etrenank:~$ pfexec /usr/local/sbin/pcscd -d -f
00000000 pcscdaemon.c:266:() pcscd set to foreground with debug send to stderr
00000273 pcscdaemon.c:512:() pcsc-lite 1.5.5 daemon ready.
00215429 hotplug_libusb.c:401:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000039 hotplug_libusb.c:411:() Polling forced every 1 second(s)
05039972 hotplug_libusb.c:477:() Adding USB device: /dev/usb:4e6.e001/0
00019977 readerfactory.c:1023:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000420 readerfactory.c:877:() Loading IFD Handler 3.0
00000093 ifdhandler.c:1532:() Driver version: 1.3.11
00000332 ifdhandler.c:1545:() LogLevel: 0x0003
00000305 ifdhandler.c:1565:() DriverOptions: 0x0000
00000032 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/0
00000475 ccid_usb.c:285:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000299 ccid_usb.c:295:() ProductString: Generic CCID driver
00000293 ccid_usb.c:301:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00021416 ccid_usb.c:499:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000026 ccid_usb.c:502:() Using USB bus/device: /dev/usb/4e6.e001/0
00005337 ccid_usb.c:892:() IFD does not support GET_DATA_RATES request: I/O error
00161962 ifdhandler.c:363:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000039 readerfactory.c:249:() Using the pcscd polling thread
00003986 ifdhandler.c:363:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000036 ifdhandler.c:418:() Reader supports 1 slot(s)
20667223 ifdhandler.c:1042:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00428165 eventhandler.c:429:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000067 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
05251844 eventhandler.c:361:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
04062063 ifdhandler.c:1042:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00404710 eventhandler.c:429:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000121 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
03231220 eventhandler.c:361:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
04458115 ccid_usb.c:594:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000055 ifdwrapper.c:469:() Card not transacted: 617
00000092 utils.c:66:() Send hotplug signal to pcscd (pid=496)
00506925 hotplug_libusb.c:553:() Removing USB device[0]: /dev/usb:4e6.e001/0
00000036 eventhandler.c:126:() Stomping thread.
00000025 ifdhandler.c:363:() tag: 0xFB1, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000023 eventhandler.c:139:() Waiting polling thread
00493040 eventhandler.c:333:() Error communicating to: SCM SCR 331 (21120727G00110) 00 00
00410420 eventhandler.c:474:() Die
00000275 eventhandler.c:163:() Thread stomped.
00000067 readerfactory.c:1064:() Attempting shutdown of SCM SCR 331 (21120727G00110) 00 00.
00000030 ifdhandler.c:266:() usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000099 ccid_usb.c:594:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000100 readerfactory.c:914:() Unloading reader driver.
05039879 hotplug_libusb.c:477:() Adding USB device: /dev/usb:4e6.e001/0
00019989 readerfactory.c:1023:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000347 readerfactory.c:877:() Loading IFD Handler 3.0
00000056 ifdhandler.c:1532:() Driver version: 1.3.11
00000329 ifdhandler.c:1545:() LogLevel: 0x0003
00000306 ifdhandler.c:1565:() DriverOptions: 0x0000
00000033 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/0
00000471 ccid_usb.c:285:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000300 ccid_usb.c:295:() ProductString: Generic CCID driver
00000295 ccid_usb.c:301:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00021435 ccid_usb.c:499:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000025 ccid_usb.c:502:() Using USB bus/device: /dev/usb/4e6.e001/0
00005400 ccid_usb.c:892:() IFD does not support GET_DATA_RATES request: I/O error
00161015 ifdhandler.c:363:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000049 readerfactory.c:249:() Using the pcscd polling thread
00003956 ifdhandler.c:363:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000037 ifdhandler.c:418:() Reader supports 1 slot(s)
03246005 ccid_usb.c:594:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000049 ifdwrapper.c:469:() Card not transacted: 617
00000066 utils.c:66:() Send hotplug signal to pcscd (pid=496)
User Signal 1
reinh...@etrenank:~$

I started pcscd in the foreground, then inserted a smart card into the reader, removed the card, reinserted the card, and removed the card again. I then unplugged the reader and plugged it back in with no problem.

After that I unplugged the reader a second time and at that point pcscd crashed.

I'll let everyone know if the same behavior occurs with the new betas.

I can try compiling these new betas on SunOS 5.11 and see what happens.


Both betas compiled smoothly on OpenSolaris (SunOS 5.11), snv_132, using the Sun Studio compiler.

Here's the output of running pcscd in the foreground, plugging in a card reader, inserting a smart card, removing the smart card, reinserting the smart card, removing the smart card again, removing the card reader, plugging the card reader back in, unplugging the card reader, plugging the card reader back in to a different USB port, inserting a smart card, removing the smart card, reinserting the smart card, unplugging the card reader with the smart card still inserted, plugging the card reader back in with the smart card still inserted, removing the smart card, unplugging the card reader, and finally killing pcscd with Control+C:

reinh...@etrenank:~/Download/PCSC/ccid-1.3.11-svn-4750$ pfexec /usr/local/sbin/pcscd -f -d
00000000 debuglog.c:230:() debug level=debug
00000156 pcscdaemon.c:525:() pcsc-lite 1.5.6-svn-4744 daemon ready.
00269985 hotplug_libusb.c:480:() Adding USB device: /dev/usb:4e6.e001/0
00019992 readerfactory.c:974:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000378 readerfactory.c:844:() Loading IFD Handler 3.0
00000090 ifdhandler.c:1597:() Driver version: 1.3.11-svn-4750
00000329 ifdhandler.c:1610:() LogLevel: 0x0003
00000313 ifdhandler.c:1630:() DriverOptions: 0x0000
00000025 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/0
00000472 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000312 ccid_usb.c:294:() ProductString: Generic CCID driver
00000310 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00022635 ccid_usb.c:498:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000026 ccid_usb.c:501:() Using USB bus/device: /dev/usb/4e6.e001/0
00005115 ccid_usb.c:891:() IFD does not support GET_DATA_RATES request: I/O error
00162983 ifdhandler.c:364:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000041 readerfactory.c:268:() Using the pcscd polling thread
00003982 ifdhandler.c:364:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000035 ifdhandler.c:453:() Reader supports 1 slot(s)
00000035 hotplug_libusb.c:404:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000032 hotplug_libusb.c:414:() Polling forced every 1 second(s)
20616149 ifdhandler.c:1089:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00389077 ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
00000034 atrhandler.c:102:() Conv: 01, Y1: 0D, K: 0B
00000026 atrhandler.c:119:() TA1: 96, TB1: FFFFFFFF, TC1: 00, TD1: 80
00000023 atrhandler.c:153:() T=0 Protocol Found
00000018 atrhandler.c:119:() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 1F
00000016 atrhandler.c:153:() T=15 Protocol Found
00000016 atrhandler.c:119:() TA3: 03, TB3: FFFFFFFF, TC3: FFFFFFFF, TD3: FFFFFFFF
00000016 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 9
00000017 eventhandler.c:472:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000022 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
02827781 eventhandler.c:406:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
02832041 ifdhandler.c:1089:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00389019 ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
00000034 atrhandler.c:102:() Conv: 01, Y1: 0D, K: 0B
00000026 atrhandler.c:119:() TA1: 96, TB1: FFFFFFFF, TC1: 00, TD1: 80
00000025 atrhandler.c:153:() T=0 Protocol Found
00000024 atrhandler.c:119:() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 1F
00000026 atrhandler.c:153:() T=15 Protocol Found
00000016 atrhandler.c:119:() TA3: 03, TB3: FFFFFFFF, TC3: FFFFFFFF, TD3: FFFFFFFF
00000017 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 9
00000016 eventhandler.c:472:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000023 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
05655860 eventhandler.c:406:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
04848096 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/0): I/O error
00000056 ifdwrapper.c:471:() Card not transacted: 612
00000032 eventhandler.c:378:() Error communicating to: SCM SCR 331 (21120727G00110) 00 00
00400084 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000046 ifdwrapper.c:471:() Card not transacted: 617
00000091 utils.c:66:() Send hotplug signal to pcscd (pid=23925)
00050998 hotplug_libusb.c:556:() Removing USB device[0]: /dev/usb:4e6.e001/0
00000027 eventhandler.c:170:() Stomping thread.
00000024 ifdhandler.c:364:() tag: 0xFB1, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000021 eventhandler.c:183:() Waiting polling thread
00948977 eventhandler.c:378:() Error communicating to: SCM SCR 331 (21120727G00110) 00 00
00400067 eventhandler.c:519:() Die
00000097 eventhandler.c:207:() Thread stomped.
00000038 readerfactory.c:1020:() Attempting shutdown of SCM SCR 331 (21120727G00110) 00 00.
00000040 ifdhandler.c:266:() usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000056 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000073 readerfactory.c:881:() Unloading reader driver.
06040405 hotplug_libusb.c:480:() Adding USB device: /dev/usb:4e6.e001/0
00019981 readerfactory.c:974:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000349 readerfactory.c:844:() Loading IFD Handler 3.0
00000056 ifdhandler.c:1597:() Driver version: 1.3.11-svn-4750
00000352 ifdhandler.c:1610:() LogLevel: 0x0003
00000317 ifdhandler.c:1630:() DriverOptions: 0x0000
00000026 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/0
00000483 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000319 ccid_usb.c:294:() ProductString: Generic CCID driver
00000315 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00022360 ccid_usb.c:498:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000024 ccid_usb.c:501:() Using USB bus/device: /dev/usb/4e6.e001/0
00005388 ccid_usb.c:891:() IFD does not support GET_DATA_RATES request: I/O error
00163015 ifdhandler.c:364:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000043 readerfactory.c:268:() Using the pcscd polling thread
00003952 ifdhandler.c:364:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000036 ifdhandler.c:453:() Reader supports 1 slot(s)
06472049 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/0): I/O error
00000056 ifdwrapper.c:471:() Card not transacted: 612
00000033 eventhandler.c:378:() Error communicating to: SCM SCR 331 (21120727G00110) 00 00
00400093 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000047 ifdwrapper.c:471:() Card not transacted: 617
00000080 utils.c:66:() Send hotplug signal to pcscd (pid=23925)
00000046 eventhandler.c:378:() Error communicating to: SCM SCR 331 (21120727G00110) 00 00
00129571 hotplug_libusb.c:556:() Removing USB device[0]: /dev/usb:4e6.e001/0
00000028 eventhandler.c:170:() Stomping thread.
00000021 ifdhandler.c:364:() tag: 0xFB1, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000024 eventhandler.c:183:() Waiting polling thread
00270391 eventhandler.c:519:() Die
00000074 eventhandler.c:207:() Thread stomped.
00000038 readerfactory.c:1020:() Attempting shutdown of SCM SCR 331 (21120727G00110) 00 00.
00000033 ifdhandler.c:266:() usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000051 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/0): No such device
00000065 readerfactory.c:881:() Unloading reader driver.
05040461 hotplug_libusb.c:480:() Adding USB device: /dev/usb:4e6.e001/1
00019984 readerfactory.c:974:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000327 readerfactory.c:844:() Loading IFD Handler 3.0
00000058 ifdhandler.c:1597:() Driver version: 1.3.11-svn-4750
00000340 ifdhandler.c:1610:() LogLevel: 0x0003
00000315 ifdhandler.c:1630:() DriverOptions: 0x0000
00000024 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/1
00000483 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000312 ccid_usb.c:294:() ProductString: Generic CCID driver
00000310 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00022353 ccid_usb.c:498:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000025 ccid_usb.c:501:() Using USB bus/device: /dev/usb/4e6.e001/1
00005456 ccid_usb.c:891:() IFD does not support GET_DATA_RATES request: I/O error
00160995 ifdhandler.c:364:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/1 (lun: 0)
00000040 readerfactory.c:268:() Using the pcscd polling thread
00003961 ifdhandler.c:364:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/1 (lun: 0)
00000034 ifdhandler.c:453:() Reader supports 1 slot(s)
04456008 ifdhandler.c:1089:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/1 (lun: 0)
00388048 ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
00000036 atrhandler.c:102:() Conv: 01, Y1: 0D, K: 0B
00000025 atrhandler.c:119:() TA1: 96, TB1: FFFFFFFF, TC1: 00, TD1: 80
00000024 atrhandler.c:153:() T=0 Protocol Found
00000025 atrhandler.c:119:() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 1F
00000016 atrhandler.c:153:() T=15 Protocol Found
00000016 atrhandler.c:119:() TA3: 03, TB3: FFFFFFFF, TC3: FFFFFFFF, TD3: FFFFFFFF
00000016 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 9
00000016 eventhandler.c:472:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000024 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
09291894 eventhandler.c:406:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
04044066 ifdhandler.c:1089:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/1 (lun: 0)
00389013 ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
00000038 atrhandler.c:102:() Conv: 01, Y1: 0D, K: 0B
00000025 atrhandler.c:119:() TA1: 96, TB1: FFFFFFFF, TC1: 00, TD1: 80
00000026 atrhandler.c:153:() T=0 Protocol Found
00000026 atrhandler.c:119:() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 1F
00000022 atrhandler.c:153:() T=15 Protocol Found
00000018 atrhandler.c:119:() TA3: 03, TB3: FFFFFFFF, TC3: FFFFFFFF, TD3: FFFFFFFF
00000015 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 9
00000017 eventhandler.c:472:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000023 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
02419867 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/1): No such device
00000066 ifdwrapper.c:471:() Card not transacted: 617
00000080 utils.c:66:() Send hotplug signal to pcscd (pid=23925)
00000048 eventhandler.c:378:() Error communicating to: SCM SCR 331 (21120727G00110) 00 00
00016182 hotplug_libusb.c:556:() Removing USB device[0]: /dev/usb:4e6.e001/1
00000027 eventhandler.c:170:() Stomping thread.
00000021 ifdhandler.c:364:() tag: 0xFB1, usb:04e6/e001:libusb:/dev/usb:4e6.e001/1 (lun: 0)
00000024 eventhandler.c:183:() Waiting polling thread
00383782 eventhandler.c:519:() Die
00000074 eventhandler.c:207:() Thread stomped.
00000037 readerfactory.c:1020:() Attempting shutdown of SCM SCR 331 (21120727G00110) 00 00.
00000034 ifdhandler.c:266:() usb:04e6/e001:libusb:/dev/usb:4e6.e001/1 (lun: 0)
00000053 ccid_usb.c:593:() usb_bulk_write(/dev/usb/4e6.e001/1): No such device
00000069 readerfactory.c:881:() Unloading reader driver.
04039548 hotplug_libusb.c:480:() Adding USB device: /dev/usb:4e6.e001/0
00019992 readerfactory.c:974:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000332 readerfactory.c:844:() Loading IFD Handler 3.0
00000059 ifdhandler.c:1597:() Driver version: 1.3.11-svn-4750
00000338 ifdhandler.c:1610:() LogLevel: 0x0003
00000315 ifdhandler.c:1630:() DriverOptions: 0x0000
00000025 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/0
00000508 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000313 ccid_usb.c:294:() ProductString: Generic CCID driver
00000311 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00022356 ccid_usb.c:498:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000025 ccid_usb.c:501:() Using USB bus/device: /dev/usb/4e6.e001/0
00005400 ccid_usb.c:891:() IFD does not support GET_DATA_RATES request: I/O error
00165006 ifdhandler.c:364:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000039 readerfactory.c:268:() Using the pcscd polling thread
00003966 ifdhandler.c:364:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000034 ifdhandler.c:453:() Reader supports 1 slot(s)
00007942 ifdhandler.c:1089:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00388083 ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
00000046 atrhandler.c:102:() Conv: 01, Y1: 0D, K: 0B
00000028 atrhandler.c:119:() TA1: 96, TB1: FFFFFFFF, TC1: 00, TD1: 80
00000018 atrhandler.c:153:() T=0 Protocol Found
00000017 atrhandler.c:119:() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 1F
00000016 atrhandler.c:153:() T=15 Protocol Found
00000018 atrhandler.c:119:() TA3: 03, TB3: FFFFFFFF, TC3: FFFFFFFF, TD3: FFFFFFFF
00000016 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 9
00000018 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
04851816 eventhandler.c:406:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
^C04987668 pcscdaemon.c:581:() Received signal: 2
00000025 pcscdaemon.c:586:() Preparing for suicide
00767131 hotplug_libusb.c:380:() Hotplug stopped
00232905 readerfactory.c:1260:() entering cleaning function
00000040 readerfactory.c:1268:() Stopping reader: SCM SCR 331 (21120727G00110) 00 00
00000035 eventhandler.c:170:() Stomping thread.
00000032 ifdhandler.c:364:() tag: 0xFB1, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000031 eventhandler.c:183:() Waiting polling thread
00068223 eventhandler.c:519:() Die
00000060 eventhandler.c:207:() Thread stomped.
00000037 readerfactory.c:1020:() Attempting shutdown of SCM SCR 331 (21120727G00110) 00 00.
00000033 ifdhandler.c:266:() usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00003896 commands.c:898: Unknown CCID error: 0xBF
00005008 readerfactory.c:881:() Unloading reader driver.
00000125 winscard_svc.c:123:() remaining threads: 0
00000021 pcscdaemon.c:545:() cleaning /var/run/pcscd
reinh...@etrenank:~/Download/PCSC/ccid-1.3.11-svn-4750$

The new betas seem to overcome the crash that occurred with pcsc-lite-1.5.5 that sometimes occurs when unplugging a card reader. However, there's a lot of additional output, and I noticed that the following configure flag now appears to be deprecated:

--enable-scf

Most interesting, unlike pcsc-lite-1.5.5, pcsc-lite-1.5.3, and several previous versions, this new beta compiles on OpenSolaris using gcc!

Here are the compiler flags I used to compile pcsc-lite-1.5.6-svn-4744 with gcc-3.4.3:

env CFLAGS="-g" CPPFLAGS="-DDEBUG" LDFLAGS="-g" PTHREAD_CFLAGS="-pthreads" LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LDFLAGS="-L/usr/lib -lusb" CPPFLAGS="-D_TS_ERRNO" LDFLAGS="-R/usr/local/lib:/usr/lib" PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --disable-libhal --enable-libusb

make
pfexec make install

And ccid-1.3.11-svn-4750 also using gcc-3.4.3:

env PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib -lpcsclite" LIBUSB_CFLAGS=-I/usr/include LIBUSB_LIBS="-L/usr/lib -lusb" ./configure --sysconfdir=/etc --prefix=/usr/local --enable-usbdropdir=/usr/local/pcsc/drivers

make
pfexec make install

The resulting pcscd binary appears to behave the same after compilation with gcc as it did with Sun Studio 12:

reinh...@etrenank:~/Download/PCSC/ccid-1.3.11-svn-4750$ pfexec /usr/local/sbin/pcscd -d -f
00000000 pcscdaemon.c:267:() pcscd set to foreground with debug send to stderr
00000136 pcscdaemon.c:525:() pcsc-lite 1.5.6-svn-4744 daemon ready.
00270796 hotplug_libusb.c:480:() Adding USB device: /dev/usb:4e6.e001/0
00018993 readerfactory.c:974:() Attempting startup of SCM SCR 331 (21120727G00110) 00 00 using /usr/local/pcsc/drivers/ifd-ccid.bundle/Contents/Solaris/libccid.so
00000367 readerfactory.c:844:() Loading IFD Handler 3.0
00000087 ifdhandler.c:1597:() Driver version: 1.3.11-svn-4750
00000331 ifdhandler.c:1610:() LogLevel: 0x0003
00000314 ifdhandler.c:1630:() DriverOptions: 0x0000
00000025 ifdhandler.c:82:() lun: 0, device: usb:04e6/e001:libusb:/dev/usb:4e6.e001/0
00000478 ccid_usb.c:284:() Manufacturer: Ludovic Rousseau (ludovic.rouss...@free.fr)
00000312 ccid_usb.c:294:() ProductString: Generic CCID driver
00000311 ccid_usb.c:300:() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
00023187 ccid_usb.c:498:() Found Vendor/Product: 04E6/E001 (SCM SCR 331)
00000028 ccid_usb.c:501:() Using USB bus/device: /dev/usb/4e6.e001/0
00005570 ccid_usb.c:891:() IFD does not support GET_DATA_RATES request: I/O error
00035973 ifdhandler.c:364:() tag: 0xFB0, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000039 readerfactory.c:268:() Using the pcscd polling thread
00003982 ifdhandler.c:364:() tag: 0xFAE, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000034 ifdhandler.c:453:() Reader supports 1 slot(s)
00000036 hotplug_libusb.c:404:() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000034 hotplug_libusb.c:414:() Polling forced every 1 second(s)
05263931 ifdhandler.c:1089:() action: PowerUp, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00388078 ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
00000034 atrhandler.c:102:() Conv: 01, Y1: 0D, K: 0B
00000026 atrhandler.c:119:() TA1: 96, TB1: FFFFFFFF, TC1: 00, TD1: 80
00000023 atrhandler.c:153:() T=0 Protocol Found
00000018 atrhandler.c:119:() TA2: FFFFFFFF, TB2: FFFFFFFF, TC2: FFFFFFFF, TD2: 1F
00000016 atrhandler.c:153:() T=15 Protocol Found
00000017 atrhandler.c:119:() TA3: 03, TB3: FFFFFFFF, TC3: FFFFFFFF, TD3: FFFFFFFF
00000017 atrhandler.c:248:() CurrentProtocol: 1, AvailableProtocols: 9
00000016 eventhandler.c:472:() Card inserted into SCM SCR 331 (21120727G00110) 00 00
00000024 Card ATR: 3B DB 96 00 80 1F 03 00 31 C0 64 77 E3 03 00 82 90 00 C1
03231793 eventhandler.c:406:() Card Removed From SCM SCR 331 (21120727G00110) 00 00
^C07757647 pcscdaemon.c:581:() Received signal: 2
00000028 pcscdaemon.c:586:() Preparing for suicide
00362719 hotplug_libusb.c:380:() Hotplug stopped
00637323 readerfactory.c:1260:() entering cleaning function
00000037 readerfactory.c:1268:() Stopping reader: SCM SCR 331 (21120727G00110) 00 00
00000023 eventhandler.c:170:() Stomping thread.
00000026 ifdhandler.c:364:() tag: 0xFB1, usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00000022 eventhandler.c:183:() Waiting polling thread
00126310 eventhandler.c:519:() Die
00000070 eventhandler.c:207:() Thread stomped.
00000026 readerfactory.c:1020:() Attempting shutdown of SCM SCR 331 (21120727G00110) 00 00.
00000026 ifdhandler.c:266:() usb:04e6/e001:libusb:/dev/usb:4e6.e001/0 (lun: 0)
00003860 commands.c:898: Unknown CCID error: 0xBF
00005017 readerfactory.c:881:() Unloading reader driver.
00000084 winscard_svc.c:123:() remaining threads: 0
00000022 pcscdaemon.c:545:() cleaning /var/run/pcscd
reinh...@etrenank:~/Download/PCSC/ccid-1.3.11-svn-4750$

This is a most welcome change, as I could never get Red Hat's coolkey to compile with the Sun Studio compiler. Now compiling coolkey-1.1.0 with gcc means no more linker errors (as was the case when linking gcc-compiled coolkey against Sun Studio-compiled pcsc-lite.

In case there are any other folks out there with a need to use a DoD CAC on OpenSolaris, here's how I compiled coolkey-1.1.0:

First, some hacks that were reportedly necessary to get coolkey to compile on Solaris 10, and I can confirm are still necessary to compile it on OpenSolaris. From the coolkey-1.1.0 source directory:

vi src/coolkey/machdep.cpp

Add the following lines:

#ifndef MAP_FILE
#define MAP_FILE 0
#endif

Between:

#endif

#ifdef _WIN32

vi src/coolkey/coolkeypk11.def

And delete line 19, which is empty.

env LIBUSB_CLFAGS="-I/usr/include" LIBUSB_LIBS="-L/usr/lib -lusb" PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib -lpcsclite" ./configure --sysconfdir=/etc --prefix=/usr/local

make
pfexec make install

Still having an issue with Firefox-3.5.7 refusing to add libcoolkeypk11.so as a security module, but hopefully with a little more tinkering I'll get that to work and have access to Portal and Webmail from OpenSolaris.




Thanks for the report.


_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle





_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to