Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 8d12d50

Browse files
committed
Add helgrind/drd suppress files for valgrind 3.17
1 parent fd6e426 commit 8d12d50

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

tests/drd.supp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,24 @@
44
fun:pthread_cond_destroy_intercept
55
fun:pthread_cond_destroy@*
66
}
7+
{
8+
Pthread mutex lock false positive
9+
Drd:Race
10+
...
11+
fun:pthread_mutex_*lock*
12+
...
13+
}
14+
{
15+
Pthread rwlock lock false positive
16+
Drd:Race
17+
...
18+
fun:pthread_rwlock_*lock*
19+
...
20+
}
21+
{
22+
Dl lookup
23+
drd:ConflictingAccess
24+
fun:_dl_lookup_symbol_x
25+
fun:_dl_fixup
26+
fun:_dl_runtime_resolve_xsave
27+
}

tests/helgrind.supp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
Pthread mutex lock false positive
3+
Helgrind:Race
4+
...
5+
fun:pthread_mutex_*lock*
6+
...
7+
}
8+
{
9+
Pthread rwlock lock false positive
10+
Helgrind:Race
11+
...
12+
fun:pthread_rwlock_*lock*
13+
...
14+
}

tests/helpers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function(execute_common expect_success output_file name)
107107
--suppressions=${TEST_ROOT_DIR}/ld.supp --suppressions=${TEST_ROOT_DIR}/memcheck-stdcpp.supp --suppressions=${TEST_ROOT_DIR}/memcheck-libunwind.supp)
108108
set(ENV{LIBPMEMOBJ_CPP_TRACER_MEMCHECK} 1)
109109
elseif(${TRACER} STREQUAL helgrind)
110-
set(TRACE valgrind --error-exitcode=99 --tool=helgrind)
110+
set(TRACE valgrind --error-exitcode=99 --tool=helgrind --suppressions=${TEST_ROOT_DIR}/helgrind.supp)
111111
set(ENV{LIBPMEMOBJ_CPP_TRACER_HELGRIND} 1)
112112
elseif(${TRACER} STREQUAL drd)
113113
set(TRACE valgrind --error-exitcode=99 --tool=drd --suppressions=${TEST_ROOT_DIR}/drd.supp)

0 commit comments

Comments
 (0)