[tor-bugs] #32525 [Core Tor/Stem]: problem with authenticate

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Nov 17 07:32:14 UTC 2019


#32525: problem with authenticate
--------------------------+-------------------------------
 Reporter:  wiri          |          Owner:  atagar
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Component:  Core Tor/Stem
  Version:  Tor: 0.4.1.6  |       Severity:  Normal
 Keywords:  python 3.8    |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+-------------------------------
 I think Python 3.8 broke stem authentication :

 Python 3.8.0 (default, Oct 23 2019, 18:51:26)
 [GCC 9.2.0] on linux
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import stem
 >>> from stem.control import Controller
 >>> controller = Controller.from_port(port=9051)
 >>> controller.authenticate()
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3.8/site-packages/stem/control.py", line 1100, in
 authenticate
     stem.connection.authenticate(self, *args, **kwargs)
   File "/usr/lib/python3.8/site-packages/stem/connection.py", line 592, in
 authenticate
     controller._post_authentication()
   File "/usr/lib/python3.8/site-packages/stem/control.py", line 3902, in
 _post_authentication
     owning_pid = self.get_conf('__OwningControllerProcess', None)
   File "/usr/lib/python3.8/site-packages/stem/control.py", line 2170, in
 get_conf
     entries = self.get_conf_map(param, default, multiple)
   File "/usr/lib/python3.8/site-packages/stem/control.py", line 2273, in
 get_conf_map
     for key in reply:
 RuntimeError: dictionary keys changed during iteration
 >>> controller.authenticate()

 (the second authenticate() work !)

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


More information about the tor-bugs mailing list