Public bug reported:

pcscd (1.8.10-1ubuntu1) crashed reproducibly in Ubuntu 14.04LTS when I remove 
my Reiner SCT chipcard reader. 
The reader uses the libifd-cyberjack6 driver. I tried with the driver version 
from the Ubuntu repositories first, when 
that failed I also tried with the ones provided from the manufacturer's 
homepage, but pcscd crashes in both cases.

I ran pcscd in debug mode attached the chipcard reader, inserted and
removed the chipcard a couple of times and got this output:

  /usr/share/doc/libusb-1.0-0 $ sudo pcscd -d -f
00000000 pcscdaemon.c:240:main() pcscd set to foreground with debug send to 
stdout
00000158 configfile.l:254:DBGetReaderListDir() Parsing conf directory: 
/etc/reader.conf.d
00000033 configfile.l:307:DBGetReaderList() Parsing conf file: 
/etc/reader.conf.d/libccidtwin
00000046 configfile.l:266:DBGetReaderListDir() Skipping non regular file: .
00000012 configfile.l:266:DBGetReaderListDir() Skipping non regular file: ..
00000013 pcscdaemon.c:545:main() pcsc-lite 1.8.10 daemon ready.
[...]
00000024 hotplug_libudev.c:321:HPAddDevice() Adding USB device: REINER SCT 
cyberJack RFID standard
00000086 readerfactory.c:989:RFInitializeReader() Attempting startup of REINER 
SCT cyberJack RFID standard (5321633775) 00 00 using 
/usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so
CYBERJACK: Started
00002092 readerfactory.c:874:RFBindFunctions() Loading IFD Handler 3.0
00016618 readerfactory.c:327:RFAddReader() Using the pcscd polling thread
02479431 eventhandler.c:381:EHStatusHandlerThread() powerState: 
POWER_STATE_POWERED
00000045 eventhandler.c:396:EHStatusHandlerThread() Card inserted into REINER 
SCT cyberJack RFID standard (5321633775) 00 00
00000026 Card ATR: 3B FF 96 00 FF 81 31 FE 45 65 63 66 07 52 02 50 00 10 09 23 
C0 19 06 40 76 
00401109 eventhandler.c:455:EHStatusHandlerThread() powerState: 
POWER_STATE_UNPOWERED
02003760 eventhandler.c:335:EHStatusHandlerThread() Card Removed From REINER 
SCT cyberJack RFID standard (5372633771) 00 00
02060183 eventhandler.c:381:EHStatusHandlerThread() powerState: 
POWER_STATE_POWERED
00000027 eventhandler.c:396:EHStatusHandlerThread() Card inserted into REINER 
SCT cyberJack RFID standard (5321633775) 00 00
00000016 Card ATR: 3B FF 96 00 FF 81 31 FE 45 65 63 66 07 52 02 50 00 10 09 23 
C0 19 06 40 76 
00401125 eventhandler.c:455:EHStatusHandlerThread() powerState: 
POWER_STATE_UNPOWERED
01603142 eventhandler.c:335:EHStatusHandlerThread() Card Removed From REINER 
SCT cyberJack RFID standard (5372633771) 00 00
RSCT: No USB context.}n*** Error in `pcscd': free(): corrupted unsorted chunks: 
0x00007fbacc0077e0 ***

---

if I remove the reader while the card is inserted the log looks slightly
different, but pcscd still crashes:

06279214 hotplug_libudev.c:594:HPEstablishUSBNotifications() Device removed
[...]
00000025 hotplug_libudev.c:520:HPRescanUsbBus() Removing USB device[0]: REINER 
SCT cyberJack RFID standard (5321633775) at /dev/bus/usb/001/010
00000038 readerfactory.c:535:RFRemoveReader() UnrefReader() count was: 1
00000012 eventhandler.c:156:EHDestroyEventHandler() Stomping thread.
00000025 eventhandler.c:185:EHDestroyEventHandler() Waiting polling thread
00127580 eventhandler.c:478:EHStatusHandlerThread() Die
00000169 eventhandler.c:196:EHDestroyEventHandler() Thread stomped.
00000014 readerfactory.c:1040:RFUnInitializeReader() Attempting shutdown of 
REINER SCT cyberJack RFID standard (5321633775) 00 00.
*** Error in `pcscd': free(): corrupted unsorted chunks: 0x00007ff9fc0077e0 ***

---

pcscd also crashes if no card was inserted at any time while the reader
was attached.

I didn't experience this problem in 13.10

Please let me know, if I can help more to resolve this issue.

Cheers,
Karsten

** Affects: pcsc-lite (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1323795

Title:
  pcscd crashes when removing usb chipcard reader

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1323795/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to