2 ---Thread-Announcement------------------------------------------
4 Thread #x is the program's root thread
6 ----------------------------------------------------------------
8 Thread #x's call to sem_init failed
9 with error code 22 (EINVAL: Invalid argument)
10 at 0x........: sem_init_WRK (hg_intercepts.c:...)
11 by 0x........: sem_init (hg_intercepts.c:...)
12 by 0x........: main (tc18_semabuse.c:23)
14 ----------------------------------------------------------------
16 Thread #x's call to sem_wait failed
17 with error code 22 (EINVAL: Invalid argument)
18 at 0x........: sem_wait_WRK (hg_intercepts.c:...)
19 by 0x........: sem_wait (hg_intercepts.c:...)
20 by 0x........: main (tc18_semabuse.c:34)
22 ----------------------------------------------------------------
24 Thread #x's call to sem_post failed
25 with error code 22 (EINVAL: Invalid argument)
26 at 0x........: sem_post_WRK (hg_intercepts.c:...)
27 by 0x........: sem_post (hg_intercepts.c:...)
29 by 0x........: main (tc18_semabuse.c:40)
31 ----------------------------------------------------------------
33 Thread #x's call to sem_destroy failed
34 with error code 22 (EINVAL: Invalid argument)
35 at 0x........: sem_destroy_WRK (hg_intercepts.c:...)
36 by 0x........: sem_destroy (hg_intercepts.c:...)
37 by 0x........: main (tc18_semabuse.c:42)
40 ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)