-
Notifications
You must be signed in to change notification settings - Fork 104
/
zproject_valgrind.gsl
69 lines (68 loc) · 1.71 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
60
61
62
63
64
65
66
67
68
69
# Generate valgrind suppression file
#
# This is a code generator built using the iMatix GSL code generation
# language. See https://github.com/zeromq/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
> ...
>}
>{
> <libgcrypt_init2>
> Memcheck:Leak
> match-leak-kinds: reachable
> fun:malloc
> ...
> fun:call_init.part.0
> fun:_dl_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