[tor-bugs] #2373 [Tor Relay]: tor memory not freed at exit

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Jan 10 20:38:14 UTC 2011


#2373: tor memory not freed at exit
-----------------------+----------------------------------------------------
 Reporter:  arma       |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:     
Component:  Tor Relay  |     Version:     
 Keywords:             |      Parent:     
-----------------------+----------------------------------------------------
 {{{
 ==6759== 131,072 bytes in 1 blocks are still reachable in loss record 13
 of 16
 ==6759==    at 0x4C22741: realloc (vg_replace_malloc.c:429)
 ==6759==    by 0x4C4037: _tor_realloc (util.c:183)
 ==6759==    by 0x4BD05B: smartlist_add (container.c:71)
 ==6759==    by 0x429B61: rep_hist_buffer_stats_add_circ (rephist.c:2271)
 ==6759==    by 0x462491: circuit_free (circuitlist.c:497)
 ==6759==    by 0x462784: circuit_close_all_marked (circuitlist.c:298)
 ==6759==    by 0x40B73F: second_elapsed_callback (main.c:1381)
 ==6759==    by 0x52C6EC0: event_base_loop (in
 /usr/lib/libevent-1.3e.so.1.0.3)
 ==6759==    by 0x409590: do_main_loop (main.c:1750)
 ==6759==    by 0x409894: tor_main (main.c:2433)
 ==6759==    by 0x5F021A5: (below main) (libc-start.c:222)

 ==6759== 305,540 bytes in 12,543 blocks are still reachable in loss record
 14 of 16
 ==6759==    at 0x4C2260E: malloc (vg_replace_malloc.c:207)
 ==6759==    by 0x4C40F7: _tor_malloc (util.c:138)
 ==6759==    by 0x4B9B4A: smartlist_create (container.c:34)
 ==6759==    by 0x4BE7A4: init_logging (log.c:602)
 ==6759==    by 0x409815: tor_main (main.c:2410)
 ==6759==    by 0x5F021A5: (below main) (libc-start.c:222)
 }}}

 From running valgrind on moria1 running master (fd8f7991e47d02cc).

 I mention the first entry because it's a lot of bytes, and the second
 because it's a lot of allocs.

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


More information about the tor-bugs mailing list