2 initialise a barrier with zero count
3 ---Thread-Announcement------------------------------------------
5 Thread #x is the program's root thread
7 ----------------------------------------------------------------
9 Thread #x: pthread_barrier_init: 'count' argument is zero
10 at 0x........: pthread_barrier_init (hg_intercepts.c:...)
11 by 0x........: main (bar_bad.c:43)
13 ----------------------------------------------------------------
15 Thread #x's call to pthread_barrier_init failed
16 with error code 22 (EINVAL: Invalid argument)
17 at 0x........: pthread_barrier_init (hg_intercepts.c:...)
18 by 0x........: main (bar_bad.c:43)
21 initialise a barrier twice
22 ----------------------------------------------------------------
24 Thread #x: pthread_barrier_init: barrier is already initialised
25 at 0x........: pthread_barrier_init (hg_intercepts.c:...)
26 by 0x........: main (bar_bad.c:49)
29 initialise a barrier which has threads waiting on it
30 ----------------------------------------------------------------
32 Thread #x: pthread_barrier_init: barrier is already initialised
33 at 0x........: pthread_barrier_init (hg_intercepts.c:...)
34 by 0x........: main (bar_bad.c:64)
36 ----------------------------------------------------------------
38 Thread #x: pthread_barrier_init: threads are waiting at barrier
39 at 0x........: pthread_barrier_init (hg_intercepts.c:...)
40 by 0x........: main (bar_bad.c:64)
43 destroy a barrier that has waiting threads
44 ----------------------------------------------------------------
46 Thread #x: pthread_barrier_destroy: threads are waiting at barrier
47 at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
48 by 0x........: main (bar_bad.c:82)
50 ---Thread-Announcement------------------------------------------
54 by 0x........: pthread_create@* (hg_intercepts.c:...)
55 by 0x........: main (bar_bad.c:76)
57 ----------------------------------------------------------------
59 Thread #x: pthread_barrier_wait: barrier is uninitialised
60 at 0x........: pthread_barrier_wait (hg_intercepts.c:...)
61 by 0x........: sleep1 (bar_bad.c:22)
62 by 0x........: mythread_wrapper (hg_intercepts.c:...)
66 destroy a barrier that was never initialised
67 ----------------------------------------------------------------
69 Thread #x: pthread_barrier_destroy: barrier was never initialised
70 at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
71 by 0x........: main (bar_bad.c:98)