[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #7029 [Tor]: some stuff doesn't get freed at exit



#7029: some stuff doesn't get freed at exit
------------------------+---------------------------------------------------
 Reporter:  arma        |          Owner:                    
     Type:  defect      |         Status:  needs_review      
 Priority:  normal      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor         |        Version:                    
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by arma):

 For future reference, here are two more I haven't resolved yet:
 {{{
 ==1852== 1 bytes in 1 blocks are still reachable in loss record 1 of 30
 ==1852==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
 ==1852==    by 0x2125E7: _tor_malloc (util.c:144)
 ==1852==    by 0x1EF679: configure_nameservers (dns.c:1206)
 ==1852==    by 0x11A24E: do_main_loop (main.c:1861)
 ==1852==    by 0x11A79C: tor_main (main.c:2668)
 ==1852==    by 0x5EFCC8C: (below main) (libc-start.c:228)
 }}}

 (Is there a proper way to free the result of an evdns_base_new()?)

 {{{
 ==1852== 40 bytes in 1 blocks are still reachable in loss record 13 of 30
 ==1852==    at 0x4C244E8: malloc (vg_replace_malloc.c:236)
 ==1852==    by 0x2125E7: _tor_malloc (util.c:144)
 ==1852==    by 0x213C25: _tor_malloc_zero (util.c:170)
 ==1852==    by 0x1FEE3E: tor_mutex_new (compat.c:2645)
 ==1852==    by 0x202049: get_n_open_sockets (compat.c:915)
 ==1852==    by 0x1B083D: retry_all_listeners (connection.c:894)
 ==1852==    by 0x1A1B70: options_act_reversible (config.c:954)
 ==1852==    by 0x1A1CFF: set_options (config.c:550)
 ==1852==    by 0x1A5DC8: options_init_from_string (config.c:3636)
 ==1852==    by 0x1A62AA: options_init_from_torrc (config.c:3493)
 ==1852==    by 0x1190AB: tor_init (main.c:2347)
 ==1852==    by 0x11A782: tor_main (main.c:2661)
 }}}

 (Looks like we'll want to add a compat_free_all() or the like, so we can
 reach into compat and free the mutex when we're done.)

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7029#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs