[tor-bugs] #9639 [Tor]: massive memory leak when starting tor in the absence of /var/lib/tor
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Sep 2 04:48:04 UTC 2013
#9639: massive memory leak when starting tor in the absence of /var/lib/tor
------------------------+---------------------------------
Reporter: mr-4 | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor | Version: Tor: 0.2.4.14-alpha
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
------------------------+---------------------------------
Comment (by arma):
Here's the main culprit:
{{{
==27595== 101,085,224 (15,646,880 direct, 85,438,344 indirect) bytes in
102,940 blocks are definitely lost in loss record 58 of 58
==27595== at 0x4C28BED: malloc (in /usr/lib/valgrind
/vgpreload_memcheck-amd64-linux.so)
==27595== by 0x222FE7: tor_malloc_ (util.c:143)
==27595== by 0x2230E5: tor_malloc_zero_ (util.c:169)
==27595== by 0x16E6E1: microdescs_parse_from_string
(routerparse.c:4284)
==27595== by 0x121CB4: microdescs_add_to_cache (microdesc.c:159)
==27595== by 0x1E797E: connection_dir_client_reached_eof
(directory.c:2107)
==27595== by 0x1E7F68: connection_dir_reached_eof (directory.c:2356)
==27595== by 0x1C2406: connection_handle_read (connection.c:4122)
==27595== by 0x11DFE0: conn_read_callback (main.c:718)
==27595== by 0x52D8CCB: event_base_loop (in /usr/lib/x86_64-linux-
gnu/libevent-2.0.so.5.1.7)
==27595== by 0x11E974: do_main_loop (main.c:1987)
==27595== by 0x12015D: tor_main (main.c:2703)
}}}
I'm running release-0.2.4 (git commit 20d4356c3).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9639#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list