blob: e50ac438c6f364b37c16547241c7cfdc7b81d6da [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
nethercote137bc552003-11-14 17:47:54 +00009# tool_name:supp_kind
njnc40c3a82002-10-02 11:02:27 +000010# (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#
njnc0616662003-06-12 09:58:41 +000019# Param Value1 Value2 Value4 Value8 Value16
20# Free Addr1 Addr2 Addr4 Addr8 Addr16
njnc40c3a82002-10-02 11:02:27 +000021# 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
mueller1c2d0652004-02-28 21:21:46 +0000157{
158 _dl_lookup_symbol/fixup/_dl_runtime_resolve
159 Helgrind:Eraser
160 fun:_dl_lookup_symbol
161 fun:fixup
162 fun:_dl_runtime_resolve
163}
164
165{
166 _dl_lookup_versioned_symbol/fixup/_dl_runtime_resolve
167 Helgrind:Eraser
168 fun:_dl_lookup_versioned_symbol
169 fun:fixup
170 fun:_dl_runtime_resolve
171}
172
173{
thughesf3feaaf2004-02-29 13:00:51 +0000174 _dl_lookup_versioned_symbol_internal/fixup/_dl_runtime_resolve
175 Helgrind:Eraser
176 fun:_dl_lookup_versioned_symbol_internal
177 fun:fixup
178 fun:_dl_runtime_resolve
179}
180
181{
mueller1c2d0652004-02-28 21:21:46 +0000182 _dl_fini/exit/__libc_start_main
183 Helgrind:Eraser
184 fun:_dl_fini
185 fun:exit
186 fun:__libc_start_main
187}
sewardj9bf05a82002-06-06 09:02:11 +0000188
njn25e49d8e72002-09-23 09:36:25 +0000189#-------- Threading bugs?
sewardjd8acdf22002-11-13 21:57:52 +0000190# glibc 'knows' that destroying a locked mutex will unlock it
sewardj9bf05a82002-06-06 09:02:11 +0000191{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000192 pthread_error/pthread_mutex_destroy/__closedir
njnc40c3a82002-10-02 11:02:27 +0000193 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000194 fun:pthread_error
fitzhardinge1c76dc42003-12-15 09:00:21 +0000195 fun:pthread_mutex_destroy
sewardj9bf05a82002-06-06 09:02:11 +0000196 fun:__closedir
197}
198
199{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000200 pthread_error/pthread_mutex_destroy/_IO_default_finish
njnc40c3a82002-10-02 11:02:27 +0000201 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000202 fun:pthread_error
fitzhardinge1c76dc42003-12-15 09:00:21 +0000203 fun:pthread_mutex_destroy
sewardj924bc002002-06-07 00:29:39 +0000204 fun:_IO_default_finish*
sewardj9bf05a82002-06-06 09:02:11 +0000205}
206
207{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000208 pthread_mutex_unlock/_IO_funlockfile
njnc40c3a82002-10-02 11:02:27 +0000209 core:PThread
fitzhardinge1c76dc42003-12-15 09:00:21 +0000210 fun:pthread_mutex_unlock
sewardj9bf05a82002-06-06 09:02:11 +0000211 fun:_IO_funlockfile
212}
gobry3b777892002-04-04 09:18:39 +0000213
gobry3b777892002-04-04 09:18:39 +0000214# even more glibc suppressions ?
215{
216 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000217 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000218 obj:*libc-2.2.?.so
219 obj:*libc-2.2.?.so
220 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000221}
222{
223 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Value4)
sewardj34eccb12002-10-05 16:49:09 +0000224 Memcheck:Value4
sewardj45328392002-05-16 20:57:26 +0000225 obj:*libc-2.2.?.so
226 obj:*libc-2.2.?.so
227 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000228}
229
230##### glibc 2.2.5 stuff perhaps?
231##### suppressions for coolo
232{
233 strchr/dl_open_worker(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000234 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000235 fun:strchr
236 fun:dl_open_worker
237}
238{
sewardjb55fc4e2002-07-14 13:04:38 +0000239 __rawmemchr(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000240 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000241 fun:__rawmemchr
gobry3b777892002-04-04 09:18:39 +0000242}
243{
244 _IO_vfprintf/__strnlen(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000245 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000246 fun:__strnlen
247 fun:_IO_vfprintf
248}
249{
250 __strchrnul/gethostbyname*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000251 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000252 fun:__strchrnul
253 fun:gethostbyname*
254}
255
256
257##----
258{
259 strlen/*dl_map_object*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000260 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000261 fun:strlen
262 fun:*dl_map_object*
263}
264
265{
266 strlen/*dl_open_worker*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000267 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000268 fun:strlen
269 fun:*dl_open_worker*
270}
271
272{
273 *rawmemchr*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000274 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000275 fun:*rawmemchr*
276 fun:*nss*
277}
278
279{
280 *strchrnul*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000281 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000282 fun:*strchrnul*
283 fun:*nss*
284}
285
286# gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
287# on Red Hat 7.2 (x86) miscompiles __mpn_construct_double in
288# __mpn_construct_double (../sysdeps/ieee754/dbl-64/mpn2dbl.c:45)
289# (glibc-2.2.4) to read and write below %esp. Hence the following
290# two:
291{
292 __mpn_construct_double/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000293 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000294 fun:__mpn_construct_double
295 fun:*
296}
297{
298 __mpn_construct_double/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000299 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000300 fun:__mpn_construct_double
301 fun:*
302}
303
304# More of the same (gcc bug, I'm pretty sure)
305{
306 __fabs/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000307 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000308 fun:__fabs
309 fun:*
310}
311{
312 __fabs/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000313 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000314 fun:__fabs
315 fun:*
316}
317
318
319# Not sure what this is about ... but anyway
320{
321 pthread_sighandler/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000322 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000323 fun:pthread_sighandler
324 fun:*
325}
326
327
328# More glibc stuff, AFAICS
329
330{
331 __strnlen/__argz_stringify/_nl_make_l10nflist(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000332 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000333 fun:__strnlen
334 fun:__argz_stringify
335 fun:_nl_make_l10nflist
336}
337
338#--------------
339{
sewardj924bc002002-06-07 00:29:39 +0000340 _dl_relocate_object*/dl_open_worker/_dl_catch_error*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000341 Memcheck:Cond
sewardj924bc002002-06-07 00:29:39 +0000342 fun:_dl_relocate_object*
gobry3b777892002-04-04 09:18:39 +0000343 fun:dl_open_worker
sewardj924bc002002-06-07 00:29:39 +0000344 fun:_dl_catch_error*
gobry3b777892002-04-04 09:18:39 +0000345}
346{
347 _dl_relocate_object/libc-2.2.4.so/_dl_catch_error(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000348 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000349 fun:_dl_relocate_object
sewardj45328392002-05-16 20:57:26 +0000350 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000351 fun:_dl_catch_error
352}
mueller1c2d0652004-02-28 21:21:46 +0000353{
thughesac0692a2004-07-17 14:16:03 +0000354 _dl_relocate_object/dl_main(Cond)
mueller1c2d0652004-02-28 21:21:46 +0000355 Memcheck:Cond
356 fun:_dl_relocate_object
357 fun:dl_main
mueller1c2d0652004-02-28 21:21:46 +0000358}
thughesf3feaaf2004-02-29 13:00:51 +0000359{
thughesac0692a2004-07-17 14:16:03 +0000360 _dl_relocate_object_internal/dl_main(Cond)
thughesf3feaaf2004-02-29 13:00:51 +0000361 Memcheck:Cond
362 fun:_dl_relocate_object_internal
363 fun:dl_main
thughesf3feaaf2004-02-29 13:00:51 +0000364}
gobry3b777892002-04-04 09:18:39 +0000365
366{
367 strrchr/_dl_map_object_from_fd/_dl_map_object(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000368 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000369 fun:strrchr
370 fun:_dl_map_object_from_fd
371 fun:_dl_map_object
372}
373
mueller1c2d0652004-02-28 21:21:46 +0000374{
375 _dl_init/ld-2.2.4.so(Cond)
376 Memcheck:Cond
377 fun:_dl_start
378 obj:/lib/ld-2.2.4.so
379}
380
gobry3b777892002-04-04 09:18:39 +0000381#-------------------
382{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000383 socketcall.connect(serv_addr)/connect/*
njn11cc9252002-10-07 14:42:59 +0000384 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000385 socketcall.connect(serv_addr)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000386 fun:connect
gobry3b777892002-04-04 09:18:39 +0000387 fun:*
388}
389{
390 socketcall.connect(serv_addr)/libc-2.2.4.so/libc-2.2.4.so
njn11cc9252002-10-07 14:42:59 +0000391 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000392 socketcall.connect(serv_addr)
sewardj45328392002-05-16 20:57:26 +0000393 obj:*libc-2.2.?.so
394 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000395}
396
397#----------------------
398{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000399 write(buf)/write/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000400 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000401 write(buf)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000402 fun:write
gobry3b777892002-04-04 09:18:39 +0000403 obj:/usr/X11R6/lib/libX11.so.6.2
404 obj:/usr/X11R6/lib/libX11.so.6.2
405}
406{
407 write(buf)/libc-2.2.4.so/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000408 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000409 write(buf)
sewardj45328392002-05-16 20:57:26 +0000410 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000411 obj:/usr/X11R6/lib/libX11.so.6.2
412 obj:/usr/X11R6/lib/libX11.so.6.2
413}
414
415#{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000416# llseek(result)/lseek64/_IO_file_seek(Param)
gobry3b777892002-04-04 09:18:39 +0000417# Param
418# llseek(result)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000419# fun:lseek64
gobry3b777892002-04-04 09:18:39 +0000420# fun:_IO_file_seek
421#}
422
423{
424 writev(vector[...])/__writev/libX11.so.6.2/libX11.so.6.2
njn11cc9252002-10-07 14:42:59 +0000425 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000426 writev(vector[...])
427 fun:__writev
428 obj:/usr/X11R6/lib/libX11.so.6.2
429 obj:/usr/X11R6/lib/libX11.so.6.2
430}
431
432#----------------
433{
434 __rawmemchr/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000435 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000436 fun:__rawmemchr
437 obj:/usr/X11R6/lib/libXt.so.6.0
438 obj:/usr/X11R6/lib/libXt.so.6.0
439}
440{
441 libc-2.2.4.so/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000442 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000443 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000444 obj:/usr/X11R6/lib/libXt.so.6.0
445 obj:/usr/X11R6/lib/libXt.so.6.0
446}
447
448##----------------------------------------------------------------------##
njn866db0d2003-05-08 07:53:52 +0000449## For a leak in Valgrind's own libpthread.so :(
450{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000451 my_malloc/get_or_allocate_specifics_ptr/pthread_key_create(Leak)
njn866db0d2003-05-08 07:53:52 +0000452 Memcheck:Leak
nethercoted71a9af2004-04-25 12:02:31 +0000453 fun:malloc
njn866db0d2003-05-08 07:53:52 +0000454 fun:my_malloc
455 fun:get_or_allocate_specifics_ptr
fitzhardinge1c76dc42003-12-15 09:00:21 +0000456 fun:pthread_key_create
njn866db0d2003-05-08 07:53:52 +0000457}
458
gobry3b777892002-04-04 09:18:39 +0000459