gst.supp: made the <g_type_init calloc 2> suppression more generic
[platform/upstream/gst-common.git] / gst.supp
1 ### this file contains suppressions for valgrind when running
2 ### the gstreamer unit tests
3 ### it might be useful for wider use as well
4
5
6 ### glibc suppressions
7
8 # glibc does not deallocate thread-local storage
9
10 {
11    <tls>
12    Memcheck:Leak
13    fun:calloc
14    fun:_dl_allocate_tls
15    fun:pthread_create@@GLIBC_2.1
16 }
17
18 {
19    <pthread strstr>
20    Memcheck:Cond
21    fun:strstr
22    fun:__pthread_initialize_minimal
23    obj:/lib/libpthread-*.so
24    obj:/lib/libpthread-*.so
25    fun:call_init
26    fun:_dl_init
27    obj:/lib/ld-*.so
28 }
29
30 # a thread-related free problem in glibc from Edgard
31 {
32    __libc_freeres_rw_acess
33    Memcheck:Addr4
34    obj:*
35    obj:*
36    obj:*
37    obj:*
38    obj:*
39    fun:__libc_freeres
40 }
41
42 {
43    <a conditional jump on wim's debian>
44    Memcheck:Cond
45    obj:/lib/ld-2.3.5.so
46    obj:/lib/ld-2.3.5.so
47    obj:/lib/ld-2.3.5.so
48    obj:/lib/ld-2.3.5.so
49    obj:/lib/ld-2.3.5.so
50 }
51
52 {
53    <g_module_open on wim's debian>
54    Memcheck:Cond
55    obj:/lib/ld-2.3.5.so
56    obj:/lib/ld-2.3.5.so
57    obj:/lib/ld-2.3.5.so
58    fun:do_sym
59    fun:_dl_sym
60    fun:dlsym_doit
61    obj:/lib/ld-2.3.5.so
62    fun:_dlerror_run
63    fun:dlsym
64    fun:g_module_symbol
65    fun:g_module_open
66    fun:gst_plugin_load_file
67 }
68 {
69    <g_module_open on wim's debian>
70    Memcheck:Cond
71    obj:/lib/ld-2.3.5.so
72    obj:/lib/ld-2.3.5.so
73    obj:/lib/ld-2.3.5.so
74    fun:dl_open_worker
75    obj:/lib/ld-2.3.5.so
76    fun:_dl_open
77    fun:dlopen_doit
78    obj:/lib/ld-2.3.5.so
79    fun:_dlerror_run
80    fun:dlopen@@GLIBC_2.1
81    fun:g_module_open
82    fun:gst_plugin_load_file
83 }
84 {
85    <g_module_open on wim's debian>
86    Memcheck:Cond
87    obj:/lib/ld-2.3.5.so
88    fun:dl_open_worker
89    obj:/lib/ld-2.3.5.so
90    fun:_dl_open
91    fun:dlopen_doit
92    obj:/lib/ld-2.3.5.so
93    fun:_dlerror_run
94    fun:dlopen@@GLIBC_2.1
95    fun:g_module_open
96    fun:gst_plugin_load_file
97    fun:gst_plugin_load_by_name
98    fun:gst_plugin_feature_load
99 }
100
101 {
102    <leak on wim's ddebian in g_module_open>
103    Memcheck:Leak
104    fun:malloc
105    obj:/lib/ld-2.3.5.so
106    fun:dl_open_worker
107    obj:/lib/ld-2.3.5.so
108    fun:_dl_open
109    fun:dlopen_doit
110    obj:/lib/ld-2.3.5.so
111    fun:_dlerror_run
112    fun:dlopen@@GLIBC_2.1
113    fun:g_module_open
114    fun:gst_plugin_load_file
115    fun:gst_plugin_load_by_name
116 }
117
118 {
119    <invalid read on wim's debian>
120    Memcheck:Addr4
121    obj:/lib/ld-2.3.5.so
122    obj:/lib/ld-2.3.5.so
123    obj:/lib/ld-2.3.5.so
124    obj:/lib/ld-2.3.5.so
125    obj:/lib/ld-2.3.5.so
126    obj:/lib/ld-2.3.5.so
127    obj:/lib/ld-2.3.5.so
128    fun:dl_open_worker
129    obj:/lib/ld-2.3.5.so
130    fun:_dl_open
131    fun:dlopen_doit
132    obj:/lib/ld-2.3.5.so
133 }
134
135 {
136    <invalid read on wim's debian>
137    Memcheck:Addr4
138    obj:/lib/ld-2.3.5.so
139    obj:/lib/ld-2.3.5.so
140    obj:/lib/ld-2.3.5.so
141    obj:/lib/ld-2.3.5.so
142    obj:/lib/ld-2.3.5.so
143    obj:/lib/ld-2.3.5.so
144    fun:dl_open_worker
145    obj:/lib/ld-2.3.5.so
146    fun:_dl_open
147    fun:dlopen_doit
148    obj:/lib/ld-2.3.5.so
149    fun:_dlerror_run
150 }
151
152
153
154
155
156 ### glib suppressions
157
158 {
159    <g_type_init malloc>
160    Memcheck:Leak
161    fun:malloc
162    fun:g_malloc
163    fun:g_strdup
164    fun:g_quark_from_string
165    obj:*
166    obj:*
167    fun:g_type_register_fundamental
168    obj:*
169    fun:g_type_init_with_debug_flags
170    fun:g_type_init
171    fun:init_pre
172 }
173
174 {
175    <g_type_init calloc>
176    Memcheck:Leak
177    fun:calloc
178    fun:g_malloc0
179    obj:*
180    obj:*
181    fun:g_type_register_fundamental
182 }
183
184 {
185    <g_type_init calloc 2>
186    Memcheck:Leak
187    fun:calloc
188    fun:g_malloc0
189    obj:*
190    obj:*
191    fun:g_type_init_with_debug_flags
192 }
193
194 ### GStreamer suppressions
195
196 # ds is saying he's rewriting the registry anyway
197 {
198    <registry>
199    Memcheck:Leak
200    fun:malloc
201    fun:g_malloc
202    fun:g_strdup
203    fun:read_string
204    fun:load_plugin
205    fun:gst_xml_registry_load
206    fun:gst_registry_load
207    fun:_registry_load_func
208    fun:g_list_foreach
209    fun:gst_registry_pool_load_all
210    fun:init_post
211    fun:init_popt_callback
212 }
213
214 #pthread memleaks
215
216 {
217    Thread creation leak
218    Memcheck:Leak
219    fun:calloc
220    fun:allocate_dtv
221    fun:_dl_allocate*
222    fun:_dl_allocate*
223    fun:__pthread_initialize_minimal
224 }
225
226 {
227    Thread management leak
228    Memcheck:Leak
229    fun:calloc
230    fun:allocate_dtv
231    fun:_dl_allocate*
232    fun:_dl_allocate*
233    fun:__pthread_*
234 }
235
236 {
237    Thread management leak 2
238    Memcheck:Leak
239    fun:memalign
240    fun:_dl_allocate*
241    fun:_dl_allocate*
242    fun:__pthread_*
243 }
244
245 {
246    pthread_create Syscall param write(buf) points to uninitialised byte(s)
247    Memcheck:Param
248    write(buf)
249    fun:pthread_create@@GLIBC_2.2.5
250    fun:g_thread_create*
251
252 }
253
254 # nss_parse_* memleak (used by g_option_context_parse)
255 {
256    nss_parse_* memleak
257    Memcheck:Leak
258    fun:malloc
259    fun:nss_parse_service_list
260    fun:__nss_database_lookup
261 }