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

Dmitry Shachnev mitya57 at gmail.com
Sun Sep 29 10:03:24 UTC 2013


This bug was fixed in the package ccid - 1.4.12-1
Sponsored for Kirill Kotyagin (k-kotyagin)

---------------
ccid (1.4.12-1) unstable; urgency=low

  * New upstream release
  * debian/control: upgrade Build-Depends: libpcsclite-dev to 1.8.3 minimum
  * debian/control: update Vcs-Svn: and Vcs-Browser: and use
    anonscm.debian.org. Fixes lintian warning vcs-field-not-canonical

 -- Ludovic Rousseau <rousseau at debian.org>  Tue, 13 Aug 2013 00:02:07
+0200

** Changed in: ccid (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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 Released

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