blob: bbcfd66f613d6c2e8fc5c40f29219d64d0851191 [file] [log] [blame]
njnf76d27a2009-05-28 01:53:07 +00001
2##----------------------------------------------------------------------##
3#
4# Suppressions for Darwin 9.x / Mac OS X 10.5 Leopard
5#
6
7{
8 mach_msg_trap-1
9 Memcheck:Param
10 mach_msg(msg.msgh_remote_port)
11 fun:mach_msg_trap
12 obj:/System/Library/Frameworks/CoreFoundation*
13 obj:/System/Library/Frameworks/ApplicationServices*
14}
15
16{
17 mach_msg_trap-2
18 Memcheck:Param
19 mach_msg(msg.msgh_remote_port)
20 fun:mach_msg_trap
21 obj:/System/Library/Frameworks/CoreFoundation*
22 obj:/System/Library/Frameworks/CoreServices*
23}
24
25{
26 mach_msg_trap-3
27 Memcheck:Param
28 mach_msg(msg.msgh_remote_port)
29 fun:mach_msg_trap
30 obj:/System/Library/Frameworks/CoreFoundation*
31 obj:/System/Library/Frameworks/Carbon*
32}
33
34{
35 mach_msg_trap-4
36 Memcheck:Param
37 mach_msg(msg.msgh_remote_port)
38 fun:mach_msg_trap
39 obj:/System/Library/Frameworks/CoreFoundation*
40 obj:/System/Library/Frameworks/CoreFoundation*
41}
42
43{
44 mach_msg_trap-5
45 Memcheck:Param
46 mach_msg(msg.msgh_remote_port)
47 fun:mach_msg_trap
48 obj:/System/Library/Frameworks/CoreFoundation*
49 obj:/System/Library/Frameworks/AppKit*
50}
51
52{
53 macos-Cond-1
54 Memcheck:Cond
55 fun:GetVariationInfoFromName
56 obj:/System/Library/Frameworks/ApplicationServices*
57 obj:/System/Library/Frameworks/ApplicationServices*
58}
59
60{
61 macos-Cond-2
62 Memcheck:Cond
63 fun:*PMMutex*Lock*
64 obj:/System/Library/Frameworks/ApplicationServices*
65 obj:/System/Library/Frameworks/ApplicationServices*
66}
67
68{
69 macos-Cond-3
70 Memcheck:Cond
71 fun:sseCGSBlendXXXX8888
72 obj:/System/Library/Frameworks/ApplicationServices*
73 obj:/System/Library/Frameworks/ApplicationServices*
74}
75
76{
77 macos-Cond-4
78 Memcheck:Cond
79 fun:*CASettingsStorage*RefreshSettings*
80 obj:/System/Library/Frameworks/CoreAudio*
81 obj:/System/Library/Frameworks/CoreAudio*
82}
83
84{
85 macos-Cond-5
86 Memcheck:Cond
87 fun:gle*
88 obj:/System/Library/Frameworks/OpenGL*
89 obj:/System/Library/Frameworks/OpenGL*
90}
91
92{
njn19260532009-06-24 05:01:41 +000093 macos-Cond-6
94 Memcheck:Cond
95 fun:pthread_rwlock_init$UNIX2003
96 fun:main
97}
98
99{
njnf76d27a2009-05-28 01:53:07 +0000100 futimes-1
101 Memcheck:Param
102 futimes(tvp[1])
103 fun:futimes
104 obj:/usr/lib/libSystem*
105 obj:/usr/lib/libSystem*
106}
107
njn386ae742009-06-09 00:10:20 +0000108# Still-reachable memory.
109
110# I chopped this one off at libSystem_initializer, there were more frames.
111{
112 darwin-still-reachable-1
113 Memcheck:Leak
114 fun:calloc
115 fun:dwarf2_unwind_dyld_add_image_hook
116 fun:_ZN4dyld19registerAddCallbackEPFvPK11mach_headerlE
117 fun:_dyld_register_func_for_add_image
118 fun:__keymgr_initializer
119 fun:libSystem_initializer
120}
121
122# I chopped this one off at libSystem_initializer, there were more frames.
123{
124 darwin-still-reachable-2
125 Memcheck:Leak
126 fun:malloc
127 fun:get_or_create_key_element
128 fun:_keymgr_get_and_lock_processwide_ptr_2
129 fun:dwarf2_unwind_dyld_add_image_hook
130 fun:_ZN4dyld19registerAddCallbackEPFvPK11mach_headerlE
131 fun:_dyld_register_func_for_add_image
132 fun:__keymgr_initializer
133 fun:libSystem_initializer
134}
135
136{
137 darwin-still-reachable-3
138 Memcheck:Leak
139 fun:malloc
140 fun:__smakebuf
141 fun:__swsetup
142 fun:__sfvwrite
143 fun:puts
144}
145
njn8b145382009-06-26 07:00:00 +0000146# Genuine leaks.
147# See https://bugs.kde.org/show_bug.cgi?id=188572 about this; it's
148# unavoidable due to BSD setenv() semantics.
149{
150 <insert a suppression name here>
151 Memcheck:Leak
152 fun:malloc_zone_malloc
153 fun:__setenv
154 fun:setenv$UNIX2003
155 fun:main
156}
157
njn386ae742009-06-09 00:10:20 +0000158
njnf76d27a2009-05-28 01:53:07 +0000159##----------------------------------------------------------------------##
160#
161# Suppressions for Helgrind.
162
163# These ones were necessary to give no errors on a tiny non-threaded
164# program. I don't know if they're real problems or false positives (njn).
165
166# keymgr seems to deliberately do some bogus actions, and if they are bogus,
167# it passes the error codes back to the caller.
168{
169 __keymgr_initializer lock failed
170 Helgrind:PthAPIerror
171 fun:pthread_mutex_lock
172 fun:_dyld_register_func_for_*_image
173 fun:__keymgr_initializer
174 fun:libSystem_initializer
175}
176{
177 __keymgr_initializer unlock failed
178 Helgrind:PthAPIerror
179 fun:pthread_mutex_unlock
180 fun:_dyld_register_func_for_*_image
181 fun:__keymgr_initializer
182 fun:libSystem_initializer
183}
184{
185 __keymgr_initializer bogus unlock
186 Helgrind:UnlockBogus
187 fun:pthread_mutex_unlock
188 fun:_dyld_register_func_for_*_image
189 fun:__keymgr_initializer
190 fun:libSystem_initializer
191}
192
193# These ones were necessary to give no errors on a tiny threaded program.
194# I don't know if they're real problems or false positives (njn).
195
196{
197 crude1
198 Helgrind:Race
199 obj:/usr/lib/dyld
200}
201{
202 crude2
203 Helgrind:Race
204 obj:/usr/lib/libSystem.B.dylib
205}
206# This would be better as "fun:\?\?\?" but string matching doesn't seem to
207# allow escaping meta-chars.
208{
209 crude3
210 Helgrind:Race
211 fun:???
212}
213{
214 crude4
215 Helgrind:Race
216 fun:mythread_wrapper
217}
218{
219 crude5
220 Helgrind:Race
221 ...
222 fun:pthread_create_WRK
223 fun:pthread_create
224}
225