[llvm-bugs] [Bug 25697] New: TSan: flaky test race_on_mutex.c

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 1 15:45:21 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25697

            Bug ID: 25697
           Summary: TSan: flaky test race_on_mutex.c
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: aizatsky at chromium.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Sanitizer build bot fails from time to time because of the race_on_mutex test.
I believe I saw this failure more than once.

Sample failure:

FAIL: ThreadSanitizer :: race_on_mutex.c (133 of 281)
******************** TEST 'ThreadSanitizer :: race_on_mutex.c' FAILED
********************
Script:
--
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm_build64/./bin/clang
-fsanitize=thread -Wall -m64 -gline-tables-only -O1
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c
-o
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm_build64/tools/clang/runtime/compiler-rt-bins/test/tsan/Output/race_on_mutex.c.tmp
&&
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/deflake.bash
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm_build64/tools/clang/runtime/compiler-rt-bins/test/tsan/Output/race_on_mutex.c.tmp
| FileCheck
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c
--
Exit Code: 1

Command Output (stderr):
--
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c:40:16:
error: expected string not found in input
// CHECK-NEXT: #0 pthread_mutex_init {{.*}} ({{.*}})
               ^
<stdin>:8:2: note: scanning from here
 [failed to restore the stack]
 ^
<stdin>:13:2: note: possible intended match here
 #0 pthread_create
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:910:3
(race_on_mutex.c.tmp+0x000000428d91)
 ^

--

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 12.09s
********************
Failing Tests (1):
    ThreadSanitizer :: race_on_mutex.c


(http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/21494/steps/run%2064-bit%20tsan%20unit%20tests/logs/stdio)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151201/18d14640/attachment-0001.html>


More information about the llvm-bugs mailing list