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

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jun 19 13:54:37 UTC 2018


#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         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+--------------------
 As pastly reported in https://github.com/pastly/simple-bw-
 scanner/issues/198,
 stem giving this traceback:

 `File "/home/pastly/src/simple-bw-scanner/venv-editable/lib/python3.5
 /site-packages/stem/exit_policy.py", line 285, in can_exit_to`

 `if not self.is_exiting_allowed():KeyError:
 (<stem.exit_policy.MicroExitPolicy object at 0x7f8de6438ba8>,)`

 Apparently caused by  a Python bug with `lru_cache`.

 pastly is already trying to find out which Python versions fail, to use
 `stem`'s `lru_cache` for those ones.

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


More information about the tor-bugs mailing list