Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #2373

Closed (moved)
Open
Opened Jan 10, 2011 by Roger Dingledine@arma

tor memory not freed at exit

==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.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.2.x-final
Milestone
Tor: 0.2.2.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#2373