Hey,
As per J. Wakeley's comments on
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100655
make the call to pthread_cond_clockwait conditional. This allows
compilation on machines
with older glibc versions.
Cheers,
Michael
2022-10-25 Michael de Lang
* Fix testcase for pthread_cond_clockwai
pthread_cond_clockwait wasn't added to TSAN_INTERCEPTORS which leads to
false positives regarding double locking of a mutex. This was uncovered by
a user reporting an issue to the google sanitizer github:
https://github.com/google/sanitizers/issues/1259
This patch copies code from the fix made in
Leave it to gmail to mess things up. My apologies for the
inconvenience. Patch below.
Met vriendelijke groet,
Michael de Lang
diff --git a/gcc/testsuite/g++.dg/tsan/a.out b/gcc/testsuite/g++.dg/tsan/a.out
new file mode 100755
index 000..bce6d34f8d3
Binary files /dev/null and b/gcc/testsui
pthread_cond_clockwait isn't added to TSAN_INTERCEPTORS which leads to
false positives regarding double locking of a mutex. This was
uncovered by a user reporting an issue to the google sanitizer github:
https://github.com/google/sanitizers/issues/1259
This patch copies code from the fix made in l
mtx);
+
+pthread_join(tid, NULL);
+return 0;
+}
On Thu, 13 May 2021 at 09:33, Martin Liška wrote:
>
> On 5/7/21 7:07 PM, Michael de Lang via Gcc-patches wrote:
> > pthread_cond_clockwait isn't added to TSAN_INTERCEPTORS which leads to
> > false positives regarding