[tor-bugs] #21415 [Core Tor/Tor]: tor_bug_occurred_: Bug: src/or/entrynodes.c:1845: select_entry_guard_for_circuit: Non-fatal assertion !(!guard_has_descriptor(guard)) failed.

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 2 12:04:50 UTC 2017


#21415: tor_bug_occurred_: Bug: src/or/entrynodes.c:1845:
select_entry_guard_for_circuit: Non-fatal assertion
!(!guard_has_descriptor(guard)) failed.
-----------------------------+------------------------------------
 Reporter:  cypherpunks      |          Owner:  nickm
     Type:  defect           |         Status:  reopened
 Priority:  Medium           |      Milestone:  Tor: 0.3.0.x-final
Component:  Core Tor/Tor     |        Version:  Tor: 0.3.0.3-alpha
 Severity:  Normal           |     Resolution:
 Keywords:  review-group-16  |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:  asn              |        Sponsor:
-----------------------------+------------------------------------

Comment (by asn):

 Some recon notes: So it seems like the `bridges+ipv6-min` test is super
 funky. The client is configured with the two bridges below:
 {{{
 Bridge 127.0.0.1:5003
 Bridge [::1]:5003
 }}}
 which is actually the same bridge, but it creates two entry guard entries.

 Then we try to fetch the descriptor of the `[::1]` bridge but it gets
 assigned to the `127.0.0.1` bridge after all:
 {{{
 Mar 02 13:33:55.000 [info] connection_dir_client_reached_eof(): Received
 server info (size 2232) from server '::1:5003'
 Mar 02 13:33:55.000 [info] router_load_routers_from_string(): 1 elements
 to add
 Mar 02 13:33:55.000 [notice] Bridge 'test003br' has both an IPv4 and an
 IPv6 address.  Will prefer using its IPv4 address (127.0.0.1:5003) based
 on the configured Bridge address.
 }}}

 Then after that, we drop any further descriptors for that bridge
 regardless of `127.0.0.1` or `[::1]`:
 {{{
 [info] connection_dir_client_reached_eof(): Received server info (size
 2232) from server '127.0.0.1:5003'
 [info] router_load_routers_from_string(): 1 elements to add
 [info] router_add_to_routerlist(): Dropping descriptor that we already
 have for router $E033927EA8B93CC81235B185206C667358983BDA~test003br at
 127.0.0.1
 ...
 [info] connection_dir_client_reached_eof(): Received server info (size
 2232) from server '::1:5003'
 [info] router_load_routers_from_string(): 1 elements to add
 [info] router_add_to_routerlist(): Dropping descriptor that we already
 have for router $E033927EA8B93CC81235B185206C667358983BDA~test003br at
 127.0.0.1
 }}}

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


More information about the tor-bugs mailing list