Description of problem: DESCRIPTION CLONE03 Check for equality of pid of child & return value of clone(2) This test opens a pipe and with the proper options loops. It executes the clone02 testcase without SIGCHILD. It compares Child pid to pid value returned from clone02 execution, if equalTest passed else test failed. We noticed that changing the child stack size caused the tests to pass. We ran a modified version of these tests so that we could print out more relevant data. Here is the output in the log file before and after we changed the child stack size. > clone03.c: > > Before: > [root@tmobile clone]# ./clone03 > clone03 1 FAIL : Test failed - test return = 2500 > clone03 2 FAIL : Test failed - child pid = 0 > [root@tmobile clone]# > > After increasing CHILD_STACK_SIZE to 2048 > > [root@tmobile clone]# ./clone03 > clone03 1 PASS : Test passed > clone03 2 PASS : Test passed - test return = 32222 > clone03 3 PASS : Test passed - child pid = 32222 DESCRIPTION CLONE06 Test to verify inheritance of environment variables by child. This tests when given the proper options loops and executes the clone testscase. It compares child TERM value with Parent TERM value, if same Test Passed else Test failed. Here is the output in the log file before and after we changed the child stack size. > clone06.c: > > Before > [root@tmobile clone]# ./clone06 > clone06 1 FAIL : Test Failed > clone06 2 FAIL : Test failed - parent env = xterm > clone06 3 FAIL : Test failed - buff= T 20 > > After changing CHILD_STACK_SIZE to 4096 from 1024: > > [root@tmobile clone]# ./clone06 > clone06 1 PASS : Test Passed > clone06 2 PASS : Test passed - parent env = xterm > clone06 3 PASS : Test passed - buff= xterm Version-Release number of selected component (if applicable): kernel-2.4.21-1.1931.2.399.entsmp How reproducible: Everytime Steps to Reproduce: 1.run clone03 and clone06 2. 3. Actual results: Expected results: Additional info:
This problem was due to an old setting for CHILD_STACK_SIZE (1024) in the LTP source code that was too low for the tests being performed. The latest version of LTP (20051005) now uses a CHILD_STACK_SIZE value of 16384, which enables these clone tests to succeed. Closing as NOTABUG.