#1639 closed bug (fixed)
Sometimes the posix test fork_3-1 fails.
Reported by: | kaoutsis | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/libroot.so | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
"Sometimes" means here that if you run the test 5 times, one or two times will failed. In these cases the output is like this:
[14:03:55]Kill returned 0 (0: No error) [14:03:55] .../fork/3-1.c FAILED: Another process with the same PID as the child exists
the particular file is: src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/fork/3-1.c
the chunk of code that is related:
[...] /* Parent joins the child */ ctl = waitpid(child, &status, 0); if (ctl != child) { UNRESOLVED(errno, "Waitpid returned the wrong PID"); } if ((!WIFEXITED(status)) || (WEXITSTATUS(status) != PTS_PASS)) { UNRESOLVED(status, "Child exited abnormally"); } ret = kill(child, 0); if ((ret == 0) || (errno != ESRCH)) { output("Kill returned %d (%d: %s)\n", ret, errno, strerror(errno)); FAILED("Another process with the same PID as the child exists"); } [...]
Change History (4)
comment:1 by , 17 years ago
Component: | - General → System/libroot.so |
---|---|
Summary: | Sometimes the posix test fork_3-1 fails. → the posix test fork_3-1 always fails. |
comment:2 by , 17 years ago
Summary: | the posix test fork_3-1 always fails. → Sometimes the posix test fork_3-1 fails. |
---|
hrev25481, back to 'Sometimes' :-)
follow-up: 4 comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in hrev25568.
Note:
See TracTickets
for help on using tickets.
hrev25003, now always fails