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 ----------------------------------------------------------------
52 Thread #x
's call to pthread_barrier_destroy failed
53 with error code 16 (EBUSY: Device or resource busy)
54 at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
55 by 0x........: main (bar_bad.c:82)
58 destroy a barrier that was never initialised
59 ----------------------------------------------------------------
61 Thread #x: pthread_barrier_destroy: barrier was never initialised
62 at 0x........: pthread_barrier_destroy (hg_intercepts.c:...)
63 by 0x........: main (bar_bad.c:98)