[tor-bugs] #10735 [Stem]: stem crashes python

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jan 25 22:23:01 UTC 2014


#10735: stem crashes python
----------------------------+-------------------------------
 Reporter:  grimpen         |          Owner:  atagar
     Type:  defect          |         Status:  new
 Priority:  major           |      Milestone:
Component:  Stem            |        Version:  Tor: 0.2.4.19
 Keywords:  python crashes  |  Actual Points:
Parent ID:                  |         Points:
----------------------------+-------------------------------
 setup: python 3.2 ; cygwin64

 python crashes with a stackdump.
 the install trace and stackdump are attached.

 this code (the for statement is never reached):

 #! /usr/bin/env python3

 import urllib.request
 from stem import Signal
 from stem.control import Controller

 with Controller.from_port(port=9051) as controller:
   controller.signal(Signal.NEWNYM)

 for nn in range(1, 3):
   print("case %02d" % nn)
   proxy_support = urllib.request.ProxyHandler({"socks5" :
 "127.0.0.1:9150"})
   opener = urllib.request.build_opener(proxy_support)
   urllib.request.install_opener(opener)
   print(urllib.request.urlopen("http://www.ifconfig.me/ip").read())

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


More information about the tor-bugs mailing list