Memory leak in pcscd

Asked by Zbych

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.) After running pcscd in debug mode, I noticed that pcscd kept receiving a lot of USB notifications:

00299601 hotplug_libudev.c:594:HPEstablishUSBNotifications() Device removed
00001345 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000234 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000230 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0610, path: /dev/bus/usb/001/002
00000250 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0596, PID: 0x0001, path: /dev/bus/usb/001/007
00000219 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0610, path: /dev/bus/usb/001/002
00000216 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000272 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0610, path: /dev/bus/usb/001/003
00000238 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0610, path: /dev/bus/usb/001/008
00000213 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0610, path: /dev/bus/usb/001/003
00000219 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000308 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/004
00000284 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0D8C, PID: 0x000C, path: /dev/bus/usb/001/009
00000275 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0D8C, PID: 0x000C, path: /dev/bus/usb/001/009
00000350 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0D8C, PID: 0x000C, path: /dev/bus/usb/001/009
00000303 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0D8C, PID: 0x000C, path: /dev/bus/usb/001/009
00000302 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/004
00000319 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0483, PID: 0x3257, path: /dev/bus/usb/001/010
00000304 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0483, PID: 0x3257, path: /dev/bus/usb/001/010
00000312 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0483, PID: 0x3257, path: /dev/bus/usb/001/010
00000296 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0483, PID: 0x3257, path: /dev/bus/usb/001/010
00000296 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0424, PID: 0x2514, path: /dev/bus/usb/001/004
00000336 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000383 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x0483, PID: 0x5710, path: /dev/bus/usb/001/005
00000383 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
00000298 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001
00000299 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 0x05E3, PID: 0x0612, path: /dev/bus/usb/002/002

This was caused by some broken USB device, but it doesn't explain why pcscd allocated 5GB of memory.
Is it some memory leak in pcscd?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu pcsc-lite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Can you help with this problem?

Provide an answer of your own, or ask Zbych for more information if necessary.

To post a message you must log in.