Suppress some still-reachable warnings that come up for "Hello World" on
[ambi/valgrind.git] / darwin9.supp
1
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 {
93    futimes-1
94    Memcheck:Param
95    futimes(tvp[1])
96    fun:futimes
97    obj:/usr/lib/libSystem*
98    obj:/usr/lib/libSystem*
99 }
100
101 # Still-reachable memory.
102
103 # I chopped this one off at libSystem_initializer, there were more frames.
104 {
105    darwin-still-reachable-1
106    Memcheck:Leak
107    fun:calloc
108    fun:dwarf2_unwind_dyld_add_image_hook
109    fun:_ZN4dyld19registerAddCallbackEPFvPK11mach_headerlE
110    fun:_dyld_register_func_for_add_image
111    fun:__keymgr_initializer
112    fun:libSystem_initializer
113 }
114
115 # I chopped this one off at libSystem_initializer, there were more frames.
116 {
117    darwin-still-reachable-2
118    Memcheck:Leak
119    fun:malloc
120    fun:get_or_create_key_element
121    fun:_keymgr_get_and_lock_processwide_ptr_2
122    fun:dwarf2_unwind_dyld_add_image_hook
123    fun:_ZN4dyld19registerAddCallbackEPFvPK11mach_headerlE
124    fun:_dyld_register_func_for_add_image
125    fun:__keymgr_initializer
126    fun:libSystem_initializer
127 }
128
129 {
130    darwin-still-reachable-3
131    Memcheck:Leak
132    fun:malloc
133    fun:__smakebuf
134    fun:__swsetup
135    fun:__sfvwrite
136    fun:puts
137 }
138
139
140 ##----------------------------------------------------------------------##
141 #
142 # Suppressions for Helgrind.
143
144 # These ones were necessary to give no errors on a tiny non-threaded
145 # program.  I don't know if they're real problems or false positives (njn).
146
147 # keymgr seems to deliberately do some bogus actions, and if they are bogus,
148 # it passes the error codes back to the caller.
149 {
150    __keymgr_initializer lock failed
151    Helgrind:PthAPIerror
152    fun:pthread_mutex_lock
153    fun:_dyld_register_func_for_*_image
154    fun:__keymgr_initializer
155    fun:libSystem_initializer
156 }
157 {
158    __keymgr_initializer unlock failed
159    Helgrind:PthAPIerror
160    fun:pthread_mutex_unlock
161    fun:_dyld_register_func_for_*_image
162    fun:__keymgr_initializer
163    fun:libSystem_initializer
164 }
165 {
166    __keymgr_initializer bogus unlock
167    Helgrind:UnlockBogus
168    fun:pthread_mutex_unlock
169    fun:_dyld_register_func_for_*_image
170    fun:__keymgr_initializer
171    fun:libSystem_initializer
172 }
173
174 # These ones were necessary to give no errors on a tiny threaded program.
175 # I don't know if they're real problems or false positives (njn).
176
177 {
178    crude1
179    Helgrind:Race
180    obj:/usr/lib/dyld
181 }
182 {
183    crude2
184    Helgrind:Race
185    obj:/usr/lib/libSystem.B.dylib
186 }
187 # This would be better as "fun:\?\?\?" but string matching doesn't seem to
188 # allow escaping meta-chars.
189 {
190    crude3
191    Helgrind:Race
192    fun:???
193 }
194 {
195    crude4
196    Helgrind:Race
197    fun:mythread_wrapper
198 }
199 {
200    crude5
201    Helgrind:Race
202    ...
203    fun:pthread_create_WRK
204    fun:pthread_create
205 }
206