← Back to team overview

touch-packages team mailing list archive

[Bug 1511674] Re: Memory leak

 

Yes, the problem is that pcscd's memory consumption is growing over time.  It doesn't matter if I stop my application or not.
I made the test again and after a minute, memory consumption increased from 22000kB to 28236kB

$ ps aux | grep pcscd && sleep 60 && ps aux | grep pcscd
root      7781  0.3  0.2 171316 22000 pts/1    Sl   16:20   0:00 /usr/sbin/pcscd
gden      7892  0.0  0.0  11740   928 pts/1    S+   16:24   0:00 grep --color=auto pcscd

root      7781  0.3  0.3 171316 28236 pts/1    Sl   16:20   0:01 /usr/sbin/pcscd
gden      7905  0.0  0.0  11740   928 pts/1    S+   16:25   0:00 grep --color=auto pcscd

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

Title:
  Memory leak

Status in pcsc-lite package in Ubuntu:
  New

Bug description:
  I noticed that pcscd consumes a lot of memory (5GB after 48h since start) in one of my computers (ubuntu 14.04 64-bit pcsc-lite version 1.8.10.)
  In debug mode pcscd shows a lot of USB "device removed" notifications:

  00000102 hotplug_libudev.c:594:HPEstablishUSBNotifications() Device removed
  00001297 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
  [cut - long list of usb devices]
  00000246 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x03EB, PID: 0x2044, path: /dev/bus/usb/001/067
  00022327 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 5
  00500329 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 5
  00500341 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 5

  Flood of "device removed" messages was caused by some broken USB
  device (not card reader - CDC-ACM device), but it doesn't explain why
  pcscd allocated 5GB of memory. Is it some memory leak in pcscd?

  lsb_release -rd:
  Description:	Ubuntu 14.04.3 LTS
  Release:	14.04

  pcscd:
    Installed: 1.8.10-1ubuntu1
    Candidate: 1.8.10-1ubuntu1
    Version table:
   *** 1.8.10-1ubuntu1 0
          500 http://pl.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
          100 /var/lib/dpkg/status

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


References