Public bug reported:

$ 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.99.5final.sp03-2 0
        500 http://de.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
 *** 3.99.5final.sp03-2 0
        100 /var/lib/dpkg/status


The HW I am using is this device:

http://www.reiner-
sct.com/produkte/chipkartenleser/cyberjack_secoder.html?pEl=2

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://gnu.org/licenses/gpl.html>
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://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/pcscd...done.
(gdb) r -f
Starting program: /usr/sbin/pcscd -f
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
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.c:925:SCardDisconnect() Error resetting card.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff4d5c700 (LWP 26704)]
_wordcopy_fwd_aligned (dstp=<optimized out>, srcp=<optimized out>, len=8) at 
wordcopy.c:112
112     wordcopy.c: No such file or directory.
(gdb) bt
#0  _wordcopy_fwd_aligned (dstp=<optimized out>, srcp=<optimized out>, len=8) 
at wordcopy.c:112
#1  0x00007ffff7262355 in __memmove_sse2 (dest=0x7ffff4d4bef4, src=<optimized 
out>, len=80) at ../string/memmove.c:79
#2  0x00007ffff6fa559c in memmove (__len=84, __src=<optimized out>, 
__dest=0x7ffff4d4bef4) at /usr/include/x86_64-linux-gnu/bits/string3.h:57
#3  IFDHandler::_specialGetModuleInfo (this=this@entry=0x7ffff71d44c0 
<rsct_ifd_handler>, ctx=ctx@entry=0x63fd70, cmd_len=cmd_len@entry=4, 
    cmd=cmd@entry=0x7ffff4d3bee4 "0", <incomplete sequence \306>, 
response_len=response_len@entry=0x7ffff4d3b8de, 
    response=response@entry=0x7ffff4d4bef4 
"HORITY=/tmp/kde-ralph/xauth-1000-_0") at ifd_special.cpp:408
#4  0x00007ffff6fa5baa in IFDHandler::_special (this=0x7ffff71d44c0 
<rsct_ifd_handler>, ctx=0x63fd70, cmd_len=<optimized out>, 
    cmd=cmd@entry=0x7ffff4d3bee4 "0", <incomplete sequence \306>, 
response_len=response_len@entry=0x7ffff4d3b8de, 
    response=response@entry=0x7ffff4d4bef4 
"HORITY=/tmp/kde-ralph/xauth-1000-_0") at ifd_special.cpp:508
#5  0x00007ffff6fa5ddd in IFDHandler::p10MctUniversal 
(this=this@entry=0x7ffff71d44c0 <rsct_ifd_handler>, ctx=ctx@entry=0x63fd70, 
uni=uni@entry=0x7ffff4d3bee0, 
    RxBuffer=RxBuffer@entry=0x7ffff4d4bef0 "\002\016V", 
RxLength=RxLength@entry=507, RxReturned=RxReturned@entry=0x7ffff4d3beb0) at 
ifd.cpp:1181
#6  0x00007ffff6fa7f8b in IFDHandler::control (this=this@entry=0x7ffff71d44c0 
<rsct_ifd_handler>, Lun=Lun@entry=0, controlCode=controlCode@entry=1107299765, 
    TxBuffer=TxBuffer@entry=0x7ffff4d3bee0 "\002\016\004", 
TxLength=TxLength@entry=8, RxBuffer=RxBuffer@entry=0x7ffff4d4bef0 "\002\016V", 
RxLength=RxLength@entry=507, 
    RxReturned=RxReturned@entry=0x7ffff4d3beb0) at ifd.cpp:1277
#7  0x00007ffff6fa820b in IFDHControl (Lun=0, controlCode=1107299765, 
TxBuffer=0x7ffff4d3bee0 "\002\016\004", TxLength=8, RxBuffer=0x7ffff4d4bef0 
"\002\016V", RxLength=507, 
    RxReturned=0x7ffff4d3beb0) at ifd.cpp:1573
#8  0x00000000004071db in IFDControl (rContext=0x623010, 
ControlCode=1107299765, TxBuffer=0x7ffff4d3bee0, TxLength=8, 
RxBuffer=0x7ffff4d4bef0, RxLength=507, 
    BytesReturned=0x7ffff4d3beb0) at ifdwrapper.c:447
#9  0x00000000004150f0 in SCardControl (hCard=271888542, 
dwControlCode=1107299765, pbSendBuffer=0x7ffff4d3bee0, cbSendLength=8, 
pbRecvBuffer=0x7ffff4d4bef0, cbRecvLength=507, 
    lpBytesReturned=0x7ffff4d3beb0) at winscard.c:1344
#10 0x00000000004179a4 in ContextThread (newContext=0x62f1a0) at 
winscard_svc.c:645
#11 0x00007ffff75a3182 in start_thread (arg=0x7ffff4d5c700) at 
pthread_create.c:312
#12 0x00007ffff72d030d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

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

** Attachment added: "report"
   
https://bugs.launchpad.net/bugs/1299617/+attachment/4052058/+files/cyberjack-report.log

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

Title:
  pcscd dies when running cyberjack command line tool

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

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

Reply via email to