blob: 52de8196090b3bce00d55fe6407fd671185acbd4 [file] [log] [blame]
gobry3b777892002-04-04 09:18:39 +00001
2##----------------------------------------------------------------------##
3
sewardj45328392002-05-16 20:57:26 +00004# Errors to suppress by default with glibc 2.2.4 / 2.2.5
gobry3b777892002-04-04 09:18:39 +00005
6# Format of this file is:
7# {
8# name_of_suppression
njnc40c3a82002-10-02 11:02:27 +00009# skin_name:supp_kind
10# (optional extra info for some suppression types)
gobry3b777892002-04-04 09:18:39 +000011# caller0 name, or /name/of/so/file.so
12# caller1 name, or ditto
13# (optionally: caller2 name)
14# (optionally: caller3 name)
njnc40c3a82002-10-02 11:02:27 +000015# }
16#
sewardj34eccb12002-10-05 16:49:09 +000017# For Memcheck, the supp_kinds are:
njnc40c3a82002-10-02 11:02:27 +000018#
19# Param Value1 Value2 Value4 Value8
20# Free Addr1 Addr2 Addr4 Addr8
21# Cond (previously known as Value0)
22#
23# and the optional extra info is:
24# if Param: name of system call param
25# if Free: name of free-ing fn)
sewardj9bf05a82002-06-06 09:02:11 +000026
sewardj3a751df2003-03-16 10:55:06 +000027#-------- For SuSE 8.2 (gcc 3.3, glibc 2.3.2)
28{
29 __GI___stpcpy/*
30 Memcheck:Cond
31 fun:__GI___stpcpy
32 fun:*
33}
34{
35 strlen/__GI__dl_open/dlopen_doit
36 Memcheck:Cond
37 fun:strlen
38 fun:__GI__dl_open
39 fun:dlopen_doit
40}
41{
42 strlen/_dl_signal_cerror/_dl_lookup_symbol_internal/do_dlsym
43 Memcheck:Cond
44 fun:_dl_signal_cerror
45 fun:_dl_lookup_symbol_internal
46 fun:do_dlsym
47}
48
49
sewardjef0227c2002-12-15 23:09:24 +000050#-------- For R H 8.0
51{
52 elf_dynamic_do_rel.7/_dl_relocate_object_internal/dl_open_worker(Cond)
53 Memcheck:Cond
54 fun:elf_dynamic_do_rel.7
55 fun:_dl_relocate_object_internal
56 fun:dl_open_worker
57}
58
59
sewardjc26044b2002-10-20 16:27:43 +000060#-------- For R H 7.3 on i686
61{
62 _dl_relocate_object*/*libc-2.2.?.so/_dl_catch_error*(Cond)
63 Memcheck:Cond
64 fun:_dl_relocate_object*
65 obj:*libc-2.2.?.so
66 fun:_dl_catch_error*
67}
68
69
sewardj20719f62002-09-27 00:58:10 +000070#-------- SuSE 8.1 stuff (gcc-3.2, glibc-2.2.5 + SuSE's hacks)
71{
72 __stpcpy/*
sewardj34eccb12002-10-05 16:49:09 +000073 Memcheck:Cond
sewardj20719f62002-09-27 00:58:10 +000074 fun:__stpcpy
75 fun:*
76}
77{
78 strlen/decompose_rpath/_dl_map_object
sewardj34eccb12002-10-05 16:49:09 +000079 Memcheck:Cond
sewardj20719f62002-09-27 00:58:10 +000080 fun:strlen
81 fun:decompose_rpath
82 fun:_dl_map_object
83}
84{
85 strlen/_dl_sym/dlsym_doit
sewardj34eccb12002-10-05 16:49:09 +000086 Memcheck:Cond
sewardj20719f62002-09-27 00:58:10 +000087 fun:strlen
88 fun:_dl_sym
89 fun:dlsym_doit
90}
91{
92 trecurse/__gconv_release_shlib(Addr4)
njn11cc9252002-10-07 14:42:59 +000093 Addrcheck,Memcheck:Addr4
sewardj20719f62002-09-27 00:58:10 +000094 fun:trecurse
95 fun:__gconv_release_shlib
96}
97{
98 do_release_shlib/trecurse(Addr4)
njn11cc9252002-10-07 14:42:59 +000099 Addrcheck,Memcheck:Addr4
sewardj20719f62002-09-27 00:58:10 +0000100 fun:do_release_shlib
101 fun:trecurse
102}
103
sewardj75452642002-07-25 02:21:53 +0000104#-------- R H Limbo (glibc-2.2.90) stuff
105{
106 elf_dynamic_do_rela.8/_dl_relocate_object_internal
sewardj34eccb12002-10-05 16:49:09 +0000107 Memcheck:Cond
sewardj75452642002-07-25 02:21:53 +0000108 fun:elf_dynamic_do_rela.8
109 fun:_dl_relocate_object_internal
110}
111
112{
113 __strnlen/_nl_make_l10nflist(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000114 Memcheck:Cond
sewardj75452642002-07-25 02:21:53 +0000115 fun:__strnlen
116 fun:_nl_make_l10nflist
117}
118
119{
120 __strnlen/*vfprintf*
sewardj34eccb12002-10-05 16:49:09 +0000121 Memcheck:Cond
sewardj75452642002-07-25 02:21:53 +0000122 fun:__strnlen
123 fun:*vfprintf*
124}
125
126{
127 libXaw.so.7.0(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000128 Memcheck:Cond
sewardj75452642002-07-25 02:21:53 +0000129 obj:*libXaw.so.7.0
130}
sewardj9bf05a82002-06-06 09:02:11 +0000131
sewardj1fe7b002002-07-16 01:43:15 +0000132#-------- Suppress errors appearing as a result of calling
133#-------- __libc_freeres()
134
135{
136 __twalk/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000137 Addrcheck,Memcheck:Addr4
sewardj1fe7b002002-07-16 01:43:15 +0000138 fun:__twalk
139}
140
141{
142 do_release_shlib/__twalk(Addr4)
njn11cc9252002-10-07 14:42:59 +0000143 Addrcheck,Memcheck:Addr4
sewardj1fe7b002002-07-16 01:43:15 +0000144 fun:do_release_shlib
145 fun:__twalk
146}
147
148{
149 __libc_freeres/free_mem/free(Free)
njn11cc9252002-10-07 14:42:59 +0000150 Addrcheck,Memcheck:Free
sewardj1fe7b002002-07-16 01:43:15 +0000151 fun:free
152 fun:free_mem
153 fun:__libc_freeres
154}
155
njn25e49d8e72002-09-23 09:36:25 +0000156#-------- Data races
157#{
158# _dl_lookup_symbol/fixup/_dl_runtime_resolve
njnc40c3a82002-10-02 11:02:27 +0000159# helgrind:Eraser
njn25e49d8e72002-09-23 09:36:25 +0000160# fun:_dl_lookup_symbol
161# fun:fixup
162# fun:_dl_runtime_resolve
163#}
164#
165#{
166# _dl_lookup_versioned_symbol/fixup/_dl_runtime_resolve
njnc40c3a82002-10-02 11:02:27 +0000167# helgrind:Eraser
njn25e49d8e72002-09-23 09:36:25 +0000168# fun:_dl_lookup_versioned_symbol
169# fun:fixup
170# fun:_dl_runtime_resolve
171#}
sewardj9bf05a82002-06-06 09:02:11 +0000172
njn25e49d8e72002-09-23 09:36:25 +0000173#-------- Threading bugs?
sewardjd8acdf22002-11-13 21:57:52 +0000174# glibc 'knows' that destroying a locked mutex will unlock it
sewardj9bf05a82002-06-06 09:02:11 +0000175{
176 pthread_error/__pthread_mutex_destroy/__closedir
njnc40c3a82002-10-02 11:02:27 +0000177 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000178 fun:pthread_error
179 fun:__pthread_mutex_destroy
180 fun:__closedir
181}
182
183{
184 pthread_error/__pthread_mutex_destroy/_IO_default_finish
njnc40c3a82002-10-02 11:02:27 +0000185 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000186 fun:pthread_error
187 fun:__pthread_mutex_destroy
sewardj924bc002002-06-07 00:29:39 +0000188 fun:_IO_default_finish*
sewardj9bf05a82002-06-06 09:02:11 +0000189}
190
191{
192 __pthread_mutex_unlock/_IO_funlockfile
njnc40c3a82002-10-02 11:02:27 +0000193 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000194 fun:__pthread_mutex_unlock
195 fun:_IO_funlockfile
196}
gobry3b777892002-04-04 09:18:39 +0000197
gobry3b777892002-04-04 09:18:39 +0000198# even more glibc suppressions ?
199{
200 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000201 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000202 obj:*libc-2.2.?.so
203 obj:*libc-2.2.?.so
204 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000205}
206{
207 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Value4)
sewardj34eccb12002-10-05 16:49:09 +0000208 Memcheck:Value4
sewardj45328392002-05-16 20:57:26 +0000209 obj:*libc-2.2.?.so
210 obj:*libc-2.2.?.so
211 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000212}
213
214##### glibc 2.2.5 stuff perhaps?
215##### suppressions for coolo
216{
217 strchr/dl_open_worker(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000218 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000219 fun:strchr
220 fun:dl_open_worker
221}
222{
sewardjb55fc4e2002-07-14 13:04:38 +0000223 __rawmemchr(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000224 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000225 fun:__rawmemchr
gobry3b777892002-04-04 09:18:39 +0000226}
227{
228 _IO_vfprintf/__strnlen(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000229 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000230 fun:__strnlen
231 fun:_IO_vfprintf
232}
233{
234 __strchrnul/gethostbyname*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000235 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000236 fun:__strchrnul
237 fun:gethostbyname*
238}
239
240
241##----
242{
243 strlen/*dl_map_object*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000244 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000245 fun:strlen
246 fun:*dl_map_object*
247}
248
249{
250 strlen/*dl_open_worker*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000251 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000252 fun:strlen
253 fun:*dl_open_worker*
254}
255
256{
257 *rawmemchr*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000258 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000259 fun:*rawmemchr*
260 fun:*nss*
261}
262
263{
264 *strchrnul*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000265 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000266 fun:*strchrnul*
267 fun:*nss*
268}
269
270# gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
271# on Red Hat 7.2 (x86) miscompiles __mpn_construct_double in
272# __mpn_construct_double (../sysdeps/ieee754/dbl-64/mpn2dbl.c:45)
273# (glibc-2.2.4) to read and write below %esp. Hence the following
274# two:
275{
276 __mpn_construct_double/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000277 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000278 fun:__mpn_construct_double
279 fun:*
280}
281{
282 __mpn_construct_double/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000283 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000284 fun:__mpn_construct_double
285 fun:*
286}
287
288# More of the same (gcc bug, I'm pretty sure)
289{
290 __fabs/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000291 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000292 fun:__fabs
293 fun:*
294}
295{
296 __fabs/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000297 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000298 fun:__fabs
299 fun:*
300}
301
302
303# Not sure what this is about ... but anyway
304{
305 pthread_sighandler/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000306 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000307 fun:pthread_sighandler
308 fun:*
309}
310
311
312# More glibc stuff, AFAICS
313
314{
315 __strnlen/__argz_stringify/_nl_make_l10nflist(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000316 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000317 fun:__strnlen
318 fun:__argz_stringify
319 fun:_nl_make_l10nflist
320}
321
322#--------------
323{
sewardj924bc002002-06-07 00:29:39 +0000324 _dl_relocate_object*/dl_open_worker/_dl_catch_error*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000325 Memcheck:Cond
sewardj924bc002002-06-07 00:29:39 +0000326 fun:_dl_relocate_object*
gobry3b777892002-04-04 09:18:39 +0000327 fun:dl_open_worker
sewardj924bc002002-06-07 00:29:39 +0000328 fun:_dl_catch_error*
gobry3b777892002-04-04 09:18:39 +0000329}
330{
331 _dl_relocate_object/libc-2.2.4.so/_dl_catch_error(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000332 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000333 fun:_dl_relocate_object
sewardj45328392002-05-16 20:57:26 +0000334 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000335 fun:_dl_catch_error
336}
337
338{
339 strrchr/_dl_map_object_from_fd/_dl_map_object(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000340 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000341 fun:strrchr
342 fun:_dl_map_object_from_fd
343 fun:_dl_map_object
344}
345
346#-------------------
347{
348 socketcall.connect(serv_addr)/__libc_connect/*
njn11cc9252002-10-07 14:42:59 +0000349 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000350 socketcall.connect(serv_addr)
351 fun:__libc_connect
352 fun:*
353}
354{
355 socketcall.connect(serv_addr)/libc-2.2.4.so/libc-2.2.4.so
njn11cc9252002-10-07 14:42:59 +0000356 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000357 socketcall.connect(serv_addr)
sewardj45328392002-05-16 20:57:26 +0000358 obj:*libc-2.2.?.so
359 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000360}
361
362#----------------------
363{
364 write(buf)/__libc_write/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000365 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000366 write(buf)
367 fun:__libc_write
368 obj:/usr/X11R6/lib/libX11.so.6.2
369 obj:/usr/X11R6/lib/libX11.so.6.2
370}
371{
372 write(buf)/libc-2.2.4.so/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000373 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000374 write(buf)
sewardj45328392002-05-16 20:57:26 +0000375 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000376 obj:/usr/X11R6/lib/libX11.so.6.2
377 obj:/usr/X11R6/lib/libX11.so.6.2
378}
379
380#{
381# llseek(result)/__libc_lseek64/_IO_file_seek(Param)
382# Param
383# llseek(result)
384# fun:__libc_lseek64
385# fun:_IO_file_seek
386#}
387
388{
389 writev(vector[...])/__writev/libX11.so.6.2/libX11.so.6.2
njn11cc9252002-10-07 14:42:59 +0000390 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000391 writev(vector[...])
392 fun:__writev
393 obj:/usr/X11R6/lib/libX11.so.6.2
394 obj:/usr/X11R6/lib/libX11.so.6.2
395}
396
397#----------------
398{
399 __rawmemchr/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000400 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000401 fun:__rawmemchr
402 obj:/usr/X11R6/lib/libXt.so.6.0
403 obj:/usr/X11R6/lib/libXt.so.6.0
404}
405{
406 libc-2.2.4.so/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000407 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000408 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000409 obj:/usr/X11R6/lib/libXt.so.6.0
410 obj:/usr/X11R6/lib/libXt.so.6.0
411}
412
413##----------------------------------------------------------------------##
njn866db0d2003-05-08 07:53:52 +0000414## For a leak in Valgrind's own libpthread.so :(
415{
416 my_malloc/get_or_allocate_specifics_ptr/__pthread_key_create(Leak)
417 Memcheck:Leak
418 fun:my_malloc
419 fun:get_or_allocate_specifics_ptr
420 fun:__pthread_key_create
421}
422
gobry3b777892002-04-04 09:18:39 +0000423