1 2initialise a barrier with zero count 3---Thread-Announcement------------------------------------------ 4 5Thread #x is the program's root thread 6 7---------------------------------------------------------------- 8 9Thread #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) 12 13---------------------------------------------------------------- 14 15Thread #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) 19 20 21initialise a barrier twice 22---------------------------------------------------------------- 23 24Thread #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) 27 28 29initialise a barrier which has threads waiting on it 30---------------------------------------------------------------- 31 32Thread #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) 35 36---------------------------------------------------------------- 37 38Thread #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) 41 42 43destroy a barrier that has waiting threads 44---------------------------------------------------------------- 45 46Thread #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) 49 50---------------------------------------------------------------- 51 52Thread #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) 56 57 58destroy a barrier that was never initialised 59---------------------------------------------------------------- 60 61Thread #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) 64 65