blob: 9ca930066e33fcb8180b13af67dbc7677f2a76cc [file] [log] [blame]
daywalker63f6f782003-05-27 00:19:52 +00001
2##----------------------------------------------------------------------##
3
4# Errors to suppress by default with glibc 2.3.x
5
6# Format of this file is:
7# {
8# name_of_suppression
nethercote137bc552003-11-14 17:47:54 +00009# tool_name:supp_kind
daywalker63f6f782003-05-27 00:19:52 +000010# (optional extra info for some suppression types)
11# caller0 name, or /name/of/so/file.so
12# caller1 name, or ditto
13# (optionally: caller2 name)
14# (optionally: caller3 name)
15# }
16#
17# For Memcheck, the supp_kinds are:
18#
njn718d3b12006-12-16 00:54:12 +000019# Param Value1 Value2 Value4 Value8 Value16 Jump
njnc0616662003-06-12 09:58:41 +000020# Free Addr1 Addr2 Addr4 Addr8 Addr16
daywalker63f6f782003-05-27 00:19:52 +000021# Cond (previously known as Value0)
22#
23# and the optional extra info is:
24# if Param: name of system call param
daywalker63f6f782003-05-27 00:19:52 +000025
daywalker63f6f782003-05-27 00:19:52 +000026{
27 __GI___stpcpy/*
28 Memcheck:Cond
29 fun:__GI___stpcpy
30 fun:*
31}
32{
33 strlen/__GI__dl_open/dlopen_doit
34 Memcheck:Cond
35 fun:strlen
36 fun:__GI__dl_open
37 fun:dlopen_doit
38}
39{
40 strlen/_dl_signal_cerror/_dl_lookup_symbol_internal/do_dlsym
41 Memcheck:Cond
42 fun:_dl_signal_cerror
43 fun:_dl_lookup_symbol_internal
44 fun:do_dlsym
45}
daywalkere1879992003-06-03 14:49:54 +000046{
47 strlen/*dl_map_object*(Cond)
48 Memcheck:Cond
49 fun:strlen
50 fun:*dl_map_object*
51}
daywalker63f6f782003-05-27 00:19:52 +000052
daywalkere1879992003-06-03 14:49:54 +000053{
54 strlen/*dl_open_worker*(Cond)
55 Memcheck:Cond
56 fun:strlen
57 fun:*dl_open_worker*
58}
59{
60 strlen/_dl_sym/dlsym_doit
61 Memcheck:Cond
62 fun:strlen
63 fun:_dl_sym
64 fun:dlsym_doit
65}
66{
67 realpath is inefficiently coded
njn1d0825f2006-03-27 11:37:07 +000068 Memcheck:Overlap
daywalkere1879992003-06-03 14:49:54 +000069 fun:memcpy
daywalker777aff52003-07-18 08:06:27 +000070 fun:realpath*
daywalkere1879992003-06-03 14:49:54 +000071}
72
73{
74 realpath stupidity part II
njn1d0825f2006-03-27 11:37:07 +000075 Memcheck:Overlap
daywalkere1879992003-06-03 14:49:54 +000076 fun:strcpy
daywalker777aff52003-07-18 08:06:27 +000077 fun:realpath*
daywalkere1879992003-06-03 14:49:54 +000078}
79{
80 strlen/decompose_rpath/_dl_map_object
81 Memcheck:Cond
82 fun:strlen
83 fun:decompose_rpath
84 fun:*dl_map_object*
85}
86{
87 stpcpy/_dl_sym*
88 Memcheck:Cond
89 fun:__stpcpy
90 fun:_dl_*
91}
daywalker63f6f782003-05-27 00:19:52 +000092
93#-------- For R H 8.0
94{
95 elf_dynamic_do_rel.7/_dl_relocate_object_internal/dl_open_worker(Cond)
96 Memcheck:Cond
97 fun:elf_dynamic_do_rel.7
98 fun:_dl_relocate_object_internal
99 fun:dl_open_worker
100}
daywalkere1879992003-06-03 14:49:54 +0000101{
102 dl_relocate/dl_open_worker
103 Memcheck:Cond
104 fun:_dl_relocate_object_internal
105 fun:dl_open_worker
106}
sewardj645b94f2007-02-25 00:03:00 +0000107{
108 RedHat8-1
109 Memcheck:Cond
110 fun:elf_dynamic_do_rela.8
111 fun:_dl_relocate_object
112 fun:dl_main
113 fun:_dl_sysdep_start
114}
115{
116 RedHat8-2
117 Memcheck:Cond
118 fun:elf_dynamic_do_rel.7
119 fun:_dl_relocate_object
120 fun:dl_main
121 fun:_dl_sysdep_start
122}
123{
124 RedHat8-3
125 Memcheck:Cond
126 fun:elf_dynamic_do_rela.8
127 fun:_dl_relocate_object
128 fun:dl_open_worker
129}
daywalkere1879992003-06-03 14:49:54 +0000130
fitzhardinge1c76dc42003-12-15 09:00:21 +0000131#-------- glibc 2.3.2/ Fedora Core 1
132{
133 dl_relocate/dl_main
134 Memcheck:Cond
135 fun:_dl_relocate_object_internal
136 fun:dl_main
137}
138
rjwalsh923e7d62004-04-29 08:50:44 +0000139#-------- glibc 2.3.3/ Fedora Core 2
140{
141 dl_relocate_object/dl_main
142 Memcheck:Cond
143 fun:_dl_relocate_object
144 fun:dl_main
145}
thughese931fd42004-06-03 18:42:34 +0000146{
147 _dl_relocate_object/dl_open_worker
148 Memcheck:Cond
149 fun:_dl_relocate_object
150 fun:dl_open_worker
151}
rjwalsh923e7d62004-04-29 08:50:44 +0000152
sewardjb5f6f512005-03-10 23:59:00 +0000153#-------- glibc 2.3.4/ Fedora Core 3
154{
155 dl_relocate_object
156 Memcheck:Cond
157 fun:_dl_relocate_object
158}
159
daywalker63f6f782003-05-27 00:19:52 +0000160##----------------------------------------------------------------------##
sewardj7c874c72003-09-27 21:25:30 +0000161## Bugs in helper library supplied with Intel Icc 7.0 (65)
162## in /opt/intel/compiler70/ia32/lib/libcxa.so.3
163{
164 Intel compiler70/ia32/lib/libcxa.so.3 below-esp accesses
njn1d0825f2006-03-27 11:37:07 +0000165 Memcheck:Addr4
sewardj7c874c72003-09-27 21:25:30 +0000166 obj:/opt/intel/compiler70/ia32/lib/libcxa.so.3
167}
jsewardf93e8472003-12-24 11:45:16 +0000168
169##----------------------------------------------------------------------##
170## SuSE 9 after FV changes (post 2.1.0)
171
172{
173 strlen/_dl_init_paths/dl_main/_dl_sysdep_start(Cond)
174 Memcheck:Cond
175 fun:strlen
176 fun:_dl_init_paths
177 fun:dl_main
178 fun:_dl_sysdep_start
179}
180
181{
182 Ugly strchr error in /lib/ld-2.3.2.so
183 Memcheck:Cond
184 obj:/lib/ld-2.3.2.so
185}
fitzhardinge47735af2004-01-21 01:27:27 +0000186
187##----------------------------------------------------------------------##
jseward38276e82004-07-20 22:42:44 +0000188## SuSE 9.1 with post 2.1.2
fitzhardinge47735af2004-01-21 01:27:27 +0000189{
jseward38276e82004-07-20 22:42:44 +0000190 Ugly strchr error in /lib/ld-2.3.3.so
fitzhardinge47735af2004-01-21 01:27:27 +0000191 Memcheck:Cond
jseward38276e82004-07-20 22:42:44 +0000192 obj:/lib/ld-2.3.3.so
fitzhardinge47735af2004-01-21 01:27:27 +0000193}
sewardj0d683fe2005-03-14 19:25:49 +0000194
195##----------------------------------------------------------------------##
196## SuSE 9.1 with 3.0 branch (x86)
197{
198 Strstr dubiousness in pthread_initialize
199 Memcheck:Cond
200 fun:strstr
201 fun:pthread_initialize
202 obj:/lib/libpthread.so.0
203 obj:/lib/libpthread.so.0
204}
205
sewardjb5f6f512005-03-10 23:59:00 +0000206##----------------------------------------------------------------------##
207## glibc-2.3.3 on FC2
208## Assumes that sysctl returns \0-terminated strings in is_smp_system
sewardjf8033c72005-05-16 16:39:28 +0000209#{
210# Unterminated strstr string in is_smp_system() (NPTL)
211# Memcheck:Cond
212# fun:strstr
213# fun:__pthread_initialize_minimal
214# obj:/lib/tls/libpthread*.so*
215# obj:/lib/tls/libpthread*.so*
216#}
217#{
218# Unterminated strstr string in is_smp_system() (LinuxThreads)
219# Memcheck:Cond
220# fun:strstr
221# fun:pthread_initialize
222# obj:/lib/i686/libpthread*.so*
223# obj:/lib/i686/libpthread*.so*
224#}
225#{
226# Unterminated strstr string in is_smp_system() (LinuxThreads)
227# Memcheck:Cond
228# fun:strstr
229# fun:pthread_initialize
230# obj:/lib/libpthread-0.10.so
231# obj:/lib/libpthread-0.10.so
232#}
sewardjb5f6f512005-03-10 23:59:00 +0000233
234## Bug in PRE(sys_clone), really. Some args are not used.
235{
236 LinuxThread clone use (parent_tidptr)
237 Memcheck:Param
238 clone(parent_tidptr)
239 fun:clone
240 fun:pthread_create
241}
242{
243 LinuxThread clone use (child_tidptr)
244 Memcheck:Param
245 clone(child_tidptr)
246 fun:clone
247 fun:pthread_create
248}
249{
250 LinuxThread clone use (tlsinfo)
251 Memcheck:Param
252 clone(tlsinfo)
253 fun:clone
254 fun:pthread_create
255}
256{
257 LinuxThread clone use (parent_tidptr)
258 Memcheck:Param
259 clone(parent_tidptr)
260 fun:clone
261 fun:pthread_create@@GLIBC_2.1
262}
263{
264 LinuxThread clone use (child_tidptr)
265 Memcheck:Param
266 clone(child_tidptr)
267 fun:clone
268 fun:pthread_create@@GLIBC_2.1
269}
270{
271 LinuxThread clone use (tlsinfo)
272 Memcheck:Param
273 clone(tlsinfo)
274 fun:clone
275 fun:pthread_create@@GLIBC_2.1
276}
277
278## LinuxThreads manager writes messages containing undefined bytes
279{
280 LinuxThreads: write/pthread_onexit_process
281 Memcheck:Param
282 write(buf)
283 fun:pthread_onexit_process
284 fun:exit
285}
286{
287 LinuxThreads: write/pthread_join
288 Memcheck:Param
289 write(buf)
290 fun:pthread_join
291}
292{
293 LinuxThreads: write/pthread_create
294 Memcheck:Param
295 write(buf)
296 fun:pthread_create@@GLIBC_2.1
297}
298{
sewardj66225ad2007-03-12 14:53:58 +0000299 LinuxThreads: write/pthread_create 2
300 Memcheck:Param
301 write(buf)
302 fun:write
303 fun:pthread_create@@GLIBC_2.1
304 fun:main
305}
306{
sewardjb5f6f512005-03-10 23:59:00 +0000307 LinuxThreads: write/__pthread_initialize_manager/pthread_create
308 Memcheck:Param
309 write(buf)
310 fun:__pthread_initialize_manager
311 fun:pthread_create@@GLIBC_2.1
312}
313
314{
315 LinuxThreads: write/pthread_create
316 Memcheck:Param
317 write(buf)
318 fun:write
319 fun:pthread_create
320}
321
tomf7e9d872005-08-20 12:05:32 +0000322## LinuxThreads leaks the stack and TLS data for the manager thread
323{
324 LinuxThreads: leaks stack of manager thread
325 Memcheck:Leak
326 fun:malloc
327 fun:__pthread_initialize_manager
328 fun:pthread_create@@GLIBC_2.1
329}
330{
331 LinuxThreads: leaks TLS data for manager thread
332 Memcheck:Leak
333 fun:calloc
334 fun:_dl_allocate_tls
335 fun:__pthread_initialize_minimal
336}
337{
338 LinuxThreads: leaks TLS data for manager thread
339 Memcheck:Leak
340 fun:memalign
341 fun:_dl_allocate_tls
342 fun:__pthread_initialize_minimal
343}
344
sewardjb5f6f512005-03-10 23:59:00 +0000345##----------------------------------------------------------------------##
346## glibc-2.3.4 on FC3
347## Assumes that sysctl returns \0-terminated strings in is_smp_system
sewardjf8033c72005-05-16 16:39:28 +0000348#{
349# Unterminated strstr string in is_smp_system() (NPTL)
350# Memcheck:Cond
351# fun:strstr
352# fun:__pthread_initialize_minimal
353# obj:/lib/tls/libpthread-2.3.4.so
354# obj:/lib/tls/libpthread-2.3.4.so
355#}
356#{
357# Unterminated strstr string in is_smp_system() (NPTL)
358# Memcheck:Cond
359# fun:strstr
360# fun:__pthread_initialize_minimal
361# obj:/lib64/tls/libpthread*.so*
362#}
sewardj24b46342005-05-12 18:00:12 +0000363
sewardj917701d2005-05-15 17:18:40 +0000364##----------------------------------------------------------------------##
365## glibc-2.3.5 on FC4
366## Assumes that sysctl returns \0-terminated strings in is_smp_system
sewardjf8033c72005-05-16 16:39:28 +0000367#{
368# Unterminated strstr string in is_smp_system() (NPTL)
369# Memcheck:Cond
370# fun:strstr
371# fun:__pthread_initialize_minimal
372# obj:*/libpthread-2.3.5.so
373# obj:*/libpthread-2.3.5.so
374#}
sewardj24b46342005-05-12 18:00:12 +0000375
376
377##----------------------------------------------------------------------##
sewardj31d83422005-10-15 02:00:41 +0000378#
379# I don't know why this is needed, but still:
380{
dirk671ccb22006-02-22 16:10:16 +0000381 glibc-2.3.x-on-SuSE-10.0-(PPC)-1
sewardj31d83422005-10-15 02:00:41 +0000382 Memcheck:Cond
383 fun:_dl_start
384 fun:_start
385}
sewardj285c0b72005-11-18 00:15:18 +0000386{
dirk671ccb22006-02-22 16:10:16 +0000387 glibc-2.3.x-on-SuSE-10.1-(PPC)-1
388 Memcheck:Cond
389 fun:_dl_start_final
390 fun:_dl_start
391 fun:_start
392}
393{
dirkb4fdb122006-02-21 18:04:16 +0000394 glibc-2.3.x-on-SuSE-10.0/10.1-(PPC)-2a
sewardj285c0b72005-11-18 00:15:18 +0000395 Memcheck:Cond
396 fun:index
dirkb4fdb122006-02-21 18:04:16 +0000397 obj:*ld-2.3.*.so
sewardj285c0b72005-11-18 00:15:18 +0000398}
399{
dirkb4fdb122006-02-21 18:04:16 +0000400 glibc-2.3.x-on-SuSE-10.0/10.1-(PPC)-2b
sewardj285c0b72005-11-18 00:15:18 +0000401 Memcheck:Addr4
402 fun:index
403 fun:expand_dynamic_string_token
404}
405{
dirkb4fdb122006-02-21 18:04:16 +0000406 glibc-2.3.5-on-SuSE-10.0/10.1-(PPC)-2c
sewardj37a1fc12005-11-18 18:33:28 +0000407 Memcheck:Addr4
408 fun:index
dirkb4fdb122006-02-21 18:04:16 +0000409 obj:*ld-2.3.*.so
sewardj37a1fc12005-11-18 18:33:28 +0000410}
411{
dirkb4fdb122006-02-21 18:04:16 +0000412 glibc-2.3.5-on-SuSE-10.0/10.1-(PPC)-3
sewardj285c0b72005-11-18 00:15:18 +0000413 Memcheck:Addr4
414 fun:*wordcopy_fwd_dest_aligned*
415 fun:mem*cpy
dirkb4fdb122006-02-21 18:04:16 +0000416 obj:*lib*2.3.*.so
sewardj285c0b72005-11-18 00:15:18 +0000417}
sewardjd1e697a2006-05-07 23:38:23 +0000418{
419 glibc-2.3.5-on-SuSE-10.0/10.1-(PPC)-4
420 Memcheck:Addr4
421 fun:bcmp
422 fun:*rpath*
423 fun:*rpath*
424 fun:*rpath*
425}
sewardj31d83422005-10-15 02:00:41 +0000426
427##----------------------------------------------------------------------##
sewardj24b46342005-05-12 18:00:12 +0000428# Hacks pertaining to the fact that our intercept mechanism can't
429# always get hold of strlen early enough, due to idiocy in the low
430# level memory manager.
431
432## HACK to do with strlen not being intercepted early enough
433{
434 strlen-not-intercepted-early-enough-HACK-1
435 Memcheck:Addr4
436 fun:strlen
437 fun:_dl_map_object_from_fd
438 fun:_dl_map_object
439}
440
441{
442 strlen-not-intercepted-early-enough-HACK-2
443 Memcheck:Addr4
444 fun:strlen
445 fun:decompose_rpath
446 fun:cache_rpath
447 fun:_dl_map_object
448}
449
450{
451 strlen-not-intercepted-early-enough-HACK-3
452 Memcheck:Cond
453 fun:strlen
454 fun:_dl_new_object
455 fun:_dl_map_object_from_fd
456 fun:_dl_map_object
457}
458
459{
460 strlen-not-intercepted-early-enough-HACK-4
461 Memcheck:Cond
462 fun:strlen
463 fun:expand_dynamic_string_token
464 fun:_dl_map_object
465}
466
467{
468 strlen-not-intercepted-early-enough-HACK-5
469 Memcheck:Cond
470 fun:strlen
471 fun:fillin_rpath
472 fun:_dl_init_paths
473}
474
475
476## HACK to do with index not being intercepted early enough
477{
478 index-not-intercepted-early-enough-HACK-1
479 Memcheck:Cond
480 fun:index
dirk59b559a2005-08-19 20:23:49 +0000481 obj:*
sewardj24b46342005-05-12 18:00:12 +0000482 fun:_dl_map_object
483}
484{
485 index-not-intercepted-early-enough-HACK-2
486 Memcheck:Cond
487 fun:index
488 fun:_dl_map_object
dirk59b559a2005-08-19 20:23:49 +0000489 obj:*
sewardj24b46342005-05-12 18:00:12 +0000490 fun:_dl_catch_error
491}
492{
493 index-not-intercepted-early-enough-HACK-3
494 Memcheck:Cond
495 fun:index
496 fun:_dl_map_object
dirk59b559a2005-08-19 20:23:49 +0000497 obj:*
sewardj24b46342005-05-12 18:00:12 +0000498 fun:_dl_sysdep_start
499}
sewardjf36e99a2005-11-13 02:42:23 +0000500
sewardj59f18112006-02-10 12:42:46 +0000501{
502 index-not-intercepted-early-enough-HACK-4
503 Memcheck:Cond
504 fun:index
505 fun:expand_dynamic_string_token
506}
507
508
sewardjf36e99a2005-11-13 02:42:23 +0000509##----------------------------------------------------------------------##
510## MontaVista 3.1 on ppc32 integer only
511{
512 MontaVista-3.1-ppc32-#1
513 Memcheck:Value4
514 obj:/lib/ld-2.3.2.so
515 obj:/lib/ld-2.3.2.so
516 fun:*dl_map_object*
517 obj:/lib/libc-2.3.2.so
518}
519
520{
521 MontaVista-3.1-ppc32-#2
522 Memcheck:Value4
523 fun:malloc
524 obj:/lib/ld-2.3.2.so
525 obj:/lib/ld-2.3.2.so
526 obj:/lib/libc-2.3.2.so
527}
528
529{
530 MontaVista-3.1-ppc32-#3
531 Memcheck:Value4
532 obj:/lib/ld-2.3.2.so
533 obj:/lib/ld-2.3.2.so
534}
njn1132e822005-11-18 17:09:36 +0000535
536##----------------------------------------------------------------------##
537## Ubuntu something (based on Debian 3.0?) on x86
538
539{
540 Ubuntu-stripped-ld.so
541 Memcheck:Cond
dirkff0a32a2006-02-27 08:41:32 +0000542 obj:/lib/ld-2.3.*.so
543 obj:/lib/ld-2.3.*.so
544 obj:/lib/ld-2.3.*.so
545 obj:/lib/ld-2.3.*.so
546 obj:/lib/ld-2.3.*.so
njn1132e822005-11-18 17:09:36 +0000547}
548
sewardj5ce775f2007-01-05 15:09:53 +0000549##----------------------------------------------------------------------##
550# MontaVista Linux 4.0.1 on ppc32
551{
552 MVL-401-linuxthreads-pthread_create
553 Memcheck:Param
554 write(buf)
555 fun:pthread_create
556}
557{
558 MVL-401-linuxthreads-pthread_create
559 Memcheck:Param
560 write(buf)
561 obj:/lib/libpthread-0.10.so
562 fun:pthread_create
563}