[tor-bugs] #14048 [Stem]: from stem.util.connection import get_connections (v1.3) sometimes throws an exception

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 31 19:08:02 UTC 2014


#14048: from stem.util.connection import get_connections (v1.3) sometimes throws an
exception
------------------------+--------------------
     Reporter:  toralf  |      Owner:  atagar
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:
    Component:  Stem    |    Version:
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------

Comment (by toralf):

 Here you go :
 {{{
 tfoerste at t44 ~/devel/ooni-probe $ ssh tfoerste at tor-relay "sudo grep -e
 '^#ExitPolicy' /etc/tor/torrc; sudo /home/tfoerste/info.py; echo $?"
 #ExitPolicy reject *:* # comment this line to allow exit
 #ExitPolicy accept *:22         # ssh
  Tor version is 0.2.5.10 (git-42b42605f8d8eac2)
  read 54044 MiB, wrote 55492. MiB
  platform supports connection resolution via: proc, netstat, lsof, ss
 (picked: proc)
  1 instance(s) of tor: 2223 (picked: 2223)
  6662 relays known
 Traceback (most recent call last):
   File "/home/tfoerste/info.py", line 92, in <module>
     main()
   File "/home/tfoerste/info.py", line 48, in main
     connections = get_connections(resolver, process_pid = pid,
 process_name = 'tor')
   File "/usr/lib64/python2.7/site-packages/stem/util/connection.py", line
 177, in get_connections
     return [Connection(*conn) for conn in
 stem.util.proc.connections(process_pid)]
   File "/usr/lib64/python2.7/site-packages/stem/util/proc.py", line 372,
 in connections
     raise exc
 IOError: unable to determine file descriptor destination:
 /proc/2223/fd/1339
 0
 }}}

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


More information about the tor-bugs mailing list