[Bug testsuite/80551] New: c-c++-common/tsan/race_on_mutex.c fails on powerpc
seurer at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 27 18:42:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80551
Bug ID: 80551
Summary: c-c++-common/tsan/race_on_mutex.c fails on powerpc
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: seurer at gcc dot gnu.org
Target Milestone: ---
This test case fails on powerpc64 BE. It used to also fail on LE but that was
fixed recently (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79455)
The failure for BE is a little different than for LE. The output of them is
very similar except for function #1 in the traceback in the second section
which is
#1 pthread_mutex_init <null> (libpthread.so.0+0x00000000b61c)
on powerpc64le and is
#1 <null> <null> (libpthread.so.0+0x00000000e93c)
on powerpc64 (BE).
The function name is missing which looks like a problem.
Full output on BE:
WARNING: ThreadSanitizer: data race (pid=16676)
Atomic read of size 1 at 0x000010020408 by thread T2:
#0 pthread_mutex_lock
gcc-trunk/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3608
(libtsan.so.0+0x00000006094c)
#1 Thread2 c-c++-common/tsan/race_on_mutex.c:22
(race_on_mutex.exe+0x000010000fd4)
Previous write of size 8 at 0x000010020408 by thread T1:
#0 memset
gcc-trunk/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:558
(libtsan.so.0+0x0000000522dc)
#1 <null> <null> (libpthread.so.0+0x00000000e93c)
#2 Thread1 c-c++-common/tsan/race_on_mutex.c:12
(race_on_mutex.exe+0x000010000e9c)
Location is global 'Mtx' of size 40 at 0x000010020408
(race_on_mutex.exe+0x000010020408)
Thread T2 (tid=16848, running) created by main thread at:
#0 pthread_create gcc-trunk/libsanitizer/tsan/tsan_interceptors.cc:900
(libtsan.so.0+0x0000000485c4)
#1 main c-c++-common/tsan/race_on_mutex.c:32
(race_on_mutex.exe+0x0000100010b8)
Thread T1 (tid=16836, finished) created by main thread at:
#0 pthread_create gcc-trunk/libsanitizer/tsan/tsan_interceptors.cc:900
(libtsan.so.0+0x0000000485c4)
#1 main c-c++-common/tsan/race_on_mutex.c:31
(race_on_mutex.exe+0x000010001098)
SUMMARY: ThreadSanitizer: data race c-c++-common/tsan/race_on_mutex.c:22 in
Thread2
More information about the Gcc-bugs
mailing list