blob: 2d190e2f42cbc23b119d664774dc2f4c76624a32 [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{
174 _dl_fini/exit/__libc_start_main
175 Helgrind:Eraser
176 fun:_dl_fini
177 fun:exit
178 fun:__libc_start_main
179}
sewardj9bf05a82002-06-06 09:02:11 +0000180
njn25e49d8e72002-09-23 09:36:25 +0000181#-------- Threading bugs?
sewardjd8acdf22002-11-13 21:57:52 +0000182# glibc 'knows' that destroying a locked mutex will unlock it
sewardj9bf05a82002-06-06 09:02:11 +0000183{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000184 pthread_error/pthread_mutex_destroy/__closedir
njnc40c3a82002-10-02 11:02:27 +0000185 core:PThread
sewardj9bf05a82002-06-06 09:02:11 +0000186 fun:pthread_error
fitzhardinge1c76dc42003-12-15 09:00:21 +0000187 fun:pthread_mutex_destroy
sewardj9bf05a82002-06-06 09:02:11 +0000188 fun:__closedir
189}
190
191{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000192 pthread_error/pthread_mutex_destroy/_IO_default_finish
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
sewardj924bc002002-06-07 00:29:39 +0000196 fun:_IO_default_finish*
sewardj9bf05a82002-06-06 09:02:11 +0000197}
198
199{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000200 pthread_mutex_unlock/_IO_funlockfile
njnc40c3a82002-10-02 11:02:27 +0000201 core:PThread
fitzhardinge1c76dc42003-12-15 09:00:21 +0000202 fun:pthread_mutex_unlock
sewardj9bf05a82002-06-06 09:02:11 +0000203 fun:_IO_funlockfile
204}
gobry3b777892002-04-04 09:18:39 +0000205
gobry3b777892002-04-04 09:18:39 +0000206# even more glibc suppressions ?
207{
208 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000209 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000210 obj:*libc-2.2.?.so
211 obj:*libc-2.2.?.so
212 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000213}
214{
215 libc-2.2.4.so/libc-2.2.4.so/libc-2.2.4.so(Value4)
sewardj34eccb12002-10-05 16:49:09 +0000216 Memcheck:Value4
sewardj45328392002-05-16 20:57:26 +0000217 obj:*libc-2.2.?.so
218 obj:*libc-2.2.?.so
219 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000220}
221
222##### glibc 2.2.5 stuff perhaps?
223##### suppressions for coolo
224{
225 strchr/dl_open_worker(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000226 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000227 fun:strchr
228 fun:dl_open_worker
229}
230{
sewardjb55fc4e2002-07-14 13:04:38 +0000231 __rawmemchr(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000232 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000233 fun:__rawmemchr
gobry3b777892002-04-04 09:18:39 +0000234}
235{
236 _IO_vfprintf/__strnlen(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000237 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000238 fun:__strnlen
239 fun:_IO_vfprintf
240}
241{
242 __strchrnul/gethostbyname*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000243 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000244 fun:__strchrnul
245 fun:gethostbyname*
246}
247
248
249##----
250{
251 strlen/*dl_map_object*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000252 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000253 fun:strlen
254 fun:*dl_map_object*
255}
256
257{
258 strlen/*dl_open_worker*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000259 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000260 fun:strlen
261 fun:*dl_open_worker*
262}
263
264{
265 *rawmemchr*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000266 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000267 fun:*rawmemchr*
268 fun:*nss*
269}
270
271{
272 *strchrnul*/*nss*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000273 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000274 fun:*strchrnul*
275 fun:*nss*
276}
277
278# gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
279# on Red Hat 7.2 (x86) miscompiles __mpn_construct_double in
280# __mpn_construct_double (../sysdeps/ieee754/dbl-64/mpn2dbl.c:45)
281# (glibc-2.2.4) to read and write below %esp. Hence the following
282# two:
283{
284 __mpn_construct_double/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000285 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000286 fun:__mpn_construct_double
287 fun:*
288}
289{
290 __mpn_construct_double/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000291 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000292 fun:__mpn_construct_double
293 fun:*
294}
295
296# More of the same (gcc bug, I'm pretty sure)
297{
298 __fabs/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000299 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000300 fun:__fabs
301 fun:*
302}
303{
304 __fabs/*(Addr8)
njn11cc9252002-10-07 14:42:59 +0000305 Addrcheck,Memcheck:Addr8
gobry3b777892002-04-04 09:18:39 +0000306 fun:__fabs
307 fun:*
308}
309
310
311# Not sure what this is about ... but anyway
312{
313 pthread_sighandler/*(Addr4)
njn11cc9252002-10-07 14:42:59 +0000314 Addrcheck,Memcheck:Addr4
gobry3b777892002-04-04 09:18:39 +0000315 fun:pthread_sighandler
316 fun:*
317}
318
319
320# More glibc stuff, AFAICS
321
322{
323 __strnlen/__argz_stringify/_nl_make_l10nflist(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000324 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000325 fun:__strnlen
326 fun:__argz_stringify
327 fun:_nl_make_l10nflist
328}
329
330#--------------
331{
sewardj924bc002002-06-07 00:29:39 +0000332 _dl_relocate_object*/dl_open_worker/_dl_catch_error*(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000333 Memcheck:Cond
sewardj924bc002002-06-07 00:29:39 +0000334 fun:_dl_relocate_object*
gobry3b777892002-04-04 09:18:39 +0000335 fun:dl_open_worker
sewardj924bc002002-06-07 00:29:39 +0000336 fun:_dl_catch_error*
gobry3b777892002-04-04 09:18:39 +0000337}
338{
339 _dl_relocate_object/libc-2.2.4.so/_dl_catch_error(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000340 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000341 fun:_dl_relocate_object
sewardj45328392002-05-16 20:57:26 +0000342 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000343 fun:_dl_catch_error
344}
mueller1c2d0652004-02-28 21:21:46 +0000345{
346 _dl_relocate_object/dl_main/_dl_sysdep_start/_dl_start_final(Cond)
347 Memcheck:Cond
348 fun:_dl_relocate_object
349 fun:dl_main
350 fun:_dl_sysdep_start
351 fun:_dl_start_final
352}
gobry3b777892002-04-04 09:18:39 +0000353
354{
355 strrchr/_dl_map_object_from_fd/_dl_map_object(Cond)
sewardj34eccb12002-10-05 16:49:09 +0000356 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000357 fun:strrchr
358 fun:_dl_map_object_from_fd
359 fun:_dl_map_object
360}
361
mueller1c2d0652004-02-28 21:21:46 +0000362{
363 _dl_init/ld-2.2.4.so(Cond)
364 Memcheck:Cond
365 fun:_dl_start
366 obj:/lib/ld-2.2.4.so
367}
368
gobry3b777892002-04-04 09:18:39 +0000369#-------------------
370{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000371 socketcall.connect(serv_addr)/connect/*
njn11cc9252002-10-07 14:42:59 +0000372 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000373 socketcall.connect(serv_addr)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000374 fun:connect
gobry3b777892002-04-04 09:18:39 +0000375 fun:*
376}
377{
378 socketcall.connect(serv_addr)/libc-2.2.4.so/libc-2.2.4.so
njn11cc9252002-10-07 14:42:59 +0000379 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000380 socketcall.connect(serv_addr)
sewardj45328392002-05-16 20:57:26 +0000381 obj:*libc-2.2.?.so
382 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000383}
384
385#----------------------
386{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000387 write(buf)/write/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000388 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000389 write(buf)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000390 fun:write
gobry3b777892002-04-04 09:18:39 +0000391 obj:/usr/X11R6/lib/libX11.so.6.2
392 obj:/usr/X11R6/lib/libX11.so.6.2
393}
394{
395 write(buf)/libc-2.2.4.so/libX11.so.6.2/libX11.so.6.2(Param)
njn11cc9252002-10-07 14:42:59 +0000396 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000397 write(buf)
sewardj45328392002-05-16 20:57:26 +0000398 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000399 obj:/usr/X11R6/lib/libX11.so.6.2
400 obj:/usr/X11R6/lib/libX11.so.6.2
401}
402
403#{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000404# llseek(result)/lseek64/_IO_file_seek(Param)
gobry3b777892002-04-04 09:18:39 +0000405# Param
406# llseek(result)
fitzhardinge1c76dc42003-12-15 09:00:21 +0000407# fun:lseek64
gobry3b777892002-04-04 09:18:39 +0000408# fun:_IO_file_seek
409#}
410
411{
412 writev(vector[...])/__writev/libX11.so.6.2/libX11.so.6.2
njn11cc9252002-10-07 14:42:59 +0000413 Addrcheck,Memcheck:Param
gobry3b777892002-04-04 09:18:39 +0000414 writev(vector[...])
415 fun:__writev
416 obj:/usr/X11R6/lib/libX11.so.6.2
417 obj:/usr/X11R6/lib/libX11.so.6.2
418}
419
420#----------------
421{
422 __rawmemchr/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000423 Memcheck:Cond
gobry3b777892002-04-04 09:18:39 +0000424 fun:__rawmemchr
425 obj:/usr/X11R6/lib/libXt.so.6.0
426 obj:/usr/X11R6/lib/libXt.so.6.0
427}
428{
429 libc-2.2.4.so/libXt.so.6.0/libXt.so.6.0
sewardj34eccb12002-10-05 16:49:09 +0000430 Memcheck:Cond
sewardj45328392002-05-16 20:57:26 +0000431 obj:*libc-2.2.?.so
gobry3b777892002-04-04 09:18:39 +0000432 obj:/usr/X11R6/lib/libXt.so.6.0
433 obj:/usr/X11R6/lib/libXt.so.6.0
434}
435
436##----------------------------------------------------------------------##
njn866db0d2003-05-08 07:53:52 +0000437## For a leak in Valgrind's own libpthread.so :(
438{
fitzhardinge1c76dc42003-12-15 09:00:21 +0000439 my_malloc/get_or_allocate_specifics_ptr/pthread_key_create(Leak)
njn866db0d2003-05-08 07:53:52 +0000440 Memcheck:Leak
441 fun:my_malloc
442 fun:get_or_allocate_specifics_ptr
fitzhardinge1c76dc42003-12-15 09:00:21 +0000443 fun:pthread_key_create
njn866db0d2003-05-08 07:53:52 +0000444}
445
gobry3b777892002-04-04 09:18:39 +0000446