Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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 kaoutsis, 16 years ago

Component: - GeneralSystem/libroot.so
Summary: Sometimes the posix test fork_3-1 fails.the posix test fork_3-1 always fails.

hrev25003, now always fails

comment:2 by kaoutsis, 16 years ago

Summary: the posix test fork_3-1 always fails.Sometimes the posix test fork_3-1 fails.

hrev25481, back to 'Sometimes' :-)

comment:3 by bonefish, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev25568.

in reply to:  3 comment:4 by kaoutsis, 16 years ago

Replying to bonefish:

Fixed in hrev25568.

Thanks.

Note: See TracTickets for help on using tickets.