[tor-bugs] #31735 [Core Tor/Tor]: Exit and join all threads, before destroying any mutexes in the main thread

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Sep 24 02:44:25 UTC 2019


#31735: Exit and join all threads, before destroying any mutexes in the main thread
--------------------------+----------------------------------
 Reporter:  teor          |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: unspecified
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  diagnostics   |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+----------------------------------

Comment (by teor):

 For pthreads and winthreads, we need to:
 * for each thread:
   * release any mutexes held by the thread
   * exit the thread
   * join the thread
 * for each global mutex:
   * destroy the mutex

 Then we can re-initialise tor.

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


More information about the tor-bugs mailing list