#70 fork12 race condition

System Calls
closed-fixed
nobody
Testcases (113)
5
2007-04-25
2005-06-16
Carl van Schaik
No

It appears that fork12 has a race condition.

The test starts as many children as possible then sends
them a signal to SIG_QUIT. If a child has not yet
completed returning from the fork and called pause()
before the parent sends the SIG_QUIT, the SIG_QUIT is
caught in the child's signal handler (and ignored). The
child then calls pause() which will never return since
the signal was missed.
The parent then calls wait() and the test does not
complete.

--
Carl

Discussion

  • Subrata Modak
    Subrata Modak
    2007-04-25

    Logged In: YES
    user_id=1737361
    Originator: NO

    Introduced a sleep(3) to make sure that all children are at pause() when SIGQUIT is sent to them.
    Thanks--
    Subrata

     
  • Subrata Modak
    Subrata Modak
    2007-04-25

    • status: open --> closed-fixed