Valgrind suppression for OS X 10.9
[alexxy/gromacs.git] / cmake / legacy_and_external.supp
index ac043edf041454d7104d2ae3bb21d686fd43d0e6..0e84ddeabacfda268e761e70646f004fa45d0cd7 100644 (file)
@@ -3,6 +3,25 @@
 # Memory leaks in the legacy code are excluded
 # Other problems besides memory leaks should NOT be excluded for legacy code
 
+# Ugly memory leak that depends on global variables being used to pass
+# information between routines.
+{
+   nsc_dclm_pbc
+   Memcheck:Leak
+   fun:calloc
+   fun:save_calloc
+   fun:ico_dot_dod
+   fun:make_unsp
+   fun:nsc_dclm_pbc
+}
+
+{
+   ctime_r
+   Memcheck:Leak
+   ...
+   fun:ctime_r
+}
+
 {
    libz
    Memcheck:Cond
    fun:inflateInit2_
 }
 
+# OpenMPI
+{
+   MPI_Init/Leak
+   Memcheck:Leak
+   ...
+   fun:PMPI_Init
+}
+{
+   MPI_Finalize/Leak
+   Memcheck:Leak
+   fun:malloc
+   fun:ompi_proc_all
+   ...
+   fun:_ZN3gmx8finalizeEv
+}
+{
+   MPI_Init/Addr4
+   Memcheck:Addr4
+   ...
+   fun:PMPI_Init
+}
+{
+   MPI_Init/Addr8
+   Memcheck:Addr8
+   ...
+   fun:PMPI_Init
+}
+{
+   MPI_Init/sched_setaffinity
+   Memcheck:Param
+   sched_setaffinity(mask)
+   ...
+   fun:PMPI_Init
+}
+{
+   MPI_Init/writev
+   Memcheck:Param
+   writev(vector[...])
+   ...
+   fun:PMPI_Init
+}
+
+{
+   gmx_fio_fopen
+   Memcheck:Leak
+   ...
+   fun:gmx_fio_fopen
+}
+{
+   new_symbuf
+   Memcheck:Leak
+   ...
+   fun:new_symbuf
+}
 {
-   read_tps_conf
+   bTimeSet/tMPI_Thread_mutex_init_once
    Memcheck:Leak
    ...
-   fun:read_tps_conf
+   fun:tMPI_Thread_mutex_init_once
+   fun:tMPI_Thread_mutex_lock
+   fun:bTimeSet
+}
+{
+   gmx_ffclose/tMPI_Thread_mutex_init_once
+   Memcheck:Leak
+   ...
+   fun:tMPI_Thread_mutex_init_once
+   fun:tMPI_Thread_mutex_lock
+   fun:gmx_ffclose
 }
 
 {
    obj:*/mdrun*
 }
 
+{
+   strdup/strtod
+   Memcheck:Addr8
+   fun:__GI___strncasecmp_l
+   fun:____strtod_l_internal
+}
+
 
 #MacOS rules
 {
    fun:__vfprintf
 }
 
+{
+   printf
+   Memcheck:Leak
+   fun:malloc
+   ...
+   fun:vfprintf_l
+}
+
 {
    strtof
    Memcheck:Leak
    ...
    fun:strtof_l
 }
+{
+   strtod
+   Memcheck:Leak
+   fun:malloc
+   ...
+   fun:strtod_l
+}
 
 {
    scanf
    Memcheck:Leak
-   fun:malloc
    ...
    fun:__svfscanf_l
 }
 
+{
+    localtime
+    Memcheck:Leak
+    ...
+    fun:localtime
+}
+
+{
+   __cxa_get_globals
+   Memcheck:Leak
+   fun:malloc
+   fun:__cxa_get_globals
+}
 {
    __cxa_get_globals
    Memcheck:Leak