This is actually a bug in ccid's handling of composite USB devices, and
has been fixed upstream (https://alioth.debian.org/plugins/scmgit/cgi-
bin/gitweb.cgi?p=pcsclite/CCID.git;a=commitdiff_plain;h=3c21f452543983f3625a1965ce234074cbda6865).

My experience was that this bug caused pcscd to segfault, rather than to
consume 100% CPU, but the fix appears to be the same either way.

I've attached a debdiff that fixes the issue for me, and I've uploaded a
test build to my PPA (https://launchpad.net/~broder/+archive/ubuntu
/ubuntu-tests). I suspect this merits an SRU, since it's a significant
regression in functionality without a good workaround; I'll start on the
paperwork.

** Patch added: "ccid_1.4.22-1ubuntu0.1.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/ccid/+bug/1551897/+attachment/4659458/+files/ccid_1.4.22-1ubuntu0.1.debdiff

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pcsc-lite in Ubuntu.
https://bugs.launchpad.net/bugs/1551897

Title:
  Excessive CPU utilization

Status in ccid package in Ubuntu:
  Fix Released
Status in pcsc-lite package in Ubuntu:
  Invalid
Status in ccid source package in Xenial:
  Confirmed
Status in pcsc-lite source package in Xenial:
  Invalid
Status in pcsc-lite package in Debian:
  Fix Released

Bug description:
  In xenial, pcscd CPU utilization occasionally goes haywire:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND   
                                                                                
                                                    
  27404 root      20   0  384264   4992   2228 S 100.3  0.0  75:39.03 
/usr/sbin/pcscd --foreground --auto-exit                                        
                                                              

  I get this about once a day since installing xenial. I can't quite
  connect it to any specific event on the system, it just seems to
  happen sporadically -- fan turns on, I run top, and there it is again.

  Never had this issue on same hardware incl. smartcard with trusty.

  I wonder if it might be this? https://bugs.debian.org/cgi-
  bin/bugreport.cgi?bug=718473

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ccid/+bug/1551897/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to