[tor-bugs] #13291 [Tor]: Fix spawn test failures due to race condition with process exiting early

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Sep 29 11:57:13 UTC 2014


#13291: Fix spawn test failures due to race condition with process exiting early
------------------------+------------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  needs_review
     Priority:  normal  |  Milestone:
    Component:  Tor     |    Version:  Tor: unspecified
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+------------------------------
Changes (by teor):

 * status:  new => needs_review


Comment:

 I've committed a fix to github at:

 Branch: test-spawn-fail-race-condition
 Repository: ​​https://github.com/teor2345/tor.git
 Commit: 9b56f4c5922a33ab80a6e46626c8448599836cd5

 tor tests now run without occasionally (due to the race condition) failing
 when comparing process status in spawn_background_fail() in test_util.c.
 This typically happens under load (like a simultaneous compile).

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


More information about the tor-bugs mailing list