Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #13291

Closed (moved)
(moved)
Open
Created Sep 29, 2014 by teor@teor

Fix spawn test failures due to race condition with process exiting early

When a spawned process forks, fails, then exits very quickly, (this typically occurs when exec fails), there is a race condition between the SIGCHLD handler updating the process_handle's fields, and checking the process status in those fields. The update can occur before or after the tests check the process status.

This causes intermittent failures in the test spawn_background_fail(), typically when the machine is under load. I've created a patch that checks whether the process is running or not running (rather than just checking if it is running) to avoid this issue.

I'll submit a github branch once I have the bug number for the changes file name.

tor version: 2.6.0-alpha-dev

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking