START sys/kern/fork-exit 2023-12-05T19:59:29Z ==== run-fork1-exit ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Wdeclaration-after-statement -MD -MP -c /usr/src/regress/sys/kern/fork-exit/fork-exit.c cc -o fork-exit fork-exit.o -lpthread # test forking a single child ulimit -p 500 -n 1000; ./fork-exit ==== run-fork-exit ==== # fork 300 children and kill them simultaneously as process group ulimit -p 500 -n 1000; ./fork-exit -p 300 ==== run-fork-exec-exit ==== # fork 300 children, exec sleep programs, and kill process group ulimit -p 500 -n 1000; ./fork-exit -e -p 300 ==== run-fork1-thread1 ==== # fork a single child and create one thread ulimit -p 500 -n 1000; ./fork-exit -t 1 ==== run-fork1-thread ==== # fork a single child and create 1000 threads ulimit -p 500 -n 1000; ./fork-exit -t 1000 ==== run-fork-thread ==== # fork 30 children each with 30 threads and kill process group ulimit -p 500 -n 1000; ./fork-exit -p 30 -t 30 ==== run-fork1-heap ==== # allocate 400 MB of heap memory ulimit -p 500 -n 1000; ./fork-exit -h 100000 fork-exit: child 74577 signal 11 *** Error 1 in . (Makefile:60 'run-fork1-heap') FAILED ==== run-fork-heap ==== # allocate 400 MB of heap memory in processes ulimit -p 500 -n 1000; ./fork-exit -p 100 -h 1000 fork-exit: child 83248 signal 11 *** Error 1 in . (Makefile:65 'run-fork-heap') FAILED ==== run-fork1-thread1-heap ==== # allocate 400 MB of heap memory in single child and one thread ulimit -p 500 -n 1000; ./fork-exit -t 1 -h 100000 fork-exit: child 77021 signal 11 *** Error 1 in . (Makefile:70 'run-fork1-thread1-heap') FAILED ==== run-fork-thread-heap ==== # allocate 400 MB of heap memory in threads ulimit -p 500 -n 1000; ./fork-exit -p 10 -t 100 -h 100 fork-exit: child 31370 signal 11 *** Error 1 in . (Makefile:75 'run-fork-thread-heap') FAILED ==== run-fork1-stack ==== # allocate 32 MB of stack memory ulimit -p 500 -n 1000; ulimit -s 32768; ./fork-exit -s 8000 fork-exit: child 72934 signal 11 *** Error 1 in . (Makefile:80 'run-fork1-stack') FAILED ==== run-fork-stack ==== # allocate 400 MB of stack memory in processes ulimit -p 500 -n 1000; ulimit -s 32768; ./fork-exit -p 100 -s 1000 ==== run-fork1-thread1-stack ==== # allocate 400 MB of stack memory in single child and one thread ulimit -p 500 -n 1000; ./fork-exit -t 1 -s 100000 fork-exit: child 7920 signal 11 *** Error 1 in . (Makefile:90 'run-fork1-thread1-stack') FAILED ==== run-fork-thread-stack ==== # allocate 400 MB of stack memory in threads ulimit -p 500 -n 1000; ./fork-exit -p 10 -t 100 -s 100 fork-exit: child 11742 signal 11 *** Error 1 in . (Makefile:95 'run-fork-thread-stack') FAILED ==== cleanup ==== # check that all processes have been terminated and waited for ! pkill -u `id -u` fork-exit FAIL sys/kern/fork-exit *** Error 1 in . (Makefile:60 'run-fork1-heap'), *** Error 1 in . (Makefile:65 'run-fork-heap'), *** Error 1 in . (Makefile:70 'run-fork1-thread1-heap'), *** Error 1 in . (Makefile:75 'run-fork-thread-heap'), *** Error 1 in . (Makefile:80 'run-fork1-stack'), *** Error 1 in . (Makefile:90 'run-fork1-thread1-stack'), *** Error 1 in . (Makefile:95 'run-fork-thread-stack')