[tor-bugs] #4447 [TorDNSEL/TorBEL]: Torbel stops receiving NEWCONSENSUS events

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Nov 16 03:49:22 UTC 2011


#4447: Torbel stops receiving NEWCONSENSUS events
-----------------------------+----------------------------------------------
 Reporter:  Sebastian        |          Owner:     
     Type:  defect           |         Status:  new
 Priority:  normal           |      Milestone:     
Component:  TorDNSEL/TorBEL  |        Version:     
 Keywords:                   |         Parent:     
   Points:                   |   Actualpoints:     
-----------------------------+----------------------------------------------

Comment(by aagbsn):

 Could this issue be related to the Traceback you got?

 {{{
 Traceback (most recent call last):
   File "/home/torbel/torflow/TorCtl/TorCtl.py", line 713, in _eventLoop
     self._handleFn(timestamp, reply)
   File "/home/torbel/torflow/TorCtl/TorCtl.py", line 1338, in _handle1
     self._map1.get(event.event_name, self.unknown_event)(event)
   File "/home/torbel/torbel/controller.py", line 781, in
 stream_status_event
     event.strm_id, router.current_test.circ_id)
 AttributeError: 'NoneType' object has no attribute 'circ_id'
 }}}

 The TorCtl thread will exit; and should take TorBEL down with it. See:
 TorCtl/TorCtl._err() and os.kill(os.getpid()). But perhaps this hack
 doesn't work when TorBEL daemonize() is used. The signal handler did not
 log a SIGTERM.

 In order to poke at this a bit further I am trying the following (without
 daemonizing):

 {{{
 diff --git a/controller.py b/controller.py
 index fe6dbf7..e0767f5 100644
 --- a/controller.py
 +++ b/controller.py
 @@ -788,6 +788,14 @@ class Controller(TorCtl.EventHandler):
                                router.nickname, event.target_port)
                      # DO something!

 +                except AttributeError:
 +                    # Lets log this and hope it helps us figure out what
 is going on
 +                    if not router.current_test:
 +                        log.error("(%s, %d): current_test was None!",
 +                              router.nickname, event.target_port)
 +
 +                       import pdb; pdb.set_trace()
 +
                  # Tor closed on us.
                  except TorCtl.TorCtlClosed:
                      return
 }}}

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


More information about the tor-bugs mailing list