On 02/12/10 10:37 PM, Douglas E. Engert wrote:


Kevin Reinholz wrote:
On 2/12/10 7:16 AM, Douglas E. Engert wrote:


Ludovic Rousseau wrote:
2010/2/11 Douglas E. Engert <deeng...@anl.gov>:
Replying to my own message, I did some more tests with 1.5.5
and ccid-1.3.11 and can get a bus error with these also.

 I then did:
 reboot with reader present.
 Start pcscd -d -f
 unplugged reader
 plugged it back in
 insert card

 Got message about IFDHPowerICC() PowerUp failed
 So reinserted the card.

 run pkcs15-tool -r
 pulled out card
 inserted card
 pulled out card
 unplugged reader
 got bus error.

So the bus error is not related to latest mods. but
still present.

I rebuild pcsc-lite using hotplug_libusb and I also have crashes if I
use electric-fence.
I don't think I have them if I use hotplug_libhal, but I will double check.

Maybe the bug is in hotplug_libusb.

I am still looking too. Solaris does not have hal, so have to use libusb.
For what it's worth, OpenSolaris (SunOS 5.11) does have HAL now so that might be an interesting thing to test. I've built pcsc-lite-1.5.5 and ccid-1.3.11 using Sun Studio 12 on SunOS 5.11 as GCC choked on pcsc-lite under that platform.

Interesting, I have not had issues with gcc from Sun on Solaris 10.
%/usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



But I used the disable-hal and enable-usb flags  when I did it.

Do you have any problems when removing a reader? It turns out 1.5.5
has problems when removing a reader.

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 also noted that I could remove the reader sometimes, but If I reinserted
it in the same spot, pcscd would not see it. If I put it into a different
spot, usb/pcscd would see it as a new reader /n in the name would change.


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





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