[tor-bugs] #20938 [Core Tor/Tor]: Test: memory leak in single onion service test

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 9 17:54:31 UTC 2016


#20938: Test: memory leak in single onion service test
------------------------------+--------------------------------
     Reporter:  dgoulet       |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.2.9.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 Found by the expensive hardening:

 {{{
 hs/single_onion_poisoning_create_dir_none: [forking]
 =================================================================
 ==29309==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 102 byte(s) in 2 object(s) allocated from:
     #0 0x7f93a6775eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-
 gnu/libasan.so.3+0xc6eb0)
     #1 0x7f93a41dcbf9 in __strdup (/lib/x86_64-linux-
 gnu/libc.so.6+0x8cbf9)

 SUMMARY: AddressSanitizer: 102 byte(s) leaked in 2 allocation(s).
 OK
 hs/single_onion_poisoning_create_dir1: [forking]
 =================================================================
 ==29311==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 102 byte(s) in 2 object(s) allocated from:
     #0 0x7f93a6775eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-
 gnu/libasan.so.3+0xc6eb0)
     #1 0x7f93a41dcbf9 in __strdup (/lib/x86_64-linux-
 gnu/libc.so.6+0x8cbf9)

 SUMMARY: AddressSanitizer: 102 byte(s) leaked in 2 allocation(s).
 OK
 hs/single_onion_poisoning_create_dir2: [forking]
 =================================================================
 ==29313==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 102 byte(s) in 2 object(s) allocated from:
     #0 0x7f93a6775eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-
 gnu/libasan.so.3+0xc6eb0)
     #1 0x7f93a41dcbf9 in __strdup (/lib/x86_64-linux-
 gnu/libc.so.6+0x8cbf9)

 SUMMARY: AddressSanitizer: 102 byte(s) leaked in 2 allocation(s).
 OK
 hs/single_onion_poisoning_create_dir_both: [forking]
 =================================================================
 ==29315==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 102 byte(s) in 2 object(s) allocated from:
     #0 0x7f93a6775eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-
 gnu/libasan.so.3+0xc6eb0)
     #1 0x7f93a41dcbf9 in __strdup (/lib/x86_64-linux-
 gnu/libc.so.6+0x8cbf9)

 SUMMARY: AddressSanitizer: 102 byte(s) leaked in 2 allocation(s).
 OK
 }}}

 Patch coming up.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20938>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list