[tor-bugs] #4252 [Tor Relay]: Proposal 176 (?) memory leaks

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Oct 17 19:44:27 UTC 2011


#4252: Proposal 176 (?) memory leaks
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:     
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:     
Component:  Tor Relay  |        Version:     
 Keywords:             |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------
 Running git master on moria1 in valgrind, we have:
 {{{
 ==29415== 18,880 (352 direct, 18,528 indirect) bytes in 22 blocks are
 definitely lost in loss record 164 of 206
 ==29415==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
 ==29415==    by 0x4D3A07: _tor_malloc (util.c:144)
 ==29415==    by 0x4D6496: _crypto_new_pk_env_rsa (crypto.c:330)
 ==29415==    by 0x4DE8C4: tor_tls_cert_get_key (tortls.c:883)
 ==29415==    by 0x46EB2B: command_process_authenticate_cell
 (command.c:1179)
 ==29415==    by 0x48FE1C: connection_or_process_cells_from_inbuf
 (connection_or.c:1799)
 ==29415==    by 0x484328: connection_handle_read (connection.c:2701)
 ==29415==    by 0x40B8F5: conn_read_callback (main.c:674)
 ==29415==    by 0x52C9343: event_base_loop (in
 /usr/lib/libevent-1.4.so.2.1.3)
 ==29415==    by 0x409990: do_main_loop (main.c:1889)
 ==29415==    by 0x409CCC: tor_main (main.c:2570)
 ==29415==    by 0x5F10C4C: (below main) (libc-start.c:228)
 }}}

 {{{
 ==29415== 70,002 (4,160 direct, 65,842 indirect) bytes in 26 blocks are
 definitely lost in loss record 171 of 206
 ==29415==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
 ==29415==    by 0x57AC9E1: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x58280BC: ??? (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x582B038: ASN1_item_ex_d2i (in
 /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x582B6D3: ASN1_item_d2i (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x54FE3AB: ssl3_get_server_certificate (in
 /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x54FF7A7: ssl3_connect (in /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x5506112: ssl23_connect (in /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x4E0F26: tor_tls_handshake (tortls.c:1697)
 ==29415==    by 0x490D36: connection_tls_continue_handshake
 (connection_or.c:1171)
 ==29415==    by 0x484D5A: connection_handle_write (connection.c:3217)
 ==29415==    by 0x40B765: conn_write_callback (main.c:707)
 }}}

 {{{
 ==29415== 169,601 (10,080 direct, 159,521 indirect) bytes in 63 blocks are
 definitely lost in loss record 172 of 206
 ==29415==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
 ==29415==    by 0x57AC9E1: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x58280BC: ??? (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x582B038: ASN1_item_ex_d2i (in
 /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x582B6D3: ASN1_item_d2i (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x54FE3AB: ssl3_get_server_certificate (in
 /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x54FF7A7: ssl3_connect (in /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x5506112: ssl23_connect (in /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x4E0F26: tor_tls_handshake (tortls.c:1697)
 ==29415==    by 0x490D36: connection_tls_continue_handshake
 (connection_or.c:1171)
 ==29415==    by 0x491107: connection_tls_start_handshake
 (connection_or.c:1128)
 ==29415==    by 0x491219: connection_or_finished_connecting
 (connection_or.c:479
 }}}

 {{{
 ==29415== 265,505,121 (15,748,320 direct, 249,756,801 indirect) bytes in
 98,427 blocks are definitely lost in loss record 206 of 206
 ==29415==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
 ==29415==    by 0x57AC9E1: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x58280BC: ??? (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x582B038: ASN1_item_ex_d2i (in
 /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x582B6D3: ASN1_item_d2i (in /usr/lib/libcrypto.so.0.9.8)
 ==29415==    by 0x54FE3AB: ssl3_get_server_certificate (in
 /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x54FF7A7: ssl3_connect (in /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x5506112: ssl23_connect (in /usr/lib/libssl.so.0.9.8)
 ==29415==    by 0x4E0F26: tor_tls_handshake (tortls.c:1697)
 ==29415==    by 0x490D36: connection_tls_continue_handshake
 (connection_or.c:1171)
 ==29415==    by 0x4844B2: connection_handle_read (connection.c:2786)
 ==29415==    by 0x40B8F5: conn_read_callback (main.c:674)
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4252>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list