[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #26412 [Core Tor/Stem]: KeyError in can_exit_to caused by lru_cache



#26412: KeyError in can_exit_to caused by lru_cache
---------------------------+------------------------
 Reporter:  juga           |          Owner:  atagar
     Type:  defect         |         Status:  new
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:  tor-bwauth     |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------

Comment (by juga):

 In case it is useful, i paste traceback lines including the lines where
 the exception is raised in stem (python 3.5.3):

 {{{
   File "/path/simple-bw-scanner/sbws/lib/relaylist.py", line 120, in
 can_exit_to
     return self.exit_policy.can_exit_to(host, port)
   File "/path/.virtualenvs/simplebwscanner3/lib/python3.5/site-
 packages/stem-1.6.0.dev0-py3.5.egg/stem/exit_policy.py", line 294, in
 can_exit_to
     if rule.is_match(address, port, strict):
   File "/path/.virtualenvs/simplebwscanner3/lib/python3.5/site-
 packages/stem-1.6.0.dev0-py3.5.egg/stem/exit_policy.py", line 783, in
 is_match
     comparison_addr_bin &= self._get_mask_bin()
 KeyError: (<stem.exit_policy.ExitPolicyRule object at 0x7f3743f70a90>,)
 [2018-07-14 14:55:23,007] [sbws.core.scanner] [ERROR] Unhandled exception
 caught while measuring Unnamed: <class 'KeyError'>
 (<stem.exit_policy.ExitPolicyRule object at 0x7f3743f70a90>,
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26412#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs