START lib/libpthread 2019-02-11T11:09:26Z ===> barrier cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/barrier"' -I/usr/src/regress/lib/libpthread/barrier/../include -MD -MP -c /usr/src/regress/lib/libpthread/barrier/barrier.c cc -o barrier barrier.o -lpthread ./barrier Thread 0 started Thread 1 started Thread 2 started Thread 3 started Thread 4 started Thread 5 started Thread 6 started Thread 7 started Thread 8 started Thread 9 started ===> blocked_shutdown cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/blocked_shutdown"' -I/usr/src/regress/lib/libpthread/blocked_shutdown/../include -MD -MP -c /usr/src/regress/lib/libpthread/blocked_shutdown/blocked_shutdown.c cc -o blocked_shutdown blocked_shutdown.o -lpthread ./blocked_shutdown ===> cancel cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/cancel"' -I/usr/src/regress/lib/libpthread/cancel/../include -MD -MP -c /usr/src/regress/lib/libpthread/cancel/cancel.c cc -o cancel cancel.o -lutil -lpthread ./cancel you should see this message exactly once (fyi, cancellation of self was instantaneous) early = 0 ===> cancel2 cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/cancel2"' -I/usr/src/regress/lib/libpthread/cancel2/../include -MD -MP -c /usr/src/regress/lib/libpthread/cancel2/cancel2.c cc -o cancel2 cancel2.o -lpthread ./cancel2 trying select trying pselect trying poll trying ppoll ===> cancel_wait cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/cancel_wait"' -I/usr/src/regress/lib/libpthread/cancel_wait/../include -MD -MP -c /usr/src/regress/lib/libpthread/cancel_wait/cancel_wait.c cc -o cancel_wait cancel_wait.o -lpthread ./cancel_wait trying wait trying waitpid trying wait3 trying wait4 ===> close cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/close"' -I/usr/src/regress/lib/libpthread/close/../include -MD -MP -c /usr/src/regress/lib/libpthread/close/close.c cc -o close close.o -lpthread ./close main: connecting to test port with fd 3 main: connected on fd 3 starting child thread child: writing some garbage to fd 3 child: calling select() with fd 3 main: closing fd 3 main: closed child: select() returned -1, errno 9 = Bad file descriptor [correct] ===> close_race cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/close_race"' -I/usr/src/regress/lib/libpthread/close_race/../include -MD -MP -c /usr/src/regress/lib/libpthread/close_race/close_race.c cc -o close_race close_race.o -lpthread ./close_race ===> closefrom cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/closefrom"' -I/usr/src/regress/lib/libpthread/closefrom/../include -MD -MP -c /usr/src/regress/lib/libpthread/closefrom/closefrom.c cc -o closefrom closefrom.o -lpthread ./closefrom closefrom(3) == -1/9 closefrom(3) == -1/9 dummy thread exited with status 0x0 ===> cwd cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/cwd"' -I/usr/src/regress/lib/libpthread/cwd/../include -MD -MP -c /usr/src/regress/lib/libpthread/cwd/cwd.c cc -o cwd cwd.o -lpthread ./cwd getcwd => /usr/obj/regress/lib/libpthread/cwd getwd => /usr/obj/regress/lib/libpthread/cwd ===> dlopen cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/dlopen"' -I/usr/src/regress/lib/libpthread/dlopen/../include -MD -MP -c /usr/src/regress/lib/libpthread/dlopen/dlopen.c cc -o dlopen dlopen.o ./dlopen * * * * * * * * * * * * * * * * * * * * * * * single threaded semop: pass time = 1.008715750 sigsuspend: pass time = 1.009941421 poll: fail time = 0.000027239 r = 1 open_fifo: pass time = 1.007704006 nanosleep: pass time = 1.008979057 flock: pass time = 1.007175714 fcntl(F_SETLKW): pass time = 1.005816642 connect: fail time = 0.000054337 r = -1 errno = 49: Can't assign requested address accept: pass time = 1.008501681 in thread after dlopen(pthread) semop: pass time = 1.009112945 sigsuspend: pass time = 1.009976482 poll: fail time = 0.000008311 r = 1 open_fifo: pass time = 1.007796408 nanosleep: pass time = 1.006157964 flock: pass time = 1.007126964 fcntl(F_SETLKW): pass time = 1.005581831 connect: fail time = 0.000012712 r = -1 errno = 49: Can't assign requested address accept: pass time = 1.008544495 using cancellation semop: pass time = 1.009827018 sigsuspend: pass time = 1.009981162 poll: fail time = 1.009986470 r = 1 open_fifo: pass time = 1.007723073 nanosleep: pass time = 1.008997565 flock: pass time = 1.006905632 fcntl(F_SETLKW): pass time = 1.005263976 connect: fail time = 1.008419895 r = -1 errno = 49: Can't assign requested address accept: pass time = 1.009988286 ===> earlysig cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/earlysig"' -I/usr/src/regress/lib/libpthread/earlysig/../include -MD -MP -c /usr/src/regress/lib/libpthread/earlysig/earlysig.c cc -o earlysig earlysig.o -lpthread ./earlysig ===> errno cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/errno"' -I/usr/src/regress/lib/libpthread/errno/../include -MD -MP -c /usr/src/regress/lib/libpthread/errno/errno.c cc -o errno errno.o -lpthread ./errno X ===> execve cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/execve"' -I/usr/src/regress/lib/libpthread/execve/../include -MD -MP -c /usr/src/regress/lib/libpthread/execve/execve.c cc -o execve execve.o -lpthread ./execve This is the first message IGNORED: stdout is not a tty: this test needs a tty ===> fork cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/fork"' -I/usr/src/regress/lib/libpthread/fork/../include -MD -MP -c /usr/src/regress/lib/libpthread/fork/fork.c cc -o fork fork.o -lpthread ./fork forking from pid 55583 parent = pid 55583 parent ok ===> group cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/group"' -I/usr/src/regress/lib/libpthread/group/../include -MD -MP -c /usr/src/regress/lib/libpthread/group/group.c cc -o group group.o -lpthread ./group gid 0 gid 1 gid 2 gid 3 gid 4 before: wheel:*:0:root,user after: wheel:*:0:root,user before: daemon:*:1:daemon after: daemon:*:1:daemon before: kmem:*:2:root after: kmem:*:2:root before: sys:*:3:root after: sys:*:3:root before: tty:*:4:root after: tty:*:4:root ===> netdb cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/netdb"' -I/usr/src/regress/lib/libpthread/netdb/../include -MD -MP -c /usr/src/regress/lib/libpthread/netdb/netdb.c cc -o netdb netdb.o -lpthread ./netdb getservbyname -> port 23 gethostbyname -> 127.0.0.1 ===> pcap cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pcap"' -I/usr/src/regress/lib/libpthread/pcap/../include -MD -MP -c /usr/src/regress/lib/libpthread/pcap/pcap.c cc -o pcap pcap.o -lpcap -lpthread ./pcap PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.141 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.087 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.062 ms --- 127.0.0.1 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.062/0.097/0.141/0.033 ms ===> poll cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/poll"' -I/usr/src/regress/lib/libpthread/poll/../include -MD -MP -c /usr/src/regress/lib/libpthread/poll/poll.c cc -o poll poll.o -lutil -lpthread ./poll zero p[0]={fd=3, events=< in out > revents=< in out >} null p[1]={fd=4, events=< in out > revents=< in out >} closing zero zero p[0]={fd=3, events=< in out > revents=< nval >} null p[1]={fd=4, events=< in out > revents=< in out >} closing null rpipe p[0]={fd=3, events=< in > revents=< >} wpipe p[1]={fd=4, events=< out > revents=< out >} bg writing to wpipe rpipe p[0]={fd=3, events=< in > revents=< in >} ===> preemption cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/preemption"' -I/usr/src/regress/lib/libpthread/preemption/../include -MD -MP -c /usr/src/regress/lib/libpthread/preemption/preemption.c cc -o preemption preemption.o -lpthread ./preemption yielding: 0 1 2 3 4 5 6 7 8 9 ===> preemption_float cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/preemption_float"' -I/usr/src/regress/lib/libpthread/preemption_float/../include -MD -MP -c /usr/src/regress/lib/libpthread/preemption_float/preemption_float.c cc -o preemption_float preemption_float.o -lm -lpthread ./preemption_float ===> pthread_atfork cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_atfork"' -I/usr/src/regress/lib/libpthread/pthread_atfork/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_atfork/pthread_atfork.c cc -o pthread_atfork pthread_atfork.o -lpthread ./pthread_atfork ===> pthread_cond_timedwait cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_cond_timedwait"' -I/usr/src/regress/lib/libpthread/pthread_cond_timedwait/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_cond_timedwait/pthread_cond_timedwait.c cc -o pthread_cond_timedwait pthread_cond_timedwait.o -lpthread ./pthread_cond_timedwait pthread_cond_timedwait START Got timeout 0 in 5.009178769 seconds Got timeout 1 in 10.019281698 seconds ===> pthread_create cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_create"' -I/usr/src/regress/lib/libpthread/pthread_create/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_create/pthread_create.c cc -o pthread_create pthread_create.o -lpthread ./pthread_create Original thread stack at 0x7f7ffffdbbfc New thread was passed arg address 0xdeadbeef New thread stack at 0xe3ccb029d0c ===> pthread_join cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_join"' -I/usr/src/regress/lib/libpthread/pthread_join/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_join/pthread_join.c cc -o pthread_join pthread_join.o -lpthread ./pthread_join Original thread stack at 0x7f7ffffd9304 New thread 1 stack at 0x2df4ae6a454 New thread 2 stack at 0x2df4ae6a454 ===> pthread_kill cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_kill"' -I/usr/src/regress/lib/libpthread/pthread_kill/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_kill/pthread_kill.c cc -o pthread_kill pthread_kill.o -lpthread ./pthread_kill act_handler: signal 30, siginfo 0x7f7ffffc0150, context 0x7f7ffffc0060 act_handler: signal 30, siginfo 0x1c20999a40, context 0x1c20999950 act_handler: signal 30, siginfo 0x1c1bfc71b0, context 0x1c1bfc70c0 Thread T1 woke up Thread T2 woke up ===> pthread_mutex cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_mutex"' -I/usr/src/regress/lib/libpthread/pthread_mutex/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_mutex/pthread_mutex.c cc -o pthread_mutex pthread_mutex.o -lpthread ./pthread_mutex test_mutex_static() test_nocontention_lock() test_nocontention_trylock() test_contention_lock() test_mutex_fast() test_nocontention_lock() test_nocontention_trylock() test_contention_lock() test_mutex_debug() test_nocontention_lock() test_nocontention_trylock() test_contention_lock() test_debug_double_lock() test_debug_double_unlock() test_mutex_recursive() test_mutex_recursive_lock() test_mutex_recursive_trylock() test_mutex_normal() test_nocontention_lock() test_nocontention_trylock() test_contention_lock() ===> pthread_once The fix for this bug has been backed out. https://marc.info/?l=openbsd-cvs&m=150983604531467&w=2 Wait until guenther@ has fixed the binutils problem with the samba port. DISABLED ===> pthread_rwlock cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_rwlock"' -I/usr/src/regress/lib/libpthread/pthread_rwlock/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_rwlock/pthread_rwlock.c cc -o pthread_rwlock pthread_rwlock.o -lpthread ./pthread_rwlock reader 0 locked, state = 1 reader 1 locked, state = 2 reader 0 woken, state = 2 reader 3 locked, state = 3 reader 0 woken, state = 3 reader 1 woken, state = 3 reader 4 locked, state = 4 reader 1 woken, state = 4 reader 0 woken, state = 4 reader 3 woken, state = 4 writer started, state = 4 reader 2 locked, state = 5 reader 3 woken, state = 5 reader 4 woken, state = 5 reader 5 locked, state = 6 reader 4 woken, state = 6 reader 2 woken, state = 6 reader 3 woken, state = 6 reader 1 woken, state = 6 writer woken, state = 6 writer starting reader 4 woken, state = 7 reader 4 unlocked reader 2 woken, state = 7 reader 2 unlocked reader 1 woken, state = 7 reader 1 unlocked reader 5 woken, state = 7 reader 5 unlocked reader 3 woken, state = 7 reader 3 unlocked reader 0 woken, state = 7 reader 0 unlocked writer locked reader 1 woken, state = 8 reader 4 woken, state = 8 reader 2 woken, state = 8 reader 0 woken, state = 9 reader 3 woken, state = 9 reader 2 woken, state = 9 reader 5 woken, state = 9 reader 1 woken, state = 9 writer unlocking reader 2 woken, state = 0 reader 2 trying again (1) reader 2 locked again (1) writer exiting reader 3 woken, state = 1 reader 3 trying again (2) reader 3 locked again (2) reader 2 woken, state = 2 reader 1 woken, state = 2 reader 1 trying again (3) reader 1 locked again (3) reader 5 woken, state = 3 reader 5 trying again (4) reader 5 locked again (4) reader 4 woken, state = 4 reader 4 trying again (5) reader 4 locked again (5) reader 5 woken, state = 5 reader 1 woken, state = 5 reader 3 woken, state = 5 reader 0 woken, state = 5 reader 0 trying again (6) reader 0 locked again (6) reader 5 woken, state = 6 reader 0 exiting reader 2 woken, state = 6 reader 5 exiting reader 2 exiting reader 4 woken, state = 6 reader 4 exiting reader 3 woken, state = 6 reader 3 exiting reader 1 woken, state = 6 reader 1 exiting ===> pthread_specific cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/pthread_specific"' -I/usr/src/regress/lib/libpthread/pthread_specific/../include -MD -MP -c /usr/src/regress/lib/libpthread/pthread_specific/pthread_specific.c cc -o pthread_specific pthread_specific.o -lpthread ./pthread_specific ................................................................................................................................ ===> readdir cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/readdir"' -I/usr/src/regress/lib/libpthread/readdir/../include -MD -MP -c /usr/src/regress/lib/libpthread/readdir/readdir.c cc -o readdir readdir.o -lpthread ./readdir ===> restart ===> restart/accept cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/accept/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/accept"' -I/usr/src/regress/lib/libpthread/restart/accept/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/accept/accept.c cc -o accept accept.o -lpthread ./accept ===> restart/connect cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/connect/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/connect"' -I/usr/src/regress/lib/libpthread/restart/connect/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/connect/connect.c cc -o connect connect.o -lpthread ./connect ===> restart/kevent cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/kevent/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/kevent"' -I/usr/src/regress/lib/libpthread/restart/kevent/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/kevent/kevent.c cc -o kevent kevent.o -lpthread ./kevent ===> restart/read cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/read/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/read"' -I/usr/src/regress/lib/libpthread/restart/read/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/read/read.c cc -o read read.o -lpthread ./read ===> restart/readv cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/readv/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/readv"' -I/usr/src/regress/lib/libpthread/restart/readv/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/readv/readv.c cc -o readv readv.o -lpthread ./readv ===> restart/recvfrom cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/recvfrom/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/recvfrom"' -I/usr/src/regress/lib/libpthread/restart/recvfrom/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/recvfrom/recvfrom.c cc -o recvfrom recvfrom.o -lpthread ./recvfrom ===> restart/recvmsg cc -O2 -pipe -I/usr/src/regress/lib/libpthread/restart/recvmsg/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/restart/recvmsg"' -I/usr/src/regress/lib/libpthread/restart/recvmsg/../include -MD -MP -c /usr/src/regress/lib/libpthread/restart/recvmsg/recvmsg.c cc -o recvmsg recvmsg.o -lpthread ./recvmsg ===> select cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/select"' -I/usr/src/regress/lib/libpthread/select/../include -MD -MP -c /usr/src/regress/lib/libpthread/select/select.c cc -o select select.o -lpthread ./select .....................................................select returned 1 read 4: `foo ' last read was -1, errno = 35 Resource temporarily unavailable select returned 1 last read was 0, errno = 0 success read finished ===> semaphore ===> semaphore/sem_destroy cc -O2 -pipe -I/usr/src/regress/lib/libpthread/semaphore/sem_destroy/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/semaphore/sem_destroy"' -I/usr/src/regress/lib/libpthread/semaphore/sem_destroy/../include -MD -MP -c /usr/src/regress/lib/libpthread/semaphore/sem_destroy/sem_destroy.c cc -o sem_destroy sem_destroy.o -lpthread ./sem_destroy ===> semaphore/sem_getvalue cc -O2 -pipe -I/usr/src/regress/lib/libpthread/semaphore/sem_getvalue/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/semaphore/sem_getvalue"' -I/usr/src/regress/lib/libpthread/semaphore/sem_getvalue/../include -MD -MP -c /usr/src/regress/lib/libpthread/semaphore/sem_getvalue/sem_getvalue.c cc -o sem_getvalue sem_getvalue.o -lpthread ./sem_getvalue ===> semaphore/sem_trywait cc -O2 -pipe -I/usr/src/regress/lib/libpthread/semaphore/sem_trywait/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/semaphore/sem_trywait"' -I/usr/src/regress/lib/libpthread/semaphore/sem_trywait/../include -MD -MP -c /usr/src/regress/lib/libpthread/semaphore/sem_trywait/sem_trywait.c cc -o sem_trywait sem_trywait.o -lpthread ./sem_trywait ===> semaphore/sem_wait cc -O2 -pipe -I/usr/src/regress/lib/libpthread/semaphore/sem_wait/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/semaphore/sem_wait"' -I/usr/src/regress/lib/libpthread/semaphore/sem_wait/../include -MD -MP -c /usr/src/regress/lib/libpthread/semaphore/sem_wait/sem_wait.c cc -o sem_wait sem_wait.o -lpthread ./sem_wait sem_destroy on semaphore with waiters! sending sig got sig posting expect: sem_destroy on semaphore with waiters! ===> semaphore/sem_timedwait cc -O2 -pipe -I/usr/src/regress/lib/libpthread/semaphore/sem_timedwait/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/semaphore/sem_timedwait"' -I/usr/src/regress/lib/libpthread/semaphore/sem_timedwait/../include -MD -MP -c /usr/src/regress/lib/libpthread/semaphore/sem_timedwait/sem_timedwait.c cc -o sem_timedwait sem_timedwait.o -lpthread ./sem_timedwait sem_destroy on semaphore with waiters! sending sig got sig posting expect: sem_destroy on semaphore with waiters! ===> setjmp cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/setjmp"' -I/usr/src/regress/lib/libpthread/setjmp/../include -MD -MP -c /usr/src/regress/lib/libpthread/setjmp/setjmp.c cc -o setjmp setjmp.o -lpthread ./setjmp jumping in main thread _jumping in main thread jumping in child thread _jumping in child thread ===> sigdeliver cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/sigdeliver"' -I/usr/src/regress/lib/libpthread/sigdeliver/../include -MD -MP -c /usr/src/regress/lib/libpthread/sigdeliver/sigdeliver.c cc -o sigdeliver sigdeliver.o -lpthread ./sigdeliver ===> siginfo cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/siginfo"' -I/usr/src/regress/lib/libpthread/siginfo/../include -MD -MP -c /usr/src/regress/lib/libpthread/siginfo/siginfo.c cc -o siginfo siginfo.o -lpthread ./siginfo act_handler: signal 11, siginfo 0x7f7ffffddf20, context 0x7f7ffffdde30 addr 0x987230, code 1, trap 6 ===> siginterrupt cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/siginterrupt"' -I/usr/src/regress/lib/libpthread/siginterrupt/../include -MD -MP -c /usr/src/regress/lib/libpthread/siginterrupt/siginterrupt.c cc -o siginterrupt siginterrupt.o -lpthread ./siginterrupt ===> signal cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/signal"' -I/usr/src/regress/lib/libpthread/signal/../include -MD -MP -c /usr/src/regress/lib/libpthread/signal/signal.c cc -o signal signal.o -lpthread ./signal !! ===> signals ===> signals/ignore_sigchild cc -O2 -pipe -I/usr/src/regress/lib/libpthread/signals/ignore_sigchild/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/signals/ignore_sigchild"' -I/usr/src/regress/lib/libpthread/signals/ignore_sigchild/../include -MD -MP -c /usr/src/regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c cc -o ignore_sigchild ignore_sigchild.o -lpthread ./ignore_sigchild ===> signals/pthread_join cc -O2 -pipe -I/usr/src/regress/lib/libpthread/signals/pthread_join/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/signals/pthread_join"' -I/usr/src/regress/lib/libpthread/signals/pthread_join/../include -MD -MP -c /usr/src/regress/lib/libpthread/signals/pthread_join/pthread_join.c cc -o pthread_join pthread_join.o -lpthread ./pthread_join ===> signals/pthread_mutex_lock cc -O2 -pipe -I/usr/src/regress/lib/libpthread/signals/pthread_mutex_lock/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/signals/pthread_mutex_lock"' -I/usr/src/regress/lib/libpthread/signals/pthread_mutex_lock/../include -MD -MP -c /usr/src/regress/lib/libpthread/signals/pthread_mutex_lock/pthread_mutex_lock.c cc -o pthread_mutex_lock pthread_mutex_lock.o -lpthread ./pthread_mutex_lock ===> signodefer cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/signodefer"' -I/usr/src/regress/lib/libpthread/signodefer/../include -MD -MP -c /usr/src/regress/lib/libpthread/signodefer/signodefer.c cc -o signodefer signodefer.o -lpthread ./signodefer act_handler/1, signal 30, siginfo 0x7f7ffffcb570, context 0x7f7ffffcb480 act_handler/2, signal 30, siginfo 0x7f7ffffcb570, context 0x7f7ffffcb480 act_handler/3, signal 30, siginfo 0x7f7ffffcb570, context 0x7f7ffffcb480 [recurse] act_handler/4, signal 30, siginfo 0x7f7ffffcb130, context 0x7f7ffffcb040 ===> sigsuspend cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/sigsuspend"' -I/usr/src/regress/lib/libpthread/sigsuspend/../include -MD -MP -c /usr/src/regress/lib/libpthread/sigsuspend/sigsuspend.c cc -o sigsuspend sigsuspend.o -lpthread ./sigsuspend -> Suspender thread signal handler caught signal 16 (Urgent I/O condition) -> Main thread signal handler caught signal 16 (Urgent I/O condition) -> Suspender thread signal handler caught signal 31 (User defined signal 2) -> Suspender thread signal handler caught signal 31 (User defined signal 2) Sigsuspend woke up by signal 16 (Urgent I/O condition) Sigsuspend woke up by signal 31 (User defined signal 2) Sigsuspend woke up by signal 31 (User defined signal 2) ===> sigwait cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/sigwait"' -I/usr/src/regress/lib/libpthread/sigwait/../include -MD -MP -c /usr/src/regress/lib/libpthread/sigwait/sigwait.c cc -o sigwait sigwait.o -lpthread ./sigwait Sigwait waiting (thread 0x87749857240) Sigwait caught signal 16 (Urgent I/O condition) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 16 (Urgent I/O condition) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 30 (User defined signal 1) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 30 (User defined signal 1) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 1 (Hangup) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 1 (Hangup) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 1 (Hangup) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 30 (User defined signal 1) Sigwait waiting (thread 0x87749857240) Sigwait caught signal 30 (User defined signal 1) Sigwait waiting (thread 0x87749857240) ===> sleep cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/sleep"' -I/usr/src/regress/lib/libpthread/sleep/../include -MD -MP -c /usr/src/regress/lib/libpthread/sleep/sleep.c cc -o sleep sleep.o -lpthread ./sleep abababababababababab Going to sleep Done sleeping ===> socket ===> socket/1 cc -O2 -pipe -I/usr/src/regress/lib/libpthread/socket/1/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/socket/1"' -I/usr/src/regress/lib/libpthread/socket/1/../include -MD -MP -c /usr/src/regress/lib/libpthread/socket/1/socket1.c cc -o socket1 socket1.o -lpthread ./socket1 ===> socket/2a cc -O2 -pipe -I/usr/src/regress/lib/libpthread/socket/2a/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/socket/2a"' -I/usr/src/regress/lib/libpthread/socket/2a/../include -MD -MP -c /usr/src/regress/lib/libpthread/socket/2a/socket2a.c cc -o socket2a socket2a.o -lpthread socket2a ready ===> socket/2 cc -O2 -pipe -I/usr/src/regress/lib/libpthread/socket/2/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/socket/2"' -I/usr/src/regress/lib/libpthread/socket/2/../include -MD -MP -c /usr/src/regress/lib/libpthread/socket/2/socket2.c cc -o socket2 socket2.o -lpthread ./socket2 listening on port 3276 87552: This should be message #1 waiting for child 83849: This should be message #2 83849: This should be message #3 87552: This should be message #4 83849: This should be message #5 87552: This should be message #6 child exited ===> socket/3 cc -O2 -pipe -I/usr/src/regress/lib/libpthread/socket/3/../../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/socket/3"' -I/usr/src/regress/lib/libpthread/socket/3/../include -MD -MP -c /usr/src/regress/lib/libpthread/socket/3/socket3.c cc -o socket3 socket3.o -lpthread ./socket3 listen_fd = 3 accept_fd = 0, flags = 6 ===> spinlock cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/spinlock"' -I/usr/src/regress/lib/libpthread/spinlock/../include -MD -MP -c /usr/src/regress/lib/libpthread/spinlock/spinlock.c cc -o spinlock spinlock.o -lpthread ./spinlock Thread 0 started Thread 1 started Thread 2 started Thread 3 started Thread 4 started Thread 5 started Thread 6 started Thread 7 started Thread 8 started Thread 9 started ===> stack cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/stack"' -I/usr/src/regress/lib/libpthread/stack/../include -MD -MP -c /usr/src/regress/lib/libpthread/stack/stack.c /usr/src/regress/lib/libpthread/stack/stack.c:25:11: warning: address of stack memory associated with local variable 's' returned [-Wreturn-stack-address] return (&s); ^ /usr/src/regress/lib/libpthread/stack/stack.c:35:10: warning: address of stack memory associated with local variable 'buf' returned [-Wreturn-stack-address] return (buf + LARGE_SIZE/2); ^~~ 2 warnings generated. cc -o stack stack.o -lpthread ./stack ===> stdarg cc -O2 -pipe -I/usr/src/regress/lib/libpthread/stdarg/../include -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/stdarg"' -I/usr/src/regress/lib/libpthread/stdarg/../include -MD -MP -c /usr/src/regress/lib/libpthread/stdarg/stdarg.c cc -o stdarg stdarg.o -lpthread ./stdarg trying loop in single-threaded mode: main ok now running loop with 2 threads: child 1 child 2 ok ok ===> stdio cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/stdio"' -I/usr/src/regress/lib/libpthread/stdio/../include -MD -MP -c /usr/src/regress/lib/libpthread/stdio/stdio.c cc -o stdio stdio.o -lpthread ./stdio ===> switch cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/switch"' -I/usr/src/regress/lib/libpthread/switch/../include -MD -MP -c /usr/src/regress/lib/libpthread/switch/switch.c cc -o switch switch.o -lpthread time ./switch -c 2 | wc -c 939067 0m02.01s real 0m00.09s user 0m05.97s system time ./switch -c 3 | wc -c 908847 0m02.01s real 0m00.09s user 0m07.97s system time ./switch -c 4 | wc -c 973063 0m02.01s real 0m00.13s user 0m07.92s system time ./switch -c 6 | wc -c 1013570 0m02.02s real 0m00.08s user 0m08.02s system time ./switch -c 8 | wc -c 1035920 0m02.01s real 0m00.11s user 0m07.91s system time ./switch -c 20 | wc -c 1125461 0m02.02s real 0m00.16s user 0m07.94s system time ./switch -c 26 | wc -c 1137536 0m02.04s real 0m00.14s user 0m08.01s system ===> system cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/system"' -I/usr/src/regress/lib/libpthread/system/../include -MD -MP -c /usr/src/regress/lib/libpthread/system/system.c cc -o system system.o -lpthread ./system system system.d system.o PASS lib/libpthread Duration 4m25.57s