Comment 33 for bug 551940

Revision history for this message
Märt Suga (mart-suga) wrote :

These where 1.5.3 version logs.

I will now show 1.5.5 version logs, but it looks pretty much the same:

Reader unplugged:

mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu
00000000 debuglog.c:230:DebugLogSetLevel() debug level=debug
00000030 debuglog.c:259:DebugLogSetCategory() Debug options: APDU
01000847 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
00146083 hotplug_libusb.c:403:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000018 hotplug_libusb.c:412:HPEstablishUSBNotifications() Polling forced every 1 second(s)
00346049 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel packet arrival
00000070 winscard_msg_srv.c:248:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 5
00000018 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation is requested: 5
00000125 winscard_svc.c:133:ContextThread() Thread is started: 5
00000075 winscard_msg_srv.c:317:SHMProcessEventsContext() command CMD_VERSION received by client 5
00000019 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
00000107 winscard_msg_srv.c:317:SHMProcessEventsContext() command ESTABLISH_CONTEXT received by client 5
00000057 winscard.c:242:SCardEstablishContext() Establishing Context: 16994815
*** glibc detected *** pcscd: free(): invalid pointer: 0x08ffcee8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd]
/lib/libusb-0.1.so.4(usb_destroy_configuration+0xdb)[0x819c6b]
/lib/libusb-0.1.so.4(usb_free_dev+0x22)[0x8193a2]
/lib/libusb-0.1.so.4(usb_find_devices+0xe0)[0x819820]
pcscd[0x804d841]
pcscd[0x804e05a]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0x38b96e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0x1dda0e]
======= Memory map: ========
00110000-00263000 r-xp 00000000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00263000-00264000 ---p 00153000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00264000-00266000 r--p 00153000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00266000-00267000 rw-p 00155000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00267000-0026a000 rw-p 00000000 00:00 0
00386000-0039b000 r-xp 00000000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
0039b000-0039c000 r--p 00014000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
0039c000-0039d000 rw-p 00015000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
0039d000-0039f000 rw-p 00000000 00:00 0
00483000-00485000 r-xp 00000000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
00485000-00486000 r--p 00001000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
00486000-00487000 rw-p 00002000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
004c4000-004c5000 r-xp 00000000 00:00 0 [vdso]
005a6000-005c3000 r-xp 00000000 08:03 794261 /lib/libgcc_s.so.1
005c3000-005c4000 r--p 0001c000 08:03 794261 /lib/libgcc_s.so.1
005c4000-005c5000 rw-p 0001d000 08:03 794261 /lib/libgcc_s.so.1
00818000-0081e000 r-xp 00000000 08:03 788248 /lib/libusb-0.1.so.4.4.4
0081e000-0081f000 r--p 00005000 08:03 788248 /lib/libusb-0.1.so.4.4.4
0081f000-00821000 rw-p 00006000 08:03 788248 /lib/libusb-0.1.so.4.4.4
00c03000-00c1e000 r-xp 00000000 08:03 788317 /lib/ld-2.11.1.so
00c1e000-00c1f000 r--p 0001a000 08:03 788317 /lib/ld-2.11.1.so
00c1f000-00c20000 rw-p 0001b000 08:03 788317 /lib/ld-2.11.1.so
08048000-0805e000 r-xp 00000000 08:03 791549 /usr/sbin/pcscd
0805e000-0805f000 r--p 00015000 08:03 791549 /usr/sbin/pcscd
0805f000-08060000 rw-p 00016000 08:03 791549 /usr/sbin/pcscd
08060000-080e9000 rw-p 00000000 00:00 0
08ff7000-09035000 rw-p 00000000 00:00 0 [heap]
b6600000-b6621000 rw-p 00000000 00:00 0
b6621000-b6700000 ---p 00000000 00:00 0
b6719000-b671a000 ---p 00000000 00:00 0
b671a000-b6f1a000 rw-p 00000000 00:00 0
b6f1a000-b6f1b000 ---p 00000000 00:00 0
b6f1b000-b771d000 rw-p 00000000 00:00 0
b7724000-b7725000 rw-s 0000f000 00:11 17852 /var/run/pcscd/pcscd.pub
b7725000-b7726000 rw-s 0000e000 00:11 17852 /var/run/pcscd/pcscd.pub
b7726000-b7727000 rw-s 0000d000 00:11 17852 /var/run/pcscd/pcscd.pub
b7727000-b7728000 rw-s 0000c000 00:11 17852 /var/run/pcscd/pcscd.pub
b7728000-b7729000 rw-s 0000b000 00:11 17852 /var/run/pcscd/pcscd.pub
b7729000-b772a000 rw-s 0000a000 00:11 17852 /var/run/pcscd/pcscd.pub
b772a000-b772b000 rw-s 00009000 00:11 17852 /var/run/pcscd/pcscd.pub
b772b000-b772c000 rw-s 00008000 00:11 17852 /var/run/pcscd/pcscd.pub
b772c000-b772d000 rw-s 00007000 00:11 17852 /var/run/pcscd/pcscd.pub
b772d000-b772e000 rw-s 00006000 00:11 17852 /var/run/pcscd/pcscd.pub
b772e000-b772f000 rw-s 00005000 00:11 17852 /var/run/pcscd/pcscd.pub
b772f000-b7730000 rw-s 00004000 00:11 17852 /var/run/pcscd/pcscd.pub
b7730000-b7731000 rw-s 00003000 00:11 17852 /var/run/pcscd/pcscd.pub
b7731000-b7732000 rw-s 00002000 00:11 17852 /var/run/pcscd/pcscd.pub
b7732000-b7733000 rw-s 00001000 00:11 17852 /var/run/pcscd/pcscd.pub
b7733000-b7734000 rw-s 00000000 00:11 17852 /var/run/pcscd/pcscd.pub
b7734000-b7736000 rw-p 00000000 00:00 0
bfd35000-bfd4a000 rw-p 00000000 00:00 0 [stack]
Aborted

Reader plugged:

mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu
00000000 debuglog.c:230:DebugLogSetLevel() debug level=debug
00000031 debuglog.c:259:DebugLogSetCategory() Debug options: APDU
01000449 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
00137652 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel packet arrival
00000029 winscard_msg_srv.c:248:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 5
00000007 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation is requested: 5
00000037 winscard_svc.c:133:ContextThread() Thread is started: 5
00000032 winscard_msg_srv.c:317:SHMProcessEventsContext() command CMD_VERSION received by client 5
00000007 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
00000048 winscard_msg_srv.c:317:SHMProcessEventsContext() command ESTABLISH_CONTEXT received by client 5
00000023 winscard.c:242:SCardEstablishContext() Establishing Context: 17019363
00000705 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: 003:005
00005077 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
00000158 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
00000029 ifdhandler.c:1532:init_driver() Driver version: 1.3.11
00000292 ifdhandler.c:1545:init_driver() LogLevel: 0x000F
00000240 ifdhandler.c:1565:init_driver() DriverOptions: 0x0000
00000010 ifdhandler.c:82:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb:003:005
00000011 ccid_usb.c:162:OpenUSBByName() Reader index: 0, Device: usb:04e6/5116:libusb:003:005
Segmentation fault
mart@mart-laptop:~$