blob: 095fb5510e8ab07dd791ec361f69a34876524208 [file] [log] [blame]
njnf76d27a2009-05-28 01:53:07 +00001
njnf76d27a2009-05-28 01:53:07 +00002# Suppressions for Darwin 9.x / Mac OS X 10.5 Leopard
njnd4f90d22009-07-13 07:02:26 +00003
4##----------------------------------------------------------------------##
5# Memcheck
6##----------------------------------------------------------------------##
njnf76d27a2009-05-28 01:53:07 +00007
8{
9 mach_msg_trap-1
10 Memcheck:Param
11 mach_msg(msg.msgh_remote_port)
12 fun:mach_msg_trap
13 obj:/System/Library/Frameworks/CoreFoundation*
14 obj:/System/Library/Frameworks/ApplicationServices*
15}
16
17{
18 mach_msg_trap-2
19 Memcheck:Param
20 mach_msg(msg.msgh_remote_port)
21 fun:mach_msg_trap
22 obj:/System/Library/Frameworks/CoreFoundation*
23 obj:/System/Library/Frameworks/CoreServices*
24}
25
26{
27 mach_msg_trap-3
28 Memcheck:Param
29 mach_msg(msg.msgh_remote_port)
30 fun:mach_msg_trap
31 obj:/System/Library/Frameworks/CoreFoundation*
32 obj:/System/Library/Frameworks/Carbon*
33}
34
35{
36 mach_msg_trap-4
37 Memcheck:Param
38 mach_msg(msg.msgh_remote_port)
39 fun:mach_msg_trap
40 obj:/System/Library/Frameworks/CoreFoundation*
41 obj:/System/Library/Frameworks/CoreFoundation*
42}
43
44{
45 mach_msg_trap-5
46 Memcheck:Param
47 mach_msg(msg.msgh_remote_port)
48 fun:mach_msg_trap
49 obj:/System/Library/Frameworks/CoreFoundation*
50 obj:/System/Library/Frameworks/AppKit*
51}
52
53{
54 macos-Cond-1
55 Memcheck:Cond
56 fun:GetVariationInfoFromName
57 obj:/System/Library/Frameworks/ApplicationServices*
58 obj:/System/Library/Frameworks/ApplicationServices*
59}
60
61{
62 macos-Cond-2
63 Memcheck:Cond
64 fun:*PMMutex*Lock*
65 obj:/System/Library/Frameworks/ApplicationServices*
66 obj:/System/Library/Frameworks/ApplicationServices*
67}
68
69{
70 macos-Cond-3
71 Memcheck:Cond
72 fun:sseCGSBlendXXXX8888
73 obj:/System/Library/Frameworks/ApplicationServices*
74 obj:/System/Library/Frameworks/ApplicationServices*
75}
76
77{
78 macos-Cond-4
79 Memcheck:Cond
80 fun:*CASettingsStorage*RefreshSettings*
81 obj:/System/Library/Frameworks/CoreAudio*
82 obj:/System/Library/Frameworks/CoreAudio*
83}
84
85{
86 macos-Cond-5
87 Memcheck:Cond
88 fun:gle*
89 obj:/System/Library/Frameworks/OpenGL*
90 obj:/System/Library/Frameworks/OpenGL*
91}
92
93{
njn19260532009-06-24 05:01:41 +000094 macos-Cond-6
95 Memcheck:Cond
96 fun:pthread_rwlock_init$UNIX2003
97 fun:main
98}
99
100{
njnf76d27a2009-05-28 01:53:07 +0000101 futimes-1
102 Memcheck:Param
103 futimes(tvp[1])
104 fun:futimes
105 obj:/usr/lib/libSystem*
106 obj:/usr/lib/libSystem*
107}
108
njnd4f90d22009-07-13 07:02:26 +0000109{
110 macos-vsyslog-hole
111 Memcheck:Param
112 socketcall.sendto(msg)
113 fun:sendto$NOCANCEL$UNIX2003
114 fun:vsyslog
115}
116
njn386ae742009-06-09 00:10:20 +0000117# Still-reachable memory.
118
119# I chopped this one off at libSystem_initializer, there were more frames.
120{
121 darwin-still-reachable-1
122 Memcheck:Leak
123 fun:calloc
124 fun:dwarf2_unwind_dyld_add_image_hook
125 fun:_ZN4dyld19registerAddCallbackEPFvPK11mach_headerlE
126 fun:_dyld_register_func_for_add_image
127 fun:__keymgr_initializer
128 fun:libSystem_initializer
129}
130
131# I chopped this one off at libSystem_initializer, there were more frames.
132{
133 darwin-still-reachable-2
134 Memcheck:Leak
135 fun:malloc
136 fun:get_or_create_key_element
137 fun:_keymgr_get_and_lock_processwide_ptr_2
138 fun:dwarf2_unwind_dyld_add_image_hook
139 fun:_ZN4dyld19registerAddCallbackEPFvPK11mach_headerlE
140 fun:_dyld_register_func_for_add_image
141 fun:__keymgr_initializer
142 fun:libSystem_initializer
143}
144
145{
146 darwin-still-reachable-3
147 Memcheck:Leak
148 fun:malloc
149 fun:__smakebuf
150 fun:__swsetup
151 fun:__sfvwrite
152 fun:puts
153}
154
njn8b145382009-06-26 07:00:00 +0000155# Genuine leaks.
156# See https://bugs.kde.org/show_bug.cgi?id=188572 about this; it's
157# unavoidable due to BSD setenv() semantics.
158{
159 <insert a suppression name here>
160 Memcheck:Leak
161 fun:malloc_zone_malloc
162 fun:__setenv
163 fun:setenv$UNIX2003
njn8b145382009-06-26 07:00:00 +0000164}
bart59381e52009-07-23 07:13:35 +0000165{
166 localeconv-leak
167 Memcheck:Leak
168 fun:malloc
169 fun:localeconv_l
170 fun:__vfprintf
171 fun:vsnprintf
172}
njn8b145382009-06-26 07:00:00 +0000173
njnf76d27a2009-05-28 01:53:07 +0000174##----------------------------------------------------------------------##
njnd4f90d22009-07-13 07:02:26 +0000175# Helgrind
176##----------------------------------------------------------------------##
njnf76d27a2009-05-28 01:53:07 +0000177
178# These ones were necessary to give no errors on a tiny non-threaded
179# program. I don't know if they're real problems or false positives (njn).
180
181# keymgr seems to deliberately do some bogus actions, and if they are bogus,
182# it passes the error codes back to the caller.
183{
184 __keymgr_initializer lock failed
185 Helgrind:PthAPIerror
186 fun:pthread_mutex_lock
187 fun:_dyld_register_func_for_*_image
188 fun:__keymgr_initializer
189 fun:libSystem_initializer
190}
191{
192 __keymgr_initializer unlock failed
193 Helgrind:PthAPIerror
194 fun:pthread_mutex_unlock
195 fun:_dyld_register_func_for_*_image
196 fun:__keymgr_initializer
197 fun:libSystem_initializer
198}
199{
200 __keymgr_initializer bogus unlock
201 Helgrind:UnlockBogus
202 fun:pthread_mutex_unlock
203 fun:_dyld_register_func_for_*_image
204 fun:__keymgr_initializer
205 fun:libSystem_initializer
206}
207
208# These ones were necessary to give no errors on a tiny threaded program.
209# I don't know if they're real problems or false positives (njn).
210
211{
sewardjcd8eafb2009-07-26 21:59:29 +0000212 helgrind-darwinlibc-nuke-everything-in-dyld
njnf76d27a2009-05-28 01:53:07 +0000213 Helgrind:Race
214 obj:/usr/lib/dyld
215}
sewardjcd8eafb2009-07-26 21:59:29 +0000216
njnf76d27a2009-05-28 01:53:07 +0000217{
sewardjcd8eafb2009-07-26 21:59:29 +0000218 helgrind-darwinlibc-nuke-everything-in-libSystem.B.dylib
njnf76d27a2009-05-28 01:53:07 +0000219 Helgrind:Race
220 obj:/usr/lib/libSystem.B.dylib
221}
sewardjcd8eafb2009-07-26 21:59:29 +0000222
njnf76d27a2009-05-28 01:53:07 +0000223# This would be better as "fun:\?\?\?" but string matching doesn't seem to
224# allow escaping meta-chars.
sewardjcd8eafb2009-07-26 21:59:29 +0000225#
226# This is very bad .. not only will it hide races in any
227# un-identified piece of code, the ??? also matches any 3-char
228# function name.
njnf76d27a2009-05-28 01:53:07 +0000229{
sewardjcd8eafb2009-07-26 21:59:29 +0000230 helgrind-darwinlibc-nuke-everything-in-???-(unknown-code)
njnf76d27a2009-05-28 01:53:07 +0000231 Helgrind:Race
232 fun:???
233}
sewardjcd8eafb2009-07-26 21:59:29 +0000234
njnf76d27a2009-05-28 01:53:07 +0000235{
sewardjcd8eafb2009-07-26 21:59:29 +0000236 helgrind-darwinlibc--mythread_wrapper-*thread*start*
njnf76d27a2009-05-28 01:53:07 +0000237 Helgrind:Race
238 fun:mythread_wrapper
sewardjcd8eafb2009-07-26 21:59:29 +0000239 fun:*thread*start*
njnf76d27a2009-05-28 01:53:07 +0000240}
sewardjcd8eafb2009-07-26 21:59:29 +0000241
njnf76d27a2009-05-28 01:53:07 +0000242{
sewardjcd8eafb2009-07-26 21:59:29 +0000243 helgrind-darwinlibc--pthread_create_WRK-pthread_create
njnf76d27a2009-05-28 01:53:07 +0000244 Helgrind:Race
njnf76d27a2009-05-28 01:53:07 +0000245 fun:pthread_create_WRK
246 fun:pthread_create
247}
248
sewardj3fa0da52009-07-26 19:55:18 +0000249
sewardj3fa0da52009-07-26 19:55:18 +0000250# Thread #9: Bug in libpthread: recursive write lock granted on
251# mutex/wrlock which does not support recursion
252# at 0x18696: pthread_cond_wait* (hg_intercepts.c:655)
253# by 0x2300B8: pthread_rwlock_wrlock$UNIX2003 (in /usr/lib/libSystem.B.dylib)
254# by 0x18F41: pthread_rwlock_wrlock* (hg_intercepts.c:1177)
255#
256# no idea what this is about
257#
258{
sewardjcd8eafb2009-07-26 21:59:29 +0000259 helgrind-darwin9--pthread-rwlock-kludgery
sewardj3fa0da52009-07-26 19:55:18 +0000260 Helgrind:Misc
261 fun:pthread_cond_wait*
262 fun:pthread_rwlock_*lock*
263 fun:pthread_rwlock_*lock*
264}