[Pkg-openssl-devel] Bug#351684: blocks listed by valgrind

Justin Pryzby justinpryzby at users.sourceforge.net
Fri Feb 17 04:20:12 UTC 2006


==11395== 756 bytes in 11 blocks are still reachable in loss record 1 of 1
==11395==    at 0x401B422: malloc (vg_replace_malloc.c:149)
==11395==    by 0x434C0BD: ??? (mem.c:79)
==11395==    by 0x434C738: CRYPTO_malloc (mem.c:304)
==11395==    by 0x43A3628: ENGINE_new (eng_lib.c:68)
==11395==    by 0x43A7CDB: ENGINE_load_dynamic (eng_dyn.c:270)
==11395==    by 0x43A61F6: ENGINE_load_builtin_engines (eng_all.c:71)
==11395==    by 0x4081D25: ??? (ssluse.c:548)
==11395==    by 0x40915EB: ??? (sslgen.c:167)
==11395==    by 0x408ACA0: curl_global_init (easy.c:204)
==11395==    by 0x804C2D6: usno_query (usnoquery.c:359)
==11395==    by 0x804941D: main (usnoquery_main.c:81)

ENGINE_cleanup is not being called, as per the curl #ifdef, but
forcing it to be called doesn't actually fully solve the problem (nor
am I sure that it should).  So there does seem to be some mem that
isn't freed by ENGINE_cleanup. 

Now I'm down to:
==15003== 616 bytes in 7 blocks are still reachable in loss record 1 of 1
==15003==    at 0x401B422: malloc (vg_replace_malloc.c:149)
==15003==    by 0x434D0BD: ??? (mem.c:79)
==15003==    by 0x434D738: CRYPTO_malloc (mem.c:304)
==15003==    by 0x43B9FA7: ERR_get_state (err.c:1001)
==15003==    by 0x43BA81D: ERR_clear_error (err.c:707)
==15003==    by 0x43A8DAF: ENGINE_load_dynamic (eng_dyn.c:298)
==15003==    by 0x43A71F6: ENGINE_load_builtin_engines (eng_all.c:71)
==15003==    by 0x40829A6: Curl_ossl_init (ssluse.c:548)
==15003==    by 0x4092A5F: Curl_ssl_init (sslgen.c:167)
==15003==    by 0x408BD11: curl_global_init (easy.c:204)
==15003==    by 0x804C2D6: usno_query (usnoquery.c:359)
==15003==    by 0x804941D: main (usnoquery_main.c:81)

So the failure to call ENGINE_cleanup maybe is curls fault.

But ENGINE_load_dynamic calling ERR_clear_error is leaking, possibly
not adding things things to the "needs to be freed" list?




More information about the Pkg-openssl-devel mailing list