]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
add suppression for helgrind/tests/tc22_exit_w_lock
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 3 Feb 2017 00:34:52 +0000 (00:34 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 3 Feb 2017 00:34:52 +0000 (00:34 +0000)
Function pthread_create indirectly calls function memcpy. Helgrind
considers that memcpy is not thread safe function. For error reported
from pthread_create there is the suppression helgrind---_dl_allocate_tls
in the file glibc-2.34567-NPTL-helgrind.supp.
Since glibc version 2.23, memcpy is implemented by __mempcpy_inline.
This causes that call to memcpy from pthread_create is no longer
recognized by the suppression.
In test helgrind/tests/tc22_exit_w_lock, pthread_create is called twice,
and second call reports error, which causes failing of the test.
This patch adds suppression for glibc 2.23 and greater.

Patch by Tamara Vlahovic.

Related issue #375806.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16219

NEWS
glibc-2.34567-NPTL-helgrind.supp

diff --git a/NEWS b/NEWS
index 4d42eac0a7b5e09445b88fe8c12fabdc10358683..10b723fae01f6783b910759df6dbff55051906e1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -113,6 +113,7 @@ where XXXXXX is the bug number as listed below.
 375514  valgrind_get_tls_addr() does not work in case of static TLS
 375772  +1 error in get_elf_symbol_info() when computing value of 'hi' address
         for ML_(find_rx_mapping)()
+375806  Test helgrind/tests/tc22_exit_w_lock fails with glibc 2.24
 
 Release 3.12.0 (20 October 2016)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
index ed105b8db6f60d09eb82665af9c8da32f51c87de..7ebd2c4b4e567a2be19d9e92f67fef88e53a8a55 100644 (file)
    fun:pthread_create@*
 }
 
+{
+   helgrind---_dl_allocate_tls2
+   Helgrind:Race
+   fun:memcpy
+   fun:__mempcpy_inline
+   fun:_dl_allocate_tls_init
+   ...
+   fun:pthread_create@@GLIBC_2.2*
+   fun:pthread_create_WRK
+   fun:pthread_create@*
+}
+
 ####################################################
 # To do with GNU libgomp
 #