===> sigfpe ==== divzero ==== cc -O0 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/sigfpe/sigfpe.c cc -o sigfpe sigfpe.o ./sigfpe -z ==== oflow ==== ./sigfpe -o ===> siginfo_addr ==== run-regress-siginfo_addr ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/siginfo_addr/siginfo_addr.c cc -o siginfo_addr siginfo_addr.o ./siginfo_addr ===> fpsig ==== run-regress-fpsig ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/fpsig/fpsig.c cc -o fpsig fpsig.o ./fpsig ===> earlysig ==== run-regress-earlysig ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/earlysig/earlysig.c cc -o earlysig earlysig.o ./earlysig ===> cansig ==== t-cansig ==== cc -O2 -pipe -Wall -MD -MP -c /home/src/regress/sys/kern/signal/cansig/cansig.c cc -o cansig cansig.o doas -n ./cansig ===> sigaltstack_fork ==== run-regress-sigaltstack_fork ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/sigaltstack_fork/sigaltstack_fork.c cc -o sigaltstack_fork sigaltstack_fork.o ./sigaltstack_fork ===> sig-stop ==== run-regress-sig-stop ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/sig-stop/sig-stop.c cc -o sig-stop sig-stop.o ./sig-stop ===> siginfo-fault ==== run-regress-siginfo-fault ==== cc -Wall -MD -MP -c /home/src/regress/sys/kern/signal/siginfo-fault/siginfo-fault.c cc -o siginfo-fault siginfo-fault.o ./siginfo-fault ===> sigio ==== run-regress-pipe_badpgid ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/signal/sigio/main.c cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/signal/sigio/sigio_common.c cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/signal/sigio/sigio_pipe.c cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/signal/sigio/sigio_socket.c cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/signal/sigio/util.c cc -o sigio_test main.o sigio_common.o sigio_pipe.o sigio_socket.o util.o ./sigio_test pipe_badpgid ==== run-regress-pipe_badsession ==== ./sigio_test pipe_badsession ==== run-regress-pipe_cansigio ==== doas -n ./sigio_test pipe_cansigio ==== run-regress-pipe_getown ==== ./sigio_test pipe_getown ==== run-regress-pipe_read ==== ./sigio_test pipe_read ==== run-regress-socket_badpgid ==== ./sigio_test socket_badpgid ==== run-regress-socket_badsession ==== ./sigio_test socket_badsession ==== run-regress-socket_cansigio ==== doas -n ./sigio_test socket_cansigio ==== run-regress-socket_getown ==== ./sigio_test socket_getown ==== run-regress-socket_inherit ==== ./sigio_test socket_inherit ==== run-regress-socket_read ==== ./sigio_test socket_read ==== run-regress-socket_write ==== ./sigio_test socket_write ===> signal-stress ==== run-regress-signal-stress ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/signal-stress/signal-stress.c cc -o signal-stress signal-stress.o ./signal-stress ===> sigpending ==== run-regress-sigpending ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/sigpending/sigpending.c cc -o sigpending sigpending.o ./sigpending ===> sigprof ==== run-regress-sigprof ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/sigprof/sigprof.c cc -o sigprof sigprof.o -lpthread ./sigprof total profiling signals: 402 minimum signals per thread: 50 main thread - 1 thread 1 - 65 thread 2 - 129 thread 3 - 134 thread 4 - 74 ===> sigpthread ==== run-block-thread-3-unblock-0 ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/src/regress/sys/kern/signal/sigpthread/sigpthread.c /home/src/regress/sys/kern/signal/sigpthread/sigpthread.c:199:8: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] ret = (int)val; ^~~~~~~~ /home/src/regress/sys/kern/signal/sigpthread/sigpthread.c:205:9: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] ret = (int)val; ^~~~~~~~ /home/src/regress/sys/kern/signal/sigpthread/sigpthread.c:247:13: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] int tnum = (int)arg; ^~~~~~~~ 3 warnings generated. cc -o sigpthread sigpthread.o -lpthread # block signal # run 3 threads # kill process # suspend threads until signaled # unblock thread 0 # handle signal ./sigpthread -b -t 3 -u 0 >out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal [0-2]' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 0' out signal 0 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 1' out signal 1 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 2' out signal 2 test `wc -l out grep 'signal 23' out signal 23 test `wc -l out grep 'signal 42' out signal 42 test `wc -l sigsuspend ==== run-regress-sigsuspend ==== cc -O2 -pipe -MD -MP -c /home/src/regress/sys/kern/signal/sigsuspend/sigsuspend.c cc -o sigsuspend sigsuspend.o ./sigsuspend