Bug 5877 - Memory leak when removing and inserting smart card in tlclient.bin
Summary: Memory leak when removing and inserting smart card in tlclient.bin
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Smart card (show other bugs)
Version: 4.5.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Pierre Ossman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-09 13:43 CEST by Henrik Andersson
Modified: 2021-10-19 12:50 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments
Logfile from valgrind run. (14.64 KB, text/x-log)
2016-05-09 13:43 CEST, Henrik Andersson
Details

Description Henrik Andersson cendio 2016-05-09 13:43:15 CEST
20 memory leaks were found when testing ThinLinc client using valgrind bug 2723. Those leaks was the result from starting ThinLinc client with smartcard authentication enabled and a card inserted, then remove the card and insert again.
Comment 1 Henrik Andersson cendio 2016-05-09 13:43:48 CEST
Created attachment 688 [details]
Logfile from valgrind run.
Comment 2 Henrik Andersson cendio 2016-05-09 13:46:06 CEST
Even though i have debug symbols installed, there are missing symbols in the logfile.
/proc/<pid>/maps tells that it is within our shipped pkcs11 module.

  0dc3b000-0def6000 r-xp 00000000 fd:00 8004271          /opt/thinlinc/lib/tlclient/opensc-pkcs11.so
  0def6000-0e0f5000 ---p 002bb000 fd:00 8004271          /opt/thinlinc/lib/tlclient/opensc-pkcs11.so
  0e0f5000-0e127000 rw-p 002ba000 fd:00 8004271          /opt/thinlinc/lib/tlclient/opensc-pkcs11.so
Comment 3 Henrik Andersson cendio 2016-05-09 13:47:19 CEST
Reproduced using ThinLinc 4.6.0 build 5116 running on Fedora 24:

  opensc-debuginfo-0.15.0-5.fc24.x86_64
  opensc-0.15.0-5.fc24.x86_64

Note You need to log in before you can comment on or make changes to this bug.