0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00

Problem: false positive on valgrind 3.10

Solution: update builds/valgrind/valgrind.supp to ignore glibc's
__libc_freeres calls. This code runs after the program exits, and
tries to de-allocate memory allocated internally by glibc, so it has
nothing to do with libzmq code. This suppression is added by default
in newer versions of Valgrind, not yet available on older
distributions.
This commit is contained in:
Luca Boccassi 2016-03-18 20:55:39 +00:00
parent ebc7316069
commit 00e0957640
2 changed files with 10 additions and 0 deletions

View File

@ -779,3 +779,5 @@ maintainer-clean-local:
-rm -rf $(top_srcdir)/config
@VALGRIND_CHECK_RULES@
VALGRIND_SUPPRESSIONS_FILES = builds/valgrind/valgrind.supp

View File

@ -12,3 +12,11 @@
fun:send
...
}
{
<glibc_freeres>
Memcheck:Free
fun:free
...
fun:__libc_freeres
...
}