[tor-bugs] #32864 [Community/Relays]: Reproduce Arthur's exit failures and then contact or badexit the relays

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 20 16:46:30 UTC 2020

#32864: Reproduce Arthur's exit failures and then contact or badexit the relays
 Reporter:  arma                               |          Owner:  gk
     Type:  enhancement                        |         Status:  assigned
 Priority:  Medium                             |      Milestone:
Component:  Community/Relays                   |        Version:
 Severity:  Normal                             |     Resolution:
 Keywords:  network-health, GeorgKoppen202001  |  Actual Points:
Parent ID:                                     |         Points:
 Reviewer:                                     |        Sponsor:
Changes (by gk):

 * cc: arthuredelstein (added)


 So, I started looking into this but I don't even get a successful run so
 far (I tried twice). After a while, during the third round in the exit
 relay loop the script is throwing exceptions and breaks:
 main function encountered error
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
 501, in errback
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
 568, in _startRunCallbacks
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
 654, in _runCallbacks
     current.result = callback(current.result, *args, **kw)
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
 1475, in gotResult
     _inlineCallbacks(r, g, status)
 --- <exception caught here> ---
   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
 1416, in _inlineCallbacks
     result = result.throwExceptionIntoGenerator(g)
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line
 491, in throwExceptionIntoGenerator
     return g.throw(self.type, self.value, self.tb)
   File "/home/gk/exit-dns/tor_dns_survey/relay_perf.py", line 125, in
     exit_results = await test_relays(reactor, state, socks, [guard1],
 exits, 10, bareIP)
   File "/home/gk/exit-dns/tor_dns_survey/relay_perf.py", line 105, in
     result = await time_two_hop(reactor, state, socks, relay, exit_node,
   File "/home/gk/exit-dns/tor_dns_survey/relay_perf.py", line 76, in
     circuit_results = await build_two_hop_circuit(state, guard, exit_node)
   File "/home/gk/exit-dns/tor_dns_survey/relay_perf.py", line 54, in
     return { "circuit" : circuit,
 builtins.UnboundLocalError: local variable 'circuit' referenced before
 I wonder how Arthur is running that and whether he encountered similar
 bugs. This is with Tor, Python 3.7.3, python3-txtorcon 18.3.0-1 on
 a Debian 10 system.

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

More information about the tor-bugs mailing list