Bug 46722 - pkcs11 module is causing a memory leak...
Summary: pkcs11 module is causing a memory leak...
Status: RESOLVED NOTOURBUG
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-28 04:41 UTC by guido
Modified: 2012-09-19 07:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description guido 2012-02-28 04:41:46 UTC
the pkcs11 module from gnome-keyring is causing a memory leak...

it showed up while testing gnutls 3.0.14:

...

Self test `./resume' finished with 1 errors
==7387== 376 (40 direct, 336 indirect) bytes in 1 blocks are definitely lost in
loss record 7 of 8
==7387==    at 0x4C27CB3: calloc (vg_replace_malloc.c:566)
==7387==    by 0x6BDFE02: ???
==7387==    by 0x6BE6717: ???
==7387==    by 0x63CAFB2: initialize_module_unlocked_reentrant (modules.c:512)
==7387==    by 0x63CB2C2: _p11_kit_initialize_registered_unlocked_reentrant
(modules.c:680)
==7387==    by 0x63CBB5B: p11_kit_initialize_registered (modules.c:725)
==7387==    by 0x4E81984: gnutls_pkcs11_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7387==    by 0x4E6A202: gnutls_global_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7387==    by 0x4029A5: doit (in /usr/src/gnutls-3.0.14/tests/resume)
==7387==    by 0x401DD4: main (in /usr/src/gnutls-3.0.14/tests/resume)
==7387== 
FAIL: resume
==7395== 376 (40 direct, 336 indirect) bytes in 1 blocks are definitely lost in
loss record 7 of 8
==7395==    at 0x4C27CB3: calloc (vg_replace_malloc.c:566)
==7395==    by 0x6BDFE02: ???
==7395==    by 0x6BE6717: ???
==7395==    by 0x63CAFB2: initialize_module_unlocked_reentrant (modules.c:512)
==7395==    by 0x63CB2C2: _p11_kit_initialize_registered_unlocked_reentrant
(modules.c:680)
==7395==    by 0x63CBB5B: p11_kit_initialize_registered (modules.c:725)
==7395==    by 0x4E81984: gnutls_pkcs11_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7395==    by 0x4E6A202: gnutls_global_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7395==    by 0x4007C8: main (in /usr/src/gnutls-3.0.14/tests/setcredcrash)
==7395== 
FAIL: setcredcrash
==7402== 376 (40 direct, 336 indirect) bytes in 1 blocks are definitely lost in
loss record 7 of 8
==7402==    at 0x4C27CB3: calloc (vg_replace_malloc.c:566)
==7402==    by 0x6BDFE02: ???
==7402==    by 0x6BE6717: ???
==7402==    by 0x63CAFB2: initialize_module_unlocked_reentrant (modules.c:512)
==7402==    by 0x63CB2C2: _p11_kit_initialize_registered_unlocked_reentrant
(modules.c:680)
==7402==    by 0x63CBB5B: p11_kit_initialize_registered (modules.c:725)
==7402==    by 0x4E81984: gnutls_pkcs11_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7402==    by 0x4E6A202: gnutls_global_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7402==    by 0x402D11: client (in /usr/src/gnutls-3.0.14/tests/openpgpself)
==7402==    by 0x40312D: doit (in /usr/src/gnutls-3.0.14/tests/openpgpself)
==7402==    by 0x4025E4: main (in /usr/src/gnutls-3.0.14/tests/openpgpself)
==7402== 
==7401== 376 (40 direct, 336 indirect) bytes in 1 blocks are definitely lost in
loss record 7 of 8
==7401==    at 0x4C27CB3: calloc (vg_replace_malloc.c:566)
==7401==    by 0x6BDFE02: ???
==7401==    by 0x6BE6717: ???
==7401==    by 0x63CAFB2: initialize_module_unlocked_reentrant (modules.c:512)
==7401==    by 0x63CB2C2: _p11_kit_initialize_registered_unlocked_reentrant
(modules.c:680)
==7401==    by 0x63CBB5B: p11_kit_initialize_registered (modules.c:725)
==7401==    by 0x4E81984: gnutls_pkcs11_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7401==    by 0x4E6A202: gnutls_global_init (in
/usr/src/gnutls-3.0.14/lib/.libs/libgnutls.so.28.6.1)
==7401==    by 0x403184: doit (in /usr/src/gnutls-3.0.14/tests/openpgpself)
==7401==    by 0x4025E4: main (in /usr/src/gnutls-3.0.14/tests/openpgpself)
==7401== 
FAIL: openpgpself
Comment 1 Stef Walter 2012-09-19 07:14:47 UTC
You're right. This is a bug in gnome-keyring. Can you test the patch attached to: https://bugzilla.gnome.org/show_bug.cgi?id=684351


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.