njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 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 | { |
njn | 1926053 | 2009-06-24 05:01:41 +0000 | [diff] [blame^] | 93 | macos-Cond-6 |
| 94 | Memcheck:Cond |
| 95 | fun:pthread_rwlock_init$UNIX2003 |
| 96 | fun:main |
| 97 | } |
| 98 | |
| 99 | { |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 100 | futimes-1 |
| 101 | Memcheck:Param |
| 102 | futimes(tvp[1]) |
| 103 | fun:futimes |
| 104 | obj:/usr/lib/libSystem* |
| 105 | obj:/usr/lib/libSystem* |
| 106 | } |
| 107 | |
njn | 386ae74 | 2009-06-09 00:10:20 +0000 | [diff] [blame] | 108 | # 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 | |
| 146 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 147 | ##----------------------------------------------------------------------## |
| 148 | # |
| 149 | # Suppressions for Helgrind. |
| 150 | |
| 151 | # These ones were necessary to give no errors on a tiny non-threaded |
| 152 | # program. I don't know if they're real problems or false positives (njn). |
| 153 | |
| 154 | # keymgr seems to deliberately do some bogus actions, and if they are bogus, |
| 155 | # it passes the error codes back to the caller. |
| 156 | { |
| 157 | __keymgr_initializer lock failed |
| 158 | Helgrind:PthAPIerror |
| 159 | fun:pthread_mutex_lock |
| 160 | fun:_dyld_register_func_for_*_image |
| 161 | fun:__keymgr_initializer |
| 162 | fun:libSystem_initializer |
| 163 | } |
| 164 | { |
| 165 | __keymgr_initializer unlock failed |
| 166 | Helgrind:PthAPIerror |
| 167 | fun:pthread_mutex_unlock |
| 168 | fun:_dyld_register_func_for_*_image |
| 169 | fun:__keymgr_initializer |
| 170 | fun:libSystem_initializer |
| 171 | } |
| 172 | { |
| 173 | __keymgr_initializer bogus unlock |
| 174 | Helgrind:UnlockBogus |
| 175 | fun:pthread_mutex_unlock |
| 176 | fun:_dyld_register_func_for_*_image |
| 177 | fun:__keymgr_initializer |
| 178 | fun:libSystem_initializer |
| 179 | } |
| 180 | |
| 181 | # These ones were necessary to give no errors on a tiny threaded program. |
| 182 | # I don't know if they're real problems or false positives (njn). |
| 183 | |
| 184 | { |
| 185 | crude1 |
| 186 | Helgrind:Race |
| 187 | obj:/usr/lib/dyld |
| 188 | } |
| 189 | { |
| 190 | crude2 |
| 191 | Helgrind:Race |
| 192 | obj:/usr/lib/libSystem.B.dylib |
| 193 | } |
| 194 | # This would be better as "fun:\?\?\?" but string matching doesn't seem to |
| 195 | # allow escaping meta-chars. |
| 196 | { |
| 197 | crude3 |
| 198 | Helgrind:Race |
| 199 | fun:??? |
| 200 | } |
| 201 | { |
| 202 | crude4 |
| 203 | Helgrind:Race |
| 204 | fun:mythread_wrapper |
| 205 | } |
| 206 | { |
| 207 | crude5 |
| 208 | Helgrind:Race |
| 209 | ... |
| 210 | fun:pthread_create_WRK |
| 211 | fun:pthread_create |
| 212 | } |
| 213 | |