Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 823
    • Issues 823
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 30
    • Merge requests 30
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #2373
Closed
Open
Created Jan 10, 2011 by Roger Dingledine@armaReporter

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 (fd8f7991).

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 an admin enable hashed storage. More information
Assignee
Assign to
Time tracking