[tor-bugs] #23081 [Core Tor/Tor]: Tor relay crashes at consensus_diff_queue_diff_work() with assertion in_main_thread() failed

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Aug 2 11:15:12 UTC 2017


#23081: Tor relay crashes at consensus_diff_queue_diff_work() with assertion
in_main_thread() failed
--------------------------+------------------------------------
 Reporter:  Vort          |          Owner:
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |        Version:  Tor: 0.3.1.5-alpha
 Severity:  Major         |     Resolution:
 Keywords:  tor-relay     |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:  Sponsor4-can
--------------------------+------------------------------------

Comment (by Sebastian):

 First it would be good to learn whether set_main_thread has been called.
 So I guess a patch along the lines of
 {{{
 --- a/src/common/compat_threads.c
 +++ b/src/common/compat_threads.c
 @@ -90,6 +90,7 @@ set_main_thread(void)
  int
  in_main_thread(void)
  {
 +  tor_assert(main_thread_id != -1);
    return main_thread_id == tor_get_thread_id();
  }

 }}}
 could help debug this

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


More information about the tor-bugs mailing list