Opened 8 years ago

Closed 2 years ago

#3798 closed defect (wontfix)

BwAuthority does not exit cleanly; Traceback in _eventLoop at exit

Reported by: aagbsn Owned by:
Priority: Medium Milestone:
Component: Core Tor/Torflow Version:
Severity: Blocker Keywords:
Cc: aagbsn@… Actual Points:
Parent ID: #13630 Points:
Reviewer: Sponsor:

Description

DEBUG[Sat Aug 20 09:50:44 2011]:Child Process Exiting...
DEBUG[Sat Aug 20 09:50:44 2011]:57.7647199631 CIRC 3353 CLOSED
$65D13A2FE519E4184F90858D0B1A59E8F0A0D0F4,$AB96FC229C5EC5C068CA3118C91AA496BD36F660
REASON=FINISHED
DEBUG[Sat Aug 20 09:50:44 2011]:Ignoring circ 3353
DEBUG[Sat Aug 20 09:50:44 2011]:57.7212309837 CIRC 3355 EXTENDED
$2CD3B9EECBAB095F2A2F0E91464000C662FCB908,$2E3A31FE90450733458CD308346929D518045E7D
DEBUG[Sat Aug 20 09:50:44 2011]:Ignoring circ 3355
DEBUG[Sat Aug 20 09:50:44 2011]:57.7217121124 CIRC 3355 BUILT
$2CD3B9EECBAB095F2A2F0E91464000C662FCB908,$2E3A31FE90450733458CD308346929D518045E7D
DEBUG[Sat Aug 20 09:50:44 2011]:Ignoring circ 3355
DEBUG[Sat Aug 20 09:50:44 2011]:Ignoring stream: 4817
Exception in thread EventLoop (most likely raised during interpreter shutdown):
Traceback (most recent call last):

File "/usr/lib/python2.5/threading.py", line 486, in bootstrap_inner
File "/usr/lib/python2.5/threading.py", line 446, in run
File "../../TorCtl/TorCtl.py", line 715, in _eventLoop
File "../../TorCtl/TorUtil.py", line 360, in plog
File "/usr/lib/python2.5/logging/
init.py", line 1056, in log
File "/usr/lib/python2.5/logging/
init.py", line 1100, in _log
File "/usr/lib/python2.5/logging/
init.py", line 1080, in makeRecord
File "/usr/lib/python2.5/logging/
init.py", line 258, in init

<type 'exceptions.TypeError'>: 'NoneType' object is not callable
INFO[Sat Aug 20 09:50:44 2011]:Beginning time loop
DEBUG[Sat Aug 20 09:50:45 2011]:Child Process Spawning...

Child Tickets

Change History (5)

comment:1 Changed 8 years ago by aagbsn

Status: newneeds_review

Fix: properly close the TorCtl connection before exiting
https://github.com/aagbsn/torflow/commit/897d7c3c7cc252da7bce4a71c2a277edd2ef9ba9

comment:2 Changed 8 years ago by aagbsn

Update: https://github.com/aagbsn/torflow/commit/09f232bffa3cf51db21c53c81e544ad977bcb335

Since TorCtl.Connection.close() doesn't block, we should call TorCtl.Connection.block_until_close()

comment:3 in reply to:  2 Changed 8 years ago by aagbsn

Cc: aagbsn@… added

Replying to aagbsn:

Update: https://github.com/aagbsn/torflow/commit/09f232bffa3cf51db21c53c81e544ad977bcb335

Since TorCtl.Connection.close() doesn't block, we should call TorCtl.Connection.block_until_close()

This is actually wrong.

However, TorCtl.Connection.close() is not safe to call, because occasionally a thread will not die and prevent bwauthority_child.py from exiting; thereby stalling the scanner indefinitely. See: #3834

This fix should -not- be used until TorCtl.Connection.close() is safe to call.

comment:4 Changed 8 years ago by mikeperry

Owner: aagbsn deleted
Status: needs_reviewassigned

comment:5 Changed 2 years ago by teor

Parent ID: #13630
Resolution: wontfix
Severity: Blocker
Status: assignedclosed

This is a bugfix that will be obsoleted by the new bwauth replacement project, see #13630.

Note: See TracTickets for help on using tickets.