Backport valgrind suppression
[alexxy/gromacs.git] / cmake / legacy_and_external.supp
1 # This suppression file is used to run the CTest Unit Tests
2 # All problems in external libraries are excluded
3 # Memory leaks in the legacy code are excluded
4 # Other problems besides memory leaks should NOT be excluded for legacy code
5
6 # Ugly memory leak that depends on global variables being used to pass
7 # information between routines.
8 {
9    nsc_dclm_pbc
10    Memcheck:Leak
11    fun:calloc
12    fun:save_calloc
13    fun:ico_dot_dod
14    fun:make_unsp
15    fun:nsc_dclm_pbc
16 }
17 {
18    libgomp
19    Memcheck:Leak
20    ...
21    obj:*/libgomp.so*
22 }
23 {
24    ctime_r
25    Memcheck:Leak
26    ...
27    fun:ctime_r
28 }
29
30 {
31    libz
32    Memcheck:Cond
33    fun:inflateReset2
34    fun:inflateInit2_
35 }
36
37 # OpenMPI
38 {
39    MPI_Init/Leak
40    Memcheck:Leak
41    ...
42    fun:PMPI_Init
43 }
44 {
45    MPI_Finalize/Leak
46    Memcheck:Leak
47    fun:malloc
48    fun:ompi_proc_all
49    ...
50    fun:_ZN3gmx8finalizeEv
51 }
52 {
53    MPI_Init/Addr4
54    Memcheck:Addr4
55    ...
56    fun:PMPI_Init
57 }
58 {
59    MPI_Init/Addr8
60    Memcheck:Addr8
61    ...
62    fun:PMPI_Init
63 }
64 {
65    MPI_Init/sched_setaffinity
66    Memcheck:Param
67    sched_setaffinity(mask)
68    ...
69    fun:PMPI_Init
70 }
71 {
72    MPI_Init/writev
73    Memcheck:Param
74    writev(vector[...])
75    ...
76    fun:PMPI_Init
77 }
78
79 {
80    gmx_fio_fopen
81    Memcheck:Leak
82    ...
83    fun:gmx_fio_fopen
84 }
85 {
86    new_symbuf
87    Memcheck:Leak
88    ...
89    fun:new_symbuf
90 }
91 {
92    bTimeSet/tMPI_Thread_mutex_init_once
93    Memcheck:Leak
94    ...
95    fun:tMPI_Thread_mutex_init_once
96    fun:tMPI_Thread_mutex_lock
97    fun:bTimeSet
98 }
99 {
100    gmx_ffclose/tMPI_Thread_mutex_init_once
101    Memcheck:Leak
102    ...
103    fun:tMPI_Thread_mutex_init_once
104    fun:tMPI_Thread_mutex_lock
105    fun:gmx_ffclose
106 }
107
108 {
109    mdrun
110    Memcheck:Leak
111    ...
112    obj:*/mdrun*
113 }
114
115 {
116    strdup/strtod
117    Memcheck:Addr8
118    fun:__GI___strncasecmp_l
119    fun:____strtod_l_internal
120 }
121
122
123 #MacOS rules
124 {
125    dyld_register_image_state_change_handler
126    Memcheck:Leak
127    fun:malloc
128    fun:malloc
129    ...
130    fun:dyld_register_image_state_change_handler
131 }
132
133 {
134    __emutls_get_address
135    Memcheck:Leak
136    ...
137    fun:__emutls_get_address
138 }
139
140 {
141    libSystem_initializer
142    Memcheck:Leak
143    ...
144    fun:libSystem_initializer
145 }
146
147 {
148    atexit
149    Memcheck:Leak
150    fun:malloc
151    fun:atexit_register
152 }
153
154 {
155    unw_set_reg
156    Memcheck:Leak
157    ...
158    fun:unw_set_reg
159    fun:__gxx_personality_v0
160 }
161
162 {
163    printf
164    Memcheck:Leak
165    fun:malloc
166    ...
167    fun:__vfprintf
168 }
169
170 {
171    printf
172    Memcheck:Leak
173    fun:malloc
174    ...
175    fun:vfprintf_l
176 }
177
178 {
179    strtof
180    Memcheck:Leak
181    fun:malloc
182    ...
183    fun:strtof_l
184 }
185 {
186    strtod
187    Memcheck:Leak
188    fun:malloc
189    ...
190    fun:strtod_l
191 }
192
193 {
194    scanf
195    Memcheck:Leak
196    ...
197    fun:__svfscanf_l
198 }
199
200 {
201     localtime
202     Memcheck:Leak
203     ...
204     fun:localtime
205 }
206
207 {
208    __cxa_get_globals
209    Memcheck:Leak
210    fun:malloc
211    fun:__cxa_get_globals
212 }
213 {
214    __cxa_get_globals
215    Memcheck:Leak
216    fun:calloc
217    fun:__cxa_get_globals
218    fun:__cxa_throw
219 }
220
221 {
222    _Unwind_RaiseException
223    Memcheck:Leak
224    fun:malloc
225    ...
226    fun:_Unwind_RaiseException
227    fun:__cxa_throw
228 }
229 {
230    posix_memalign
231    Memcheck:Leak
232    ...
233    fun:posix_memalign
234 }
235
236 # Intel compiler on MacOS
237 {
238    __cilkrts_os_mutex_create
239    Memcheck:Leak
240    fun:malloc
241    fun:__cilkrts_os_mutex_create
242 }
243 # Intel compiler with MKL
244 {
245    dlerror
246    Memcheck:Leak
247    ...
248    fun:_dlerror_run
249 }
250 #Intel
251 {
252    strlen
253    Memcheck:Addr8
254    fun:__intel_sse2_strlen
255 }
256 {
257    strlen2
258    Memcheck:Cond
259    fun:__intel_sse2_strlen
260 }
261 {
262    __kmpc_global_thread_num
263    Memcheck:Param
264    sched_setaffinity(mask)
265    ...
266    fun:__kmpc_global_thread_num
267 }
268 {
269    __kmpc_global_thread_num2
270    Memcheck:Cond
271    ...
272    fun:__kmpc_global_thread_num
273 }
274 {
275    __kmpc_global_thread_num3
276    Memcheck:Leak
277    ...
278    fun:__kmpc_global_thread_num
279 }