Opened 8 years ago

Closed 4 years ago

Last modified 9 months ago

#4505 closed defect (wontfix)

Torbel gets new stream event but no test currently running for that router

Reported by: Sebastian Owned by:
Priority: Medium Milestone:
Component: Core Tor/TorDNSEL Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Found this traceback:

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'

We should learn what's up here, why do we not have a current_test for the router? Is this a normal race condition, and should we handle it by just closing the stream and moving on? Are we leaking a circuit here?

Child Tickets

Change History (5)

comment:1 Changed 8 years ago by Sebastian

Branch bug4505 ( https://gitweb.torproject.org/sebastian/torbel.git/commitdiff/4513cdee25f0fa8d531e52fa11af97ffc20d44dc ) has a fix for the traceback. That's not a fix for this bug yet, but at least some progress so we don't crash.

comment:2 Changed 8 years ago by aagbsn

I encountered what I believe to be the same bug, but it manifested slightly differently. It also looks like there are 2 Tracebacks in different threads.

Traceback (most recent call last):
  File "/home/torbel/tor/TorCtl/TorCtl.py", line 712, in _eventLoop
    self._handleFn(timestamp, reply)
  File "/home/torbel/tor/TorCtl/TorCtl.py", line 1337, in _handle1
    self._map1.get(event.event_name, self.unknown_event)(event)
  File "/home/torbel/tor/torbel/controller.py", line 782, in stream_status_event
    event.strm_id, router.current_test.circ_id)
AttributeError: 'NoneType' object has no attribute 'circ_id'
Unhandled Error
Traceback (most recent call last):
  File "/home/torbel/.virtualenvs/torbel/lib/python2.6/site-packages/twisted/python/log.py", line 84, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/home/torbel/.virtualenvs/torbel/lib/python2.6/site-packages/twisted/python/log.py", line 69, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/home/torbel/.virtualenvs/torbel/lib/python2.6/site-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/torbel/.virtualenvs/torbel/lib/python2.6/site-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/home/torbel/.virtualenvs/torbel/lib/python2.6/site-packages/twisted/internet/epollreactor.py", line 217, in _doReadOrWrite
    why = selectable.doRead()
  File "/home/torbel/.virtualenvs/torbel/lib/python2.6/site-packages/twisted/internet/tcp.py", line 460, in doRead
    rval = self.protocol.dataReceived(data)
  File "/home/torbel/tor/torbel/network.py", line 23, in dataReceived
    self.factory.handleTestData(self.transport, self.data)
  File "/home/torbel/tor/torbel/network.py", line 84, in handleTestData
    self.controller.passed(router, host.port)
  File "/home/torbel/tor/torbel/controller.py", line 348, in passed
    self.end_test(router)
  File "/home/torbel/tor/torbel/controller.py", line 327, in end_test
    self.test_cleanup(router)
  File "/home/torbel/tor/torbel/controller.py", line 411, in test_cleanup
    self.conn.close_circuit(test.circ_id, reason = "Test complete")
  File "/home/torbel/tor/TorCtl/TorCtl.py", line 1201, in close_circuit
    %(circid, reason, "".join(flags)))
  File "/home/torbel/tor/TorCtl/TorCtl.py", line 862, in sendAndRecv
    lines = self._sendImpl(self._doSend, msg)
  File "/home/torbel/tor/TorCtl/TorCtl.py", line 729, in _sendImpl
    raise self._closedEx
exceptions.AttributeError: 'NoneType' object has no attribute 'circ_id'
[Nov 17 13:15:14] torbel.network DEBUGVV  Connection from 69.73.223.177:5190 lost: reason [Failure instance: Traceback (failure with no frames): <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'circ_id'
].

comment:3 Changed 8 years ago by Sebastian

updated the branch with another exception fix

comment:4 Changed 4 years ago by arlolra

Resolution: wontfix
Severity: Normal
Status: newclosed

TorBEL is unmaintained.

comment:5 Changed 9 months ago by Jhon_constantine

Internet explorer is the most useful program in windows 10 pc here you can do browsing surfing and many more things so just from here http://internetexplorerwindows10.com you will get helps to open internet explorer in windows 10 pc in easiest way.

Note: See TracTickets for help on using tickets.