forked from zeromq/zproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zproject_valgrind.gsl
59 lines (58 loc) · 1.52 KB
/
zproject_valgrind.gsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Generate valgrind suppression file
#
# This is a code generator built using the iMatix GSL code generation
# language. See https://github.com/imatix/gsl for details.
#
# Copyright (c) the Contributors as noted in the AUTHORS file.
# This file is part of zproject.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
if !file.exists ("src/.valgrind.supp")
output "src/.valgrind.supp"
>{
> <socketcall_sendto>
> Memcheck:Param
> socketcall.sendto(msg)
> fun:send
> ...
>}
>{
> <socketcall_sendto>
> Memcheck:Param
> socketcall.send(msg)
> fun:send
> ...
>}
>{
> <glibc_freeres>
> Memcheck:Free
> fun:free
> ...
> fun:__libc_freeres
> ...
>}
>{
> <glibc_eh_alloc__see_bug_66339>
> Memcheck:Leak
> match-leak-kinds: reachable
> fun:malloc
> fun:pool
> fun:__static_initialization_and_destruction_0
> fun:_GLOBAL__sub_I_eh_alloc.cc
> ...
>}
>{
> <libgcrypt_init>
> Memcheck:Leak
> match-leak-kinds: reachable
> fun:malloc
> ...
> fun:_gcry_mpi_init
> fun:global_init
> ...
>}
else
echo "NOT regenerating an existing src/.valgrind.supp file; you might want to move yours out of the way and re-generate the project again to get updated settings"
endif