[tor-bugs] #7164 [Core Tor/Tor]: microdesc.c:378: Bug: microdesc_free() called, but md was still referenced 1 node(s); held_by_nodes == 1

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 13 22:19:32 UTC 2016


#7164: microdesc.c:378: Bug: microdesc_free() called, but md was still referenced
1 node(s); held_by_nodes == 1
-------------------------------------------------+-------------------------
 Reporter:  jaj123                               |          Owner:
     Type:  defect                               |         Status:  new
 Priority:  High                                 |      Milestone:  Tor:
Component:  Core Tor/Tor                         |  0.2.9.x-final
 Severity:  Normal                               |        Version:  Tor:
 Keywords:  tor-client 025-backport nickm-       |  0.2.4.19
  should-review                                  |     Resolution:
Parent ID:                                       |  Actual Points:
 Reviewer:                                       |         Points:
                                                 |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by nickm):

 Okay.  A consensus arrives, and in directory.c, in
 connection_dir_client_reached_eof, we update the consensus and call
 "update_microdescs_from_networkstatus()", which will eventually update the
 last-listed times.  But before that function updates the last-listed
 times,  it calls get_microdesc_cache().

 '''If get_microdesc_cache() is being called for the first time''', it
 loads the microdescs from disk, and then calls microdesc_cache_clean(). We
 have a new consensus, but we have not yet finished
 `update_microdescs_from_networkstatus`.

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


More information about the tor-bugs mailing list