[tor-bugs] #32884 [Core Tor/Tor]: set_main_thread() not called on second initialization with pthreads

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 6 14:22:32 UTC 2020


#32884: set_main_thread() not called on second initialization with pthreads
-------------------------+-------------------------------------------------
     Reporter:  nickm    |      Owner:  nickm
         Type:  defect   |     Status:  assigned
     Priority:  Medium   |  Milestone:  Tor: 0.4.3.x-final
    Component:  Core     |    Version:
  Tor/Tor                |   Keywords:  035-backport 040-backport?
     Severity:  Normal   |  041-backport 042-backport
Actual Points:           |  Parent ID:  #32883
       Points:  .1       |   Reviewer:
      Sponsor:           |
-------------------------+-------------------------------------------------
 The windows thread initialization function calls set_main_thread
 unconditionally, but the pthreads thread initialization function only
 calls it the first time we're initializing Tor.  That can lead to trouble
 with embedding.

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


More information about the tor-bugs mailing list