[tor-bugs] #13390 [DocTor]: If there are no bandwidth authorities, doctor crashes

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Oct 11 21:42:20 UTC 2014


#13390: If there are no bandwidth authorities, doctor crashes
--------------------+------------------------
 Reporter:  tom     |          Owner:  atagar
     Type:  defect  |         Status:  new
 Priority:  normal  |      Milestone:
Component:  DocTor  |        Version:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
--------------------+------------------------
 If there are no bandwidth authorities (or presumably, no bandwidth
 authority votes on anything), doctor crashes with the following:

 {{{
 Traceback (most recent call last):
   File "./consensus_health_checker.py", line 746, in <module>
     main()
   File "./consensus_health_checker.py", line 243, in main
     issues += run_checks(consensuses, votes)
   File "./consensus_health_checker.py", line 325, in run_checks
     issues = checker(latest_consensus, consensuses, votes)
   File "./consensus_health_checker.py", line 678, in
 bandwidth_authorities_in_sync
     average = sum(measurement_counts.values()) / len(measurement_counts)
 ZeroDivisionError: integer division or modulo by zero
 }}}

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


More information about the tor-bugs mailing list