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