[Bug 1229739] Re: pcscd daemon crashes on reader/token insertion

Ubuntu Foundations Team Bug Bot 1229739 at bugs.launchpad.net
Tue Sep 24 16:20:25 UTC 2013


The attachment "Patch to uncomment calls to libusb_exit" seems to be a
debdiff.  The ubuntu-sponsors team has been subscribed to the bug report
so that they can review and hopefully sponsor the debdiff.  If the
attachment isn't a patch, please remove the "patch" flag from the
attachment, remove the "patch" tag, and if you are member of the
~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1229739

Title:
  pcscd daemon crashes on reader/token insertion

Status in “ccid” package in Ubuntu:
  Fix Committed

Bug description:
  Steps to reproduce:

  1. Start pcscd manually: "sudo pcscd -fad"
  2. Plug a USB CCID compliant device supported by libccid into USB port;
  3. Unplug the device from USB port;
  4. Plug the device to USB port again;

  pcscd crashes.

  Description:

  pcscd dynamically loads libccid when a USB CCID reader appears.
  libccid uses libusb to communicate with USB devices.  It initializes
  libusb by calling libusb_init function. This function creates a
  thread to monitor usb events. Once the last USB CCID device gets
  disconnected, pcscd unloads libccid which in turn unloads libusb.
  However, as libccid does not call libusb_exit on de-initialization,
  the event monitoring threads remains active. The event monitoring
  thread resides in "poll" system call until USB event occurred(e.g.
  reader connected). Then, It returns from poll to a memory which has
  already been unmapped due to libccid/libusb unloading. The latter
  leads to a crashing of pcscd.

  The source code of libccid contains calls to libusb_exit. However, for
  some reason those are commented. Uncommenting them solves the problem.
  Attached is a patch to uncomment calls to libusb_exit.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: libccid 1.4.11-1
  ProcVersionSignature: Ubuntu 3.11.0-7.13-generic 3.11.0
  Uname: Linux 3.11.0-7-generic x86_64
  ApportVersion: 2.12.4-0ubuntu1
  Architecture: amd64
  Date: Tue Sep 24 17:03:18 2013
  InstallationDate: Installed on 2013-09-12 (12 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130912)
  MarkForUpload: True
  SourcePackage: ccid
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the Ubuntu-sponsors mailing list