Home | History | Annotate | Download | only in tests
      1 
      2 initialise a barrier with zero count
      3 ---Thread-Announcement------------------------------------------
      4 
      5 Thread #x is the program's root thread
      6 
      7 ----------------------------------------------------------------
      8 
      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)
     12 
     13 ----------------------------------------------------------------
     14 
     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)
     19 
     20 
     21 initialise a barrier twice
     22 ----------------------------------------------------------------
     23 
     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)
     27 
     28 
     29 initialise a barrier which has threads waiting on it
     30 ----------------------------------------------------------------
     31 
     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)
     35 
     36 ----------------------------------------------------------------
     37 
     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)
     41 
     42 
     43 destroy a barrier that has waiting threads
     44 ----------------------------------------------------------------
     45 
     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)
     49 
     50 ---Thread-Announcement------------------------------------------
     51 
     52 Thread #x was created
     53    ...
     54    by 0x........: pthread_create@* (hg_intercepts.c:...)
     55    by 0x........: main (bar_bad.c:76)
     56 
     57 ----------------------------------------------------------------
     58 
     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:...)
     63    ...
     64 
     65 
     66 destroy a barrier that was never initialised
     67 ----------------------------------------------------------------
     68 
     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)
     72 
     73