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:
parent
ebc7316069
commit
00e0957640
@ -779,3 +779,5 @@ maintainer-clean-local:
|
||||
-rm -rf $(top_srcdir)/config
|
||||
|
||||
@VALGRIND_CHECK_RULES@
|
||||
|
||||
VALGRIND_SUPPRESSIONS_FILES = builds/valgrind/valgrind.supp
|
||||
|
@ -12,3 +12,11 @@
|
||||
fun:send
|
||||
...
|
||||
}
|
||||
{
|
||||
<glibc_freeres>
|
||||
Memcheck:Free
|
||||
fun:free
|
||||
...
|
||||
fun:__libc_freeres
|
||||
...
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user