Project

General

Profile

Actions

Bug #12095

open

Memory leak in pcscd

Added by Steve Wheeler over 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Authentication
Target version:
Start date:
06/30/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Plus-Next
Release Notes:
Default
Affected Version:
2.5.x
Affected Architecture:
All

Description

The PCSC daemon looks to have a memory leak even when it's not in use. Or even when there are no IPSec tunnels defined which might be tied to it.

last pid: 99559;  load averages:  0.25,  0.18,  0.11                up 12+01:45:56  18:38:11
69 processes:  1 running, 68 sleeping
CPU:  0.2% user,  0.0% nice,  1.2% system,  0.0% interrupt, 98.6% idle
Mem: 31M Active, 1047M Inact, 502M Wired, 116M Buf, 347M Free
Swap: 1908M Total, 1908M Free
  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
 7760 root          3  20    0   990M   976M select   1  24:23   0.14% pcscd
 9887 root          1  52    0   105M    39M accept   0   1:20   0.00% php-fpm
87665 root          1  52    0   102M    36M accept   0   0:43   0.00% php-fpm
 4918 root          1  52    0   102M    36M accept   1   0:40   0.00% php-fpm
77558 root          1  52    0   102M    36M accept   1   0:38   0.00% php-fpm

Stopping and then startingthe services resets the memory use to ~4MB. If you have IPSec tunnels defined which doing that the IPSec service will also need to be stopped and then started.

There looks to be a limit at ~1GB so it could be only lower memory systems that are affected.

Tested: CE 2.5.1, Plus 21.05 and 21.09.


Files

clipboard-202108061650-gdclv.png (55.1 KB) clipboard-202108061650-gdclv.png Sean M, 08/06/2021 04:50 PM
clipboard-202108251709-me8di.png (73.1 KB) clipboard-202108251709-me8di.png Michael Smith, 08/25/2021 04:09 PM
PFsence memory leak.png (9.58 KB) PFsence memory leak.png Mr Sparkles, 01/20/2022 10:15 AM
PFsence memory leak2.png (16.5 KB) PFsence memory leak2.png Mr Sparkles, 01/20/2022 10:15 AM

Related issues

Related to Todo #11933: PC/SC Smart Card Daemon ``pcscd`` running on all devices at all times, should be optionalResolvedViktor Gurov05/17/2021

Actions
Related to Feature #13826: Update pcsc-liteDuplicate

Actions
Actions

Also available in: Atom PDF