[Bug sanitizer/68580] New: FAIL: c-c++-common/tsan/pr65400-1.c -O0 execution test
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 27 09:59:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68580
Bug ID: 68580
Summary: FAIL: c-c++-common/tsan/pr65400-1.c -O0 execution test
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
I can't yet reproduce this failure on the command line.
Still, it seems to happen once in a while, for -O2 here:
https://gcc.gnu.org/ml/gcc-regression/2015-08/msg00147.html .
AFAIU, given the dg-shouldfail, the failure actually means that once in a while
the executable succeeds and fails to give the expected warning and runtime
error.
Expected warning (which is combined with return status 66):
...
==================
WARNING: ThreadSanitizer: data race (pid=17100)
Read of size 4 at 0x000000601544 by thread T1:
#0 baz3 src/gcc/testsuite/c-c++-common/tsan/pr65400-1.c:46
(pr65400-1.exe+0x000000400cbb)
#1 baz5 src/gcc/testsuite/c-c++-common/tsan/pr65400-1.c:61
(pr65400-1.exe+0x000000400d71)
#2 tf src/gcc/testsuite/c-c++-common/tsan/pr65400-1.c:68
(pr65400-1.exe+0x000000400d97)
Previous write of size 4 at 0x000000601544 by main thread:
#0 main src/gcc/testsuite/c-c++-common/tsan/pr65400-1.c:79
(pr65400-1.exe+0x000000400e12)
Location is global 'v' of size 4 at 0x000000601544
(pr65400-1.exe+0x000000601544)
Thread T1 (tid=17102, running) created by main thread at:
#0 pthread_create src/libsanitizer/tsan/tsan_interceptors.cc:876
(libtsan.so.0+0x00000002af04)
#1 main src/gcc/testsuite/c-c++-common/tsan/pr65400-1.c:77
(pr65400-1.exe+0x000000400dea)
SUMMARY: ThreadSanitizer: data race
src/gcc/testsuite/c-c++-common/tsan/pr65400-1.c:46 in baz3
==================
ThreadSanitizer: reported 1 warnings
...
More information about the Gcc-bugs
mailing list