[openssl-dev] [openssl.org #3658] Memory leak in dtls1_send_server_certificate dtls1_buffer_message

Praveen Kariyanahalli via RT rt at openssl.org
Thu Jan 15 09:24:16 UTC 2015


Seeing the memory leak (process DTLS server) in the latest released 1.01k
version on the server side. Any clue as to how to get this fixed?

Regards
-Praveen Kariyanahalli

==1162== 36,480 (1,920 direct, 34,560 indirect) bytes in 30 blocks are
definitely lost in loss record 119 of 130
==1162==    at 0x4A08219: calloc (vg_replace_malloc.c:623)
==1162==    by 0x4893C7: vip_guard_mem_openssl_alloc (vip_gaurd_mem.c:170)
==1162==    by 0x5BFDC86: default_malloc_ex (mem.c:79)
==1162==    by 0x5BFE33D: CRYPTO_malloc (mem.c:312)
==1162==    by 0x5D24C9D: pitem_new (pqueue.c:73)
==1162==    by 0x595A31F: dtls1_buffer_message (d1_both.c:1267)
==1162==    by 0x5950BBD: dtls1_send_server_certificate (d1_srvr.c:1629)
==1162==    by 0x594E439: dtls1_accept (d1_srvr.c:430)
==1162==    by 0x595D8A4: SSL_accept (ssl_lib.c:934)
==1162==    by 0x5954BBF: dtls1_listen (d1_lib.c:515)
==1162==    by 0x59544DA: dtls1_ctrl (d1_lib.c:271)
==1162==    by 0x595DDDC: SSL_ctrl (ssl_lib.c:1087)
==1162==    by 0x4168B3: vbond_ssl_event_cb (vdaemon.c:3887)
==1162==    by 0x54C2162: event_persist_closure (event.c:1301)
==1162==    by 0x54C2271: event_process_active_single_queue (event.c:1345)
==1162==    by 0x54C2540: event_process_active (event.c:1420)
==1162==    by 0x54C2BA7: event_base_loop (event.c:1621)
==1162==    by 0x41C0B6: vbond_main (vdaemon.c:5428)
==1162==    by 0x41E096: main (vdaemon.c:6017)
==1162==
==1162== LEAK SUMMARY:
==1162==    definitely lost: 4,032 bytes in 68 blocks
==1162==    by 0x4893C7: vip_guard_mem_openssl_alloc (vip_gaurd_mem.c:170)
==1162==    by 0x5BFDC86: default_malloc_ex (mem.c:79)
==1162==    by 0x5BFE33D: CRYPTO_malloc (mem.c:312)
==1162==    by 0x5D24C9D: pitem_new (pqueue.c:73)
==1162==    by 0x595A31F: dtls1_buffer_message (d1_both.c:1267)
==1162==    by 0x5950BBD: dtls1_send_server_certificate (d1_srvr.c:1629)
==1162==    by 0x594E439: dtls1_accept (d1_srvr.c:430)
==1162==    by 0x595D8A4: SSL_accept (ssl_lib.c:934)
==1162==    by 0x5954BBF: dtls1_listen (d1_lib.c:515)
==1162==    by 0x59544DA: dtls1_ctrl (d1_lib.c:271)
==1162==    by 0x595DDDC: SSL_ctrl (ssl_lib.c:1087)
==1162==    by 0x4168B3: vbond_ssl_event_cb (vdaemon.c:3887)
==1162==    by 0x54C2162: event_persist_closure (event.c:1301)
==1162==    by 0x54C2271: event_process_active_single_queue (event.c:1345)
==1162==    by 0x54C2540: event_process_active (event.c:1420)
==1162==    by 0x54C2BA7: event_base_loop (event.c:1621)
==1162==    by 0x41C0B6: vbond_main (vdaemon.c:5428)
==1162==    by 0x41E096: main (vdaemon.c:6017)
==1162==
==1162== LEAK SUMMARY:
==1162==    definitely lost: 4,032 bytes in 68 blocks
==1162==    indirectly lost: 41,024 bytes in 128 blocks
==1162==      possibly lost: 9,160 bytes in 109 blocks
==1162==    still reachable: 1,296,276 bytes in 21,109 blocks
==1162==         suppressed: 0 bytes in 0 blocks
==1162== Reachable blocks (those to which a pointer was found) are not
shown.
==1162== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==1162==
==1162== For counts of detected and suppressed errors, rerun with: -v
==1162== ERROR SUMMARY: 46 errors from 46 contexts (suppressed: 1 from 1)



More information about the openssl-dev mailing list