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
  • #20987

Closed (moved)
Open
Opened Dec 15, 2016 by Nick Mathewson@nickm🐙

Memory leak in rend_config_services()

options/validate__rend: [forking] 
=================================================================
==15407==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f41e571be50 in malloc (/lib64/libasan.so.3+0xc6e50)
    #1 0x559322a5a86a in tor_malloc_ src/common/util.c:150
    #2 0x559322a32725 in smartlist_new__real src/common/container.c:34
    #3 0x559322911336 in rend_config_services src/or/rendservice.c:562
    #4 0x5593226fea9a in options_validate src/or/config.c:4012
    #5 0x559322505170 in test_options_validate__rend src/test/test_options.c:2741
    #6 0x559322626cf8 in testcase_run_bare_ src/ext/tinytest.c:106
    #7 0x5593226271f6 in testcase_run_forked_ src/ext/tinytest.c:190
    #8 0x5593226271f6 in testcase_run_one src/ext/tinytest.c:248
    #9 0x5593226286e5 in tinytest_main src/ext/tinytest.c:435
    #10 0x5593222de004 in main src/test/testing_common.c:313
    #11 0x7f41e2cef400 in __libc_start_main (/lib64/libc.so.6+0x20400)

Indirect leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7f41e571be50 in malloc (/lib64/libasan.so.3+0xc6e50)
    #1 0x559322a5a86a in tor_malloc_ src/common/util.c:150
    #2 0x559322a5a911 in tor_malloc_zero_ src/common/util.c:178
    #3 0x559322a327c5 in smartlist_new__real src/common/container.c:37
    #4 0x559322911336 in rend_config_services src/or/rendservice.c:562
    #5 0x5593226fea9a in options_validate src/or/config.c:4012
    #6 0x559322505170 in test_options_validate__rend src/test/test_options.c:2741
    #7 0x559322626cf8 in testcase_run_bare_ src/ext/tinytest.c:106
    #8 0x5593226271f6 in testcase_run_forked_ src/ext/tinytest.c:190
    #9 0x5593226271f6 in testcase_run_one src/ext/tinytest.c:248
    #10 0x5593226286e5 in tinytest_main src/ext/tinytest.c:435
    #11 0x5593222de004 in main src/test/testing_common.c:313
    #12 0x7f41e2cef400 in __libc_start_main (/lib64/libc.so.6+0x20400)

SUMMARY: AddressSanitizer: 144 byte(s) leaked in 2 allocation(s).
OK
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.3.0.x-final
Milestone
Tor: 0.3.0.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#20987