Hello,
sorry, mem leaks again.
On SunOs 5.6, openssl 0.9.5a :
In a multithreaded context, I have memory leaks
reported when my application is compiled with CRYPTO_MDEBUG_ALL (see attached
file). I have 3 questions on this:
1- am I not chasing leaks coming from the debug
memory functions?
2- thread support: do we have to explicitly call
CRYPTO_set_locking_callback and CRYPTO_set_id_callback in a multithreaded
context? It is said so in the "threads" manpage, but they seem to be used only
in test programs (mttest.c, th-lock.c)
3- I am calling
ERR_remove_state(0) at the end of each thread; any other cleanup function to
call?
Thanks...
|
[16:40:21] 3210 file=asn1_lib.c, line=368, thread=7220, number=16, address=0049 12C8 [16:41:11] 8645 file=mem_dbg.c, line=389, thread=7220, number=32, address=00344 830 [16:41:11] 8402 file=stack.c, line=119, thread=7220, number=16, address=0049E32 0 [16:40:21] 3454 file=mem_dbg.c, line=389, thread=7220, number=32, address=004A6 450 [16:41:11] 8340 file=asn1_lib.c, line=368, thread=7220, number=16, address=0048 F3B8 [16:41:11] 8432 file=asn1_lib.c, line=368, thread=7220, number=16, address=0048 F430 [16:41:32] 10475 file=bn_lib.c, line=328, thread=7220, number=140, address=004A7 420 [16:41:11] 8557 file=lhash.c, line=193, thread=7220, number=12, address=0048F40 0 [16:41:31] 10181 file=bn_lib.c, line=328, thread=7220, number=264, address=004A7 7A8 [16:40:36] 5318 file=lhash.c, line=193, thread=7220, number=12, address=0049A36 8 [16:41:11] 8452 file=asn1_lib.c, line=368, thread=7220, number=16, address=0049 A320 [16:40:21] 3117 file=stack.c, line=119, thread=7220, number=32, address=0049216 0 [16:41:11] 8647 file=mem_dbg.c, line=389, thread=7220, number=32, address=0049C 970 [16:41:11] 8334 file=x_name.c, line=233, thread=7220, number=16, address=0048F2 80 [16:41:31] 10183 file=bn_lib.c, line=328, thread=7220, number=264, address=004A7 9C8 [16:40:21] 3403 file=asn1_lib.c, line=338, thread=7220, number=48, address=0049 BD88 [16:41:11] 8624 file=mem_dbg.c, line=389, thread=7220, number=32, address=0049B 558 [16:41:11] 8270 file=x_pubkey.c, line=101, thread=7220, number=12, address=0049 D008 [16:41:11] 8656 file=mem_dbg.c, line=389, thread=7220, number=32, address=00492 3E0 [16:41:11] 8480 file=x_attrib.c, line=147, thread=7220, number=12, address=0049 8510 [16:41:11] 8404 file=p7_signi.c, line=121, thread=7220, number=32, address=0049 4E60 [16:41:31] 10178 file=bn_lib.c, line=328, thread=7220, number=264, address=004A7 478 [16:41:11] 8329 file=x_name.c, line=233, thread=7220, number=16, address=004984 08 [16:40:16] 2724 file=lhash.c, line=193, thread=7220, number=12, address=0049845 0 [16:41:11] 8459 file=x_attrib.c, line=147, thread=7220, number=12, address=0048 6EE0 [16:41:11] 8426 file=x_name.c, line=233, thread=7220, number=16, address=004984 20 [16:41:11] 8556 file=bn_lib.c, line=328, thread=7220, number=28, address=004876 80 [16:40:16] 2817 file=buffer.c, line=67, thread=7220, number=12, address=00486E0 8 [16:41:11] 8496 file=bn_lib.c, line=328, thread=7220, number=12, address=0049C0 A0 [16:41:31] 10179 file=bn_lib.c, line=328, thread=7220, number=264, address=004A7 588 [16:41:11] 8633 file=mem_dbg.c, line=389, thread=7220, number=32, address=00479 7F8 [16:41:11] 8655 file=mem_dbg.c, line=389, thread=7220, number=32, address=00492 5E8 [16:40:16] 2683 file=bn_lib.c, line=328, thread=7220, number=32, address=004958 E0 [16:40:21] 3220 file=asn1_lib.c, line=368, thread=7220, number=16, address=0049 8918 [16:41:11] 8352 file=stack.c, line=119, thread=7220, number=32, address=0049243 0 [16:40:21] 3465 file=mem_dbg.c, line=389, thread=7220, number=32, address=00344 8A8 [16:40:21] 3476 file=mem_dbg.c, line=389, thread=7220, number=32, address=00487 C20 [16:41:11] 8301 file=x_name.c, line=233, thread=7220, number=16, address=00486D F0 [16:41:11] 8247 file=bn_lib.c, line=328, thread=7220, number=28, address=004997 30 [16:40:21] 3452 file=mem_dbg.c, line=389, thread=7220, number=32, address=00344 4C0 [16:41:31] 10180 file=bn_lib.c, line=328, thread=7220, number=264, address=004A7 698 [16:41:11] 8391 file=bn_lib.c, line=328, thread=7220, number=28, address=0049AE 28 [16:41:31] 10155 file=bn_lib.c, line=328, thread=7220, number=12, address=00486C D0 [16:41:11] 8335 file=asn1_lib.c, line=368, thread=7220, number=16, address=0049 8210 [16:41:11] 8611 file=mem_dbg.c, line=389, thread=7220, number=32, address=0048E 988 [16:41:11] 8281 file=x_name.c, line=233, thread=7220, number=16, address=00486C 70 [16:40:16] 2713 file=bn_lib.c, line=328, thread=7220, number=32, address=004956 88 [16:40:21] 3424 file=bio_lib.c, line=73, thread=7220, number=64, address=004A7D 18 [16:41:31] 10158 file=bn_lib.c, line=328, thread=7220, number=12, address=00486B E0 [16:41:31] 10182 file=bn_lib.c, line=328, thread=7220, number=264, address=004A7 8B8 [16:40:21] 3384 file=buffer.c, line=67, thread=7220, number=12, address=00486B8 0 [16:40:21] 3218 file=a_bytes.c, line=222, thread=7220, number=150, address=0048 8D88 [16:41:11] 8631 file=mem_dbg.c, line=389, thread=7220, number=32, address=0033E 9E8 [16:41:11] 8625 file=mem_dbg.c, line=389, thread=7220, number=32, address=0048E 820 [16:41:31] 10161 file=bn_lib.c, line=328, thread=7220, number=12, address=00479D D8 [16:40:36] 5306 file=bn_lib.c, line=328, thread=7220, number=276, address=004A9 690 [16:41:11] 8282 file=asn1_lib.c, line=368, thread=7220, number=16, address=0049 A6F8 [16:40:21] 3430 file=buffer.c, line=110, thread=7220, number=1368, address=004A 72A8 [16:41:11] 8354 file=asn1_lib.c, line=368, thread=7220, number=16, address=0049 C118 [16:40:21] 3469 file=mem_dbg.c, line=389, thread=7220, number=32, address=00495 430 [16:41:11] 8461 file=stack.c, line=119, thread=7220, number=16, address=0048F5C 8 [16:41:11] 8617 file=mem_dbg.c, line=389, thread=7220, number=32, address=0049C 8D0 4738 bytes leaked in 62 chunks