blob: b774bfd97a7c57d62764e6fc299d16b80c70e8e3 [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
thughes361cda72004-10-30 20:39:10 +0000189{
190 _dl_map_object_deps/dl_open_worker/_dl_catch_error/_dl_open
191 Helgrind:Eraser
192 fun:_dl_map_object_deps
193 fun:dl_open_worker
194 fun:_dl_catch_error
195 fun:_dl_open
196}
197
njn25e49d8e72002-09-23 09:36:25 +0000198#-------- Threading bugs?
sewardjd8acdf22002-11-13 21:57:52 +0000199# glibc 'knows' that destroying a locked mutex will unlock it
sewardj9bf05a82002-06-06 09:02:11 +0000200{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000201 pthread_error/pthread_mutex_destroy/__closedir
njnc40c3a82002-10-02 11:02:27 +0000202 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000203 fun:pthread_error
fitzhardinge1c76dc42003-12-15 09:00:21 +0000204 fun:pthread_mutex_destroy
sewardj9bf05a82002-06-06 09:02:11 +0000205 fun:__closedir
206}
207
208{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000209 pthread_error/pthread_mutex_destroy/_IO_default_finish
njnc40c3a82002-10-02 11:02:27 +0000210 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000211 fun:pthread_error
fitzhardinge1c76dc42003-12-15 09:00:21 +0000212 fun:pthread_mutex_destroy
sewardj924bc002002-06-07 00:29:39 +0000213 fun:_IO_default_finish*
sewardj9bf05a82002-06-06 09:02:11 +0000214}
215
216{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000217 pthread_mutex_unlock/_IO_funlockfile
njnc40c3a82002-10-02 11:02:27 +0000218 core:PThread
fitzhardinge1c76dc42003-12-15 09:00:21 +0000219 fun:pthread_mutex_unlock
sewardj9bf05a82002-06-06 09:02:11 +0000220 fun:_IO_funlockfile
221}
gobry3b777892002-04-04 09:18:39 +0000222
gobry3b777892002-04-04 09:18:39 +0000223# even more glibc suppressions ?
224{
225 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000226 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000227 obj:*libc-2.2.?.so
228 obj:*libc-2.2.?.so
229 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000230}
231{
232 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Value4)
sewardj34eccb12002-10-05 16:49:09 +0000233 Memcheck:Value4
sewardj45328392002-05-16 20:57:26 +0000234 obj:*libc-2.2.?.so
235 obj:*libc-2.2.?.so
236 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000237}
238
239##### glibc 2.2.5 stuff perhaps?
240##### suppressions for coolo
241{
242 strchr/dl_open_worker(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000243 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000244 fun:strchr
245 fun:dl_open_worker
246}
247{
sewardjb55fc4e2002-07-14 13:04:38 +0000248 __rawmemchr(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000249 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000250 fun:__rawmemchr
gobry3b777892002-04-04 09:18:39 +0000251}
252{
253 _IO_vfprintf/__strnlen(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000254 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000255 fun:__strnlen
256 fun:_IO_vfprintf
257}
258{
259 __strchrnul/gethostbyname*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000260 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000261 fun:__strchrnul
262 fun:gethostbyname*
263}
264
265
266##----
267{
268 strlen/*dl_map_object*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000269 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000270 fun:strlen
271 fun:*dl_map_object*
272}
273
274{
275 strlen/*dl_open_worker*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000276 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000277 fun:strlen
278 fun:*dl_open_worker*
279}
280
281{
282 *rawmemchr*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000283 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000284 fun:*rawmemchr*
285 fun:*nss*
286}
287
288{
289 *strchrnul*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000290 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000291 fun:*strchrnul*
292 fun:*nss*
293}
294
295# gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
296# on Red Hat 7.2 (x86) miscompiles __mpn_construct_double in
297# __mpn_construct_double (../sysdeps/ieee754/dbl-64/mpn2dbl.c:45)
298# (glibc-2.2.4) to read and write below %esp. Hence the following
299# two:
300{
301 __mpn_construct_double/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000302 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000303 fun:__mpn_construct_double
304 fun:*
305}
306{
307 __mpn_construct_double/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000308 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000309 fun:__mpn_construct_double
310 fun:*
311}
312
313# More of the same (gcc bug, I'm pretty sure)
314{
315 __fabs/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000316 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000317 fun:__fabs
318 fun:*
319}
320{
321 __fabs/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000322 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000323 fun:__fabs
324 fun:*
325}
326
327
328# Not sure what this is about ... but anyway
329{
330 pthread_sighandler/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000331 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000332 fun:pthread_sighandler
333 fun:*
334}
335
336
337# More glibc stuff, AFAICS
338
339{
340 __strnlen/__argz_stringify/_nl_make_l10nflist(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000341 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000342 fun:__strnlen
343 fun:__argz_stringify
344 fun:_nl_make_l10nflist
345}
346
347#--------------
348{
sewardj924bc002002-06-07 00:29:39 +0000349 _dl_relocate_object*/dl_open_worker/_dl_catch_error*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000350 Memcheck:Cond
sewardj924bc002002-06-07 00:29:39 +0000351 fun:_dl_relocate_object*
gobry3b777892002-04-04 09:18:39 +0000352 fun:dl_open_worker
sewardj924bc002002-06-07 00:29:39 +0000353 fun:_dl_catch_error*
gobry3b777892002-04-04 09:18:39 +0000354}
355{
356 _dl_relocate_object/libc-2.2.4.so/_dl_catch_error(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000357 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000358 fun:_dl_relocate_object
sewardj45328392002-05-16 20:57:26 +0000359 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000360 fun:_dl_catch_error
361}
mueller1c2d0652004-02-28 21:21:46 +0000362{
thughesac0692a2004-07-17 14:16:03 +0000363 _dl_relocate_object/dl_main(Cond)
mueller1c2d0652004-02-28 21:21:46 +0000364 Memcheck:Cond
365 fun:_dl_relocate_object
366 fun:dl_main
mueller1c2d0652004-02-28 21:21:46 +0000367}
thughesf3feaaf2004-02-29 13:00:51 +0000368{
thughesac0692a2004-07-17 14:16:03 +0000369 _dl_relocate_object_internal/dl_main(Cond)
thughesf3feaaf2004-02-29 13:00:51 +0000370 Memcheck:Cond
371 fun:_dl_relocate_object_internal
372 fun:dl_main
thughesf3feaaf2004-02-29 13:00:51 +0000373}
gobry3b777892002-04-04 09:18:39 +0000374
375{
376 strrchr/_dl_map_object_from_fd/_dl_map_object(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000377 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000378 fun:strrchr
379 fun:_dl_map_object_from_fd
380 fun:_dl_map_object
381}
382
mueller1c2d0652004-02-28 21:21:46 +0000383{
384 _dl_init/ld-2.2.4.so(Cond)
385 Memcheck:Cond
386 fun:_dl_start
387 obj:/lib/ld-2.2.4.so
388}
389
gobry3b777892002-04-04 09:18:39 +0000390#-------------------
391{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000392 socketcall.connect(serv_addr)/connect/*
njn11cc9252002-10-07 14:42:59 +0000393 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000394 socketcall.connect(serv_addr)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000395 fun:connect
gobry3b777892002-04-04 09:18:39 +0000396 fun:*
397}
398{
399 socketcall.connect(serv_addr)/libc-2.2.4.so/libc-2.2.4.so
njn11cc9252002-10-07 14:42:59 +0000400 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000401 socketcall.connect(serv_addr)
sewardj45328392002-05-16 20:57:26 +0000402 obj:*libc-2.2.?.so
403 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000404}
405
406#----------------------
407{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000408 write(buf)/write/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000409 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000410 write(buf)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000411 fun:write
gobry3b777892002-04-04 09:18:39 +0000412 obj:/usr/X11R6/lib/libX11.so.6.2
413 obj:/usr/X11R6/lib/libX11.so.6.2
414}
415{
416 write(buf)/libc-2.2.4.so/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000417 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000418 write(buf)
sewardj45328392002-05-16 20:57:26 +0000419 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000420 obj:/usr/X11R6/lib/libX11.so.6.2
421 obj:/usr/X11R6/lib/libX11.so.6.2
422}
423
424#{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000425# llseek(result)/lseek64/_IO_file_seek(Param)
gobry3b777892002-04-04 09:18:39 +0000426# Param
427# llseek(result)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000428# fun:lseek64
gobry3b777892002-04-04 09:18:39 +0000429# fun:_IO_file_seek
430#}
431
432{
433 writev(vector[...])/__writev/libX11.so.6.2/libX11.so.6.2
njn11cc9252002-10-07 14:42:59 +0000434 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000435 writev(vector[...])
436 fun:__writev
437 obj:/usr/X11R6/lib/libX11.so.6.2
438 obj:/usr/X11R6/lib/libX11.so.6.2
439}
440
441#----------------
442{
443 __rawmemchr/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000444 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000445 fun:__rawmemchr
446 obj:/usr/X11R6/lib/libXt.so.6.0
447 obj:/usr/X11R6/lib/libXt.so.6.0
448}
449{
450 libc-2.2.4.so/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000451 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000452 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000453 obj:/usr/X11R6/lib/libXt.so.6.0
454 obj:/usr/X11R6/lib/libXt.so.6.0
455}
456
457##----------------------------------------------------------------------##
njn866db0d2003-05-08 07:53:52 +0000458## For a leak in Valgrind's own libpthread.so :(
459{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000460 my_malloc/get_or_allocate_specifics_ptr/pthread_key_create(Leak)
njn866db0d2003-05-08 07:53:52 +0000461 Memcheck:Leak
nethercoted71a9af2004-04-25 12:02:31 +0000462 fun:malloc
njn866db0d2003-05-08 07:53:52 +0000463 fun:my_malloc
464 fun:get_or_allocate_specifics_ptr
fitzhardinge1c76dc42003-12-15 09:00:21 +0000465 fun:pthread_key_create
njn866db0d2003-05-08 07:53:52 +0000466}
467
gobry3b777892002-04-04 09:18:39 +0000468