[tor-bugs] #28869 [- Select a component]: KeyboardInterrupt will cause a callback error and does not close the thread pool cleanly

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Dec 17 07:42:39 UTC 2018


#28869: KeyboardInterrupt will cause a callback error and does not close the thread
pool cleanly
--------------------------------------+-------------------------------
     Reporter:  juga                  |      Owner:  (none)
         Type:  defect                |     Status:  new
     Priority:  Medium                |  Milestone:  sbws: 1.0.x-final
    Component:  - Select a component  |    Version:  sbws: 1.0.2
     Severity:  Normal                |   Keywords:
Actual Points:                        |  Parent ID:  #28663
       Points:                        |   Reviewer:
      Sponsor:                        |
--------------------------------------+-------------------------------
 KeyboardInterrupt is being catched in main
 (https://github.com/torproject/sbws/blob/ee64d76df54ceb3a3c9e1e2a797fd70d68bb0035/sbws/core/scanner.py#L394),
 it's not possible from there to call pool.close() so that the pool
 terminates the threads.
 What is more, it'll result in a callback error to the pool.
 When the operator wants to cancel sbws, it should close all the threads,
 don't call callback error, and don't show all the exceptions that the
 threads hit not being able to finish.

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


More information about the tor-bugs mailing list