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

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



#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@t44 ~/devel/ooni-probe $ ssh tfoerste@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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs