#100 fork12 isn't completed

System Calls
closed-invalid
mreed
Testcases (113)
5
2007-04-25
2006-10-11
No

24806 ? S 0:00 | \_ /bin/sh ./runltp ...
24912 ? S 0:00 | \_ pan ...
27538 ? S 0:01 | \_ fork12
12451 ? S 0:00 | \_ fork12
..and this hangs forever.

Problem:
Race condition in child>
pid1 = fork()) {
if (pid1 == 0) { /* child */
pause(); //process
start sleep after kill and signal, whitch must wake up
it, is already processed.
exit(0);
}
kill(0, SIG_QUIT);
while (wait(&waitstatus) > 0); //this
loop did not come to the end.

Discussion

  • Robert Williamson

    • assigned_to: nobody --> mreed10
     
  • Subrata Modak

    Subrata Modak - 2007-04-25
    • status: open --> closed-invalid
     
  • Subrata Modak

    Subrata Modak - 2007-04-25

    Logged In: YES
    user_id=1737361
    Originator: NO

    The process gets stuck at line 93 of "testcases/kernel/syscalls/fork/fork12.c" may be because of resource crunch reasons. The messages at lines 103 and 104 are not displayed, which means that it does not get stuck at line 108 [while (wait(&waitstatus) > 0);]

     

Log in to post a comment.