Debian Codegraph @

doc/libproc.supp

raw
1 #
2 # This is a warning-suppression file for valgrind supplied by libproc
3 # to be used with the option: --suppressions=<path-for>/libproc.supp.
4 #
5 # Memory leak warnings will only be encountered when a multi-threaded
6 # program has called the 'procps_pids' interface. That's because this
7 # library employs heap based memory in a thread safe manner. However,
8 # such memory will not be freed until the address space is reclaimed.
9 #
10 # When a sibling thread using this 'procps_pids' API ends, or if some
11 # other thread in that address space calls 'pthread_cancel()' on such
12 # a thread, valgrind will warn that some memory is 'definitely lost'.
13 #
14 # The majority of warnings depend on the 'pids_item' enumerators that
15 # have been specified using 'procps_pids_new' or 'procps_pids_reset'.
16 #
17 # Single-threaded applications will not experience any such warnings.
18 #
19
20 ## always present 'definitely lost' warnings
21 # 2 blocks of 128k each
22 {
23 HEAP_BASED_TLS_startup
24 Memcheck:Leak
25 ...
26 fun:openproc
27 }
28
29 ## for most of the 'definitely lost' warnings
30 # up to 4 blocks ranging from 1024 to 2048 bytes each
31 {
32 HEAP_BASED_TLS_input
33 Memcheck:Leak
34 ...
35 fun:file2str
36 }
37
38 ## additional potential 'definitely lost' warnings
39 # 48 bytes for each user
40 {
41 HEAP_BASED_TLS_users
42 Memcheck:Leak
43 ...
44 fun:pwcache_get_user
45 }
46 # 48 bytes for each group
47 {
48 HEAP_BASED_TLS_groups
49 Memcheck:Leak
50 ...
51 fun:pwcache_get_group
52 }
53 # 40 bytes for each tty
54 {
55 HEAP_BASED_TLS_terminals
56 Memcheck:Leak
57 ...
58 fun:dev_to_tty
59 }
60
61 ## remaining potential 'definitely lost' warnings
62 # 16 bytes + sizeof name for each lxc container
63 {
64 HEAP_BASED_TLS_lxc
65 Memcheck:Leak
66 ...
67 fun:lxc_containers
68 }
69
70 ## in case an installed library has been stripped,
71 ## this will embrace all of the above warning categories
72 {
73 HEAP_BASED_TLS_library
74 Memcheck:Leak
75 ...
76 obj:/usr/*lib*/libproc*
77 obj:/usr/local/*lib*/libproc*
78 }