[tor-bugs] #21027 [Core Tor/Tor]: tor_bug_occurred_(): Bug: src/or/entrynodes.c:816: entry_guard_add_to_sample_impl: Non-fatal assertion !(have_sampled_guard_with_id(gs, rsa_id_digest)) failed. (on Tor 0.3.0.0-alpha-dev 8b75261b6dc341de)

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 13 20:11:46 UTC 2017


#21027: tor_bug_occurred_(): Bug: src/or/entrynodes.c:816:
entry_guard_add_to_sample_impl: Non-fatal assertion
!(have_sampled_guard_with_id(gs, rsa_id_digest)) failed. (on Tor 0.3.0.0
-alpha-dev 8b75261b6dc341de)
-------------------------------------------------+-------------------------
 Reporter:  asn                                  |          Owner:  nickm
     Type:  defect                               |         Status:
                                                 |  assigned
 Priority:  High                                 |      Milestone:  Tor:
                                                 |  0.3.0.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tor-guard, tor-guards-revamp,        |  Actual Points:
  regression                                     |
Parent ID:                                       |         Points:  1
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by nickm):

 Hm, still a bit confusing.  Let's think.

 We're reaching entry_guard_add_to_sample_impl() with an RSA id that's
 already a sampled guard in gs.

 So therefore (assuming that we're handling bridges right [1]) we're
 calling entry_guard_add_bridge_to_sample() with a bridge whose
 bridge_get_rsa_id_digest() is giving us an id we already have.

 That, in turn, implies that select_and_add_guard_item_for_sample() chose
 that bridge.

 And '''that''' in turn implies that get_eligible_guards() gave it to us as
 a possibility.

 But that implies that get_sampled_guard_for_bridge gave us NULL for that
 guard, which shouldn't be possible if we already know a bridge with that
 ID.

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


More information about the tor-bugs mailing list