pcscd dies when running cyberjack command line tool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcsc-cyberjack (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
$ apt-cache policy libifd-cyberjack6
libifd-cyberjack6:
Installed: 3.99.5final.sp03-2
Candidate: 3.99.5final.sp03-2
Version table:
3.
500 http://
*** 3.99.5final.sp03-2 0
100 /var/lib/
The HW I am using is this device:
http://
pcscd crashes while executing command line tool cyberjack. The error occurs independend from an inserted card. cyberjack waits endless when pcscd crashed. I ran the pcscd with the -f option to avoid daemonizing. It does not crash always but from 10 times it will crash at least 5 times. Please restart pcscd after ever try. Further issues occured: cyberjack will not return while pcscd continues running. Terminating pcscd with SIGINT is impossible.
When the pcscd does not lock or crash I received the attached report.
Since I have debugging versions of all libraries on the system after reporting Bug #1296288 I can give a backtrace on what happened when pcscd crashed:
root@einstein:~# gdb /usr/sbin/pcscd
GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/
(gdb) r -f
Starting program: /usr/sbin/pcscd -f
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
CYBERJACK: Started
[New Thread 0x7ffff655f700 (LWP 26687)]
[Thread 0x7ffff655f700 (LWP 26687) exited]
[New Thread 0x7ffff655f700 (LWP 26688)]
[Thread 0x7ffff655f700 (LWP 26688) exited]
[New Thread 0x7ffff655f700 (LWP 26689)]
[New Thread 0x7ffff5d5e700 (LWP 26690)]
[New Thread 0x7ffff555d700 (LWP 26691)]
[New Thread 0x7ffff4d5c700 (LWP 26704)]
00000000 winscard.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff4d5c700 (LWP 26704)]
_wordcopy_
112 wordcopy.c: No such file or directory.
(gdb) bt
#0 _wordcopy_
#1 0x00007ffff7262355 in __memmove_sse2 (dest=0x7ffff4d
#2 0x00007ffff6fa559c in memmove (__len=84, __src=<optimized out>, __dest=
#3 IFDHandler:
cmd=
response=
#4 0x00007ffff6fa5baa in IFDHandler:
cmd=
response=
#5 0x00007ffff6fa5ddd in IFDHandler:
RxBuffer=
#6 0x00007ffff6fa7f8b in IFDHandler::control (this=this@
TxBuffer=
RxReturned=
#7 0x00007ffff6fa820b in IFDHControl (Lun=0, controlCode=
RxReturned=
#8 0x00000000004071db in IFDControl (rContext=0x623010, ControlCode=
BytesReturn
#9 0x00000000004150f0 in SCardControl (hCard=271888542, dwControlCode=
lpBytesRetu
#10 0x00000000004179a4 in ContextThread (newContext=
#11 0x00007ffff75a3182 in start_thread (arg=0x7ffff4d5
#12 0x00007ffff72d030d in clone () at ../sysdeps/