[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-25 Thread Launchpad Bug Tracker
This bug was fixed in the package ccid - 1.4.22-1ubuntu0.1 --- ccid (1.4.22-1ubuntu0.1) xenial-proposed; urgency=low * debian/patches/close-libusb-on-failure.patch: Make sure close_libusb_if_needed is called even if no device was opened, otherwise it triggers a segfault. (LP

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-18 Thread Evan Broder
Thanks Martin. I've confirmed that the package solves the issue for me. ** Tags removed: verification-needed ** Tags added: verification-done -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-18 Thread Martin Pitt
Hello Casey, or anyone else affected, Accepted ccid into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ccid/1.4.22-1ubuntu0.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-12 Thread Evan Broder
Sorry about that, Martin. Not sure what happened. Just re-uploaded without the noise. -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-12 Thread Martin Pitt
Evan: d/patches/close-libusb-on-failure.patch looks fair enough, but what is debian/patches/test? It's a patch of a patch, not referenced/explained in the changelog, what does that do? Please either explain in the changelog or if it is just noise please remove and reupload. Thanks! -- You receive

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-11 Thread Sylvain
Hello, I've the same problem with my laptop (Dell Latitude E7450). If I can help don't hesitate to ask me. I can give you some logs if you want. Best regards, Sylvain -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pcsc-lite in Ubuntu.

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-09 Thread Evan Broder
** Changed in: ccid (Ubuntu Xenial) Status: Confirmed => In Progress -- 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 p

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-09 Thread Evan Broder
** Description changed: + + [DESCRIPTION] + + When hotplugging a composite USB device that expose multiple interfaces + (such as a Yubikey NEO or Yubikey 4), libccid does not correctly de- + initialize the USB library when it skips over the non-CCID interface. + + This subsequently results in p

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-09 Thread Evan Broder
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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-05-09 Thread Evan Broder
** Also affects: ccid (Ubuntu) Importance: Undecided Status: New ** Also affects: ccid (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: pcsc-lite (Ubuntu Xenial) Importance: Undecided Status: New ** Changed in: ccid (Ubuntu Xenial) Status: N

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-20 Thread Bug Watch Updater
** Changed in: pcsc-lite (Debian) Status: Confirmed => Fix Released -- 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 pcsc-li

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-19 Thread Bug Watch Updater
** Changed in: pcsc-lite (Debian) Status: Unknown => Confirmed -- 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 pcsc-lite pa

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-19 Thread Ludovic Rousseau
** Also affects: pcsc-lite (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812087 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pcsc-lite in Ubuntu. https://bugs.launchpad.n

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-17 Thread Johnny Izzo
Thank you Ludovic. Laptop is quiet again. (needed to install -dev files to get over /configure errors, if anyone else is confused) -- 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/15518

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-03 Thread Ludovic Rousseau
Johnny, you can disable support of the Broadcom device. - Get the source code of the libccid driver from https://alioth.debian.org/frs/?group_id=30105#title_ccid. - edit the file readers/supported_readers.txt - remove the line "0x0A5C:0x5800:Broadcom Corp 5880" - run the commands $ ./configure $

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-03 Thread Ludovic Rousseau
I reported the bug upstream to libudev project https://github.com/systemd/systemd/issues/2946 -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-01 Thread Johnny Izzo
I use my non-integrated omnikey 1021 usb smartcard-reader, so pcscd is still needed, correct? -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-04-01 Thread Ludovic Rousseau
Johnny, you can remove the pcscd package if you do not use it. -- 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 pcsc-lite package i

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-31 Thread Johnny Izzo
Is there a way to disable the device in software, so i could just use my usb card-reader? -- 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 St

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-30 Thread Ludovic Rousseau
It looks like the problem is related to some specific readers only: Broadcom Corp 5880 and Yubico Yubikey NEO U2F+CCID -- 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:

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-29 Thread Johnny Izzo
So in my case it triggers when i connect some usb device (mouse, usb-flash-memory, phone). Sometimes it calms down after unmount and unplug of usb-memory, and does not come back until i logout of lubuntu desktop (and login and plugin again). Another way of triggering 100% is in my case having u

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-29 Thread Johnny Izzo
** Attachment added: "lsusb-v.txt" https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1551897/+attachment/4615641/+files/lsusb-v.txt -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-28 Thread Ludovic Rousseau
Johnny, can you attach the result of the command "lsusb -v"? Thanks -- 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 pcsc-lite pack

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-28 Thread Johnny Izzo
Sorry again, Ludovic, i have no idea what this pcscd does so i thought its some general error. Is this bug device specific? Then i have an Dell laptop with integrated smart-card reader (which im not using physically, since some metal is bended on the way of the card.) (The most used here is om

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-28 Thread Ludovic Rousseau
Casey, it looks like the problem is related to the use of a "Yubico Yubikey NEO U2F+CCID" device. Unfortunately I do not have such a device myself so I can't reproduce the problem here :-( Johnny, why do you say "Probably most people using Estonian ID-Card on those distros will be affected?"? W

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-24 Thread Johnny Izzo
hey, sorry, total noob here, what i got is: pcscdaemon.c:263:main() pcscd set to foreground with debug send to stdout 0021 debuglog.c:312:DebugLogSetCategory() Debug options: APDU 0016 pcscdaemon.c:268:main() Force colored logs 0037 pcscdaemon.c:403:main() file /var/run/pcscd

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-24 Thread Ludovic Rousseau
Can you do: sudo LIBUSB_DEBUG=99 pcscd -dfaT | tee log.txt and add to this bug the created log.txt file? -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-24 Thread Johnny Izzo
Hmm, conveniently just had a crash. No idea if there is anything useful there : https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1561702 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pcsc-lite in Ubuntu. https://bugs.launchpad.n

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-24 Thread Johnny Izzo
Probably most people using Estonian ID-Card on those distros will be affected? Not good :( -- 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 S

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-24 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: pcsc-lite (Ubuntu) Status: New => Confirmed -- 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/

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-19 Thread Ludovic Rousseau
I installed Ubuntu Xenial (beta) in a VirtualBox virtual machine and I can't reproduce the problem :-( I could connect a CCID reader and a USB mass storage with no problem on pcscd. Can you reproduce the problem in a Virtual Machine on your side? -- You received this bug notification because you

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-19 Thread Casey Marshall
I can work around this with my custom build of pcscd with udev disabled, but it seems that this issue will still affect Debian and Ubuntu users who install the package. Can we mark this bug as Confirmed, since my symptoms are so similar to the descriptions in the Debian bug[1] you've linked above?

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-07 Thread Ludovic Rousseau
If you use --disable-libudev you use use the older hotplug mechanism. See http://ludovicrousseau.blogspot.com/2011/02/pcscd-now-uses-libudev-instead-of.html At least that will avoid the 100% CPU issue. -- You received this bug notification because you are a member of Desktop Packages, which is

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-06 Thread Casey Marshall
Recompiling with --disable-libudev gets rid of the 100% CPU problem and I can still use my smartcard. -- 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 uti

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-04 Thread Casey Marshall
** Attachment added: "pcscd binary and core dump" https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1551897/+attachment/4588521/+files/pcscd-core-bin.tar.bz2 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pcsc-lite in Ubuntu.

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-04 Thread Casey Marshall
Here's a core dump with the corresponding pcscd binary I built from source, which was taken in the above-mentioned gdb session. -- 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

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-04 Thread Casey Marshall
Ran it with gdb, reproduced, and then interrupted when it started consuming 100% CPU: Thread 1 "pcscd" received signal SIGINT, Interrupt. 0x774e2853 in select () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x774e2853 in select () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x000

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-04 Thread Casey Marshall
Oh, here's /var/log/syslog from unplugging and replugging in my camera. I Ctrl-C killed pcscd after it went to 100% each time. pcscd segfaulted. Mar 4 12:04:11 mawhrin-skel pcscd: debuglog.c:289:DebugLogSetLevel() debug level=debug Mar 4 12:04:13 mawhrin-skel kernel: [14604.513268] usb 3-1: US

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-04 Thread Casey Marshall
It starts consuming 100% CPU after this: 02341452 hotplug_libudev.c:642:HPEstablishUSBNotifications() USB Device removed 0217 hotplug_libudev.c:619:HPEstablishUSBNotifications() 0068 hotplug_libudev.c:642:HPEstablishUSBNotifications() USB Device removed 0149 hotplug_libudev.c:619:HPEst

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-04 Thread Ludovic Rousseau
Does your log trace include the moment when pcscd consumed 100% of CPU? I ask because I could not find anything strange in the trace. -- 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/15

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-02 Thread Casey Marshall
I ran pcscd as you suggested, capturing output. Made sure the smart card was working by using my SSH key. I was then able to reproduce the 100% cpu condition by plugging in my Logitech USB webcam. Attached the output, but I redacted the hex dumps before posting here because I'm not sure if they co

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-01 Thread Ludovic Rousseau
It looks like https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812087 Can you rebuild pcscd with hotplug debug enabled. No need to install pcscd so you can't break your installation. 1. Get the source code of pcsc-lite, for example from https://alioth.debian.org/frs/?group_id=30105&release_id=20

[Desktop-packages] [Bug 1551897] Re: Excessive CPU utilization

2016-03-01 Thread Casey Marshall
This is what I've got installed ^^ c@mawhrin-skel:~/omnibus-layers$ dpkg -l | grep pcscd ii pcscd 1.8.14-1ubuntu1 amd64Middleware to access a smart card using PC/SC (daemon side) -- You received this bug notification