sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 1 | |
sewardj | 141383e | 2009-01-22 20:46:51 +0000 | [diff] [blame] | 2 | # FIXME 22 Jan 09: helgrind-glibc2X-005 overlaps with a lot of |
| 3 | # other stuff. They should be removed. |
| 4 | |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 5 | ##----------------------------------------------------------------------## |
| 6 | # Suppressions for the Helgrind tool when using |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 7 | # a glibc-2.{3,4,5,6,7,8,9} system |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 8 | |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 9 | #################################################### |
| 10 | # glibc-2.X specific |
| 11 | # These are generic cover-alls which catch a lot of stuff |
| 12 | # in various combinations of ld, libc and libpthread |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 13 | # |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 14 | # Note this is heavyhanded and not very clever: |
| 15 | # |
| 16 | # - suppress anything that has its top frame in ld.so |
| 17 | # That's fine, since it's mostly dynamic linking stuff, |
| 18 | # which has various deliberate (harmless) races |
| 19 | # |
| 20 | # - suppress anything that has its top frame in libc.so. |
| 21 | # This really isn't clever, since it could hide some |
| 22 | # legitimate races. But the problem is, if we don't do |
| 23 | # this, then loads of errors to do with stdio are reported, because |
| 24 | # H fails to see glibc's internal locking/unlocking of FILE*s |
| 25 | # as required by POSIX. A better solution is needed. |
| 26 | |
sewardj | a0eee32 | 2009-07-31 08:46:35 +0000 | [diff] [blame] | 27 | #{ |
| 28 | # helgrind-glibc2X-001 |
| 29 | # Helgrind:Race |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 30 | # obj:*/lib*/ld-2.*so* |
sewardj | a0eee32 | 2009-07-31 08:46:35 +0000 | [diff] [blame] | 31 | #} |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 32 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 33 | # helgrind-glibc2X-002 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 34 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 35 | # helgrind-glibc2X-003 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 36 | |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 37 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 38 | helgrind-glibc2X-004 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 39 | Helgrind:Race |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 40 | obj:*/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 41 | } |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 42 | |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 43 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 44 | helgrind-glibc2X-005 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 45 | Helgrind:Race |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 46 | obj:*/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 47 | } |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 48 | |
| 49 | # helgrind-glibc2X-006 was merged into helgrind-glibc2X-005 |
| 50 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 51 | # helgrind-glibc2X-007 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 52 | |
sewardj | a2e66b8 | 2009-02-01 20:15:32 +0000 | [diff] [blame] | 53 | # helgrind-glibc2X-008 was merged into helgrind-glibc2X-004 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 54 | |
| 55 | # helgrind-glibc2X-009 was merged into helgrind-glibc2X-004 |
| 56 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 57 | # helgrind-glibc2X-010 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 58 | |
| 59 | # helgrind-glibc2X-011 was merged into helgrind-glibc2X-004 |
| 60 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 61 | # helgrind-glibc2X-012 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 62 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 63 | # helgrind-glibc2X-013 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 64 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 65 | # helgrind-glibc2X-014 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 66 | |
| 67 | # helgrind-glibc2X-015 was merged into helgrind-glibc2X-004 |
| 68 | |
sewardj | a2e66b8 | 2009-02-01 20:15:32 +0000 | [diff] [blame] | 69 | # helgrind-glibc2X-016 was merged into helgrind-glibc2X-004 |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 70 | |
| 71 | # These are very ugly. They are needed to suppress errors inside (eg) |
| 72 | # NPTL's pthread_cond_signal. Why only one stack frame -- at least we |
| 73 | # should see the wrapper calling the real functions, right? |
| 74 | # Unfortunately, no: the real functions are handwritten assembly (in |
| 75 | # the glibc-2.5 sources) and does not create a proper stack frame. |
| 76 | # Therefore it's only one level of unwinding before we're back out in |
| 77 | # user code rather than the 2 levels you'd expect. |
| 78 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 79 | helgrind-glibc2X-101 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 80 | Helgrind:Race |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 81 | obj:*/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 82 | fun:pthread_* |
| 83 | } |
| 84 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 85 | helgrind-glibc2X-102 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 86 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 87 | fun:mythread_wrapper |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 88 | obj:*/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 89 | } |
| 90 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 91 | helgrind-glibc2X-103 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 92 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 93 | fun:pthread_cond_*@@GLIBC_2.* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 94 | } |
| 95 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 96 | helgrind-glibc2X-104 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 97 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 98 | fun:__lll_mutex_* |
| 99 | } |
| 100 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 101 | helgrind-glibc2X-105 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 102 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 103 | fun:pthread_rwlock_*lock* |
| 104 | } |
sewardj | b9354be | 2007-11-18 01:40:14 +0000 | [diff] [blame] | 105 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 106 | helgrind-glibc2X-106 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 107 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 108 | fun:__lll_lock_wait |
| 109 | } |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 110 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 111 | helgrind-glibc2X-107 |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 112 | Helgrind:Race |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 113 | obj:*/lib*/libpthread-2.*so* |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 114 | fun:sem_* |
| 115 | } |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 116 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 117 | helgrind-glibc2X-108 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 118 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 119 | fun:clone |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 120 | } |
| 121 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 122 | helgrind-glibc2X-109 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 123 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 124 | fun:start_thread |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 125 | } |
| 126 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 127 | helgrind-glibc2X-110 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 128 | Helgrind:Race |
tom | 7299d84 | 2012-02-23 12:54:50 +0000 | [diff] [blame] | 129 | obj:*/lib*/libc-2.*so* |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 130 | fun:pthread_* |
| 131 | } |
| 132 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 133 | helgrind-glibc2X-111 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 134 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 135 | fun:__lll_*lock_* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 136 | } |
| 137 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 138 | helgrind-glibc2X-113 |
sewardj | 1990d5d | 2007-12-06 01:58:05 +0000 | [diff] [blame] | 139 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 140 | fun:pthread_barrier_wait* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 141 | } |
| 142 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 143 | |
| 144 | #################################################### |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 145 | # qt4 specific (GNU mangling) |
| 146 | # |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 147 | { |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 148 | helgrind-qt4---QMutex::lock()-QMutex::lock() |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 149 | Helgrind:Race |
sewardj | dcfac13 | 2009-02-25 21:28:38 +0000 | [diff] [blame] | 150 | ... |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 151 | fun:_ZN6QMutex4lockEv |
| 152 | fun:_ZN6QMutex4lockEv |
| 153 | } |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 154 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 155 | { |
| 156 | helgrind-qt4---QMutex::unlock()-QMutex::unlock() |
| 157 | Helgrind:Race |
sewardj | dcfac13 | 2009-02-25 21:28:38 +0000 | [diff] [blame] | 158 | ... |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 159 | fun:_ZN6QMutex6unlockEv |
| 160 | fun:_ZN6QMutex6unlockEv |
| 161 | } |
| 162 | |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 163 | { |
| 164 | helgrind-qt4---pthread_setspecific-QThreadPrivate::start(void*) |
| 165 | Helgrind:Race |
| 166 | fun:pthread_setspecific |
| 167 | fun:_ZN14QThreadPrivate5startEPv |
| 168 | } |
| 169 | |
sewardj | 357cb16 | 2008-12-13 01:18:38 +0000 | [diff] [blame] | 170 | |
| 171 | #################################################### |
| 172 | # Other stuff. |
| 173 | # |
| 174 | # pthread_exit apparently calls some kind of unwind |
| 175 | # mechanism - maybe to remove some number of frames |
| 176 | # from the thread's stack, so as to get back to the |
| 177 | # outermost frame for the thread? Anyway.. |
| 178 | |
| 179 | { |
| 180 | helgrind---*Unwind*-...-pthread_exit |
| 181 | Helgrind:Race |
| 182 | fun:*Unwind* |
| 183 | ... |
| 184 | fun:pthread_exit |
| 185 | } |
| 186 | |
| 187 | { |
| 188 | helgrind---...-*Unwind*-*pthread_unwind* |
| 189 | Helgrind:Race |
| 190 | ... |
| 191 | fun:*Unwind* |
| 192 | fun:*pthread_unwind* |
| 193 | } |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 194 | |
sewardj | 4b03c42 | 2008-12-23 11:12:40 +0000 | [diff] [blame] | 195 | { |
| 196 | helgrind---...-*Unwind*-*pthread_unwind* |
| 197 | Helgrind:Race |
| 198 | ... |
| 199 | fun:_Unwind* |
| 200 | ... |
| 201 | fun:_Unwind_Backtrace |
| 202 | } |
| 203 | |
| 204 | |
| 205 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 206 | |
| 207 | #################################################### |
| 208 | # To do with thread stack allocation and deallocation? |
| 209 | # |
| 210 | { |
| 211 | helgrind---free_stacks-__deallocate_stack |
| 212 | Helgrind:Race |
| 213 | fun:free_stacks |
| 214 | fun:__deallocate_stack |
| 215 | } |
| 216 | |
| 217 | { |
| 218 | helgrind---__deallocate_stack-start_thread-clone |
| 219 | Helgrind:Race |
| 220 | fun:__deallocate_stack |
| 221 | fun:start_thread |
| 222 | fun:clone |
| 223 | } |
| 224 | |
| 225 | |
| 226 | #################################################### |
| 227 | # To do with pthread_{set,get}specific |
| 228 | # |
| 229 | { |
| 230 | helgrind---pthread_setspecific |
| 231 | Helgrind:Race |
| 232 | fun:pthread_setspecific |
| 233 | } |
| 234 | |
| 235 | { |
| 236 | helgrind---pthread_getspecific |
| 237 | Helgrind:Race |
| 238 | fun:pthread_getspecific |
| 239 | } |
| 240 | |
| 241 | |
| 242 | #################################################### |
| 243 | # To do with dynamic linking |
| 244 | # |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 245 | # helgrind---ld.so-...-dlsym was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 246 | |
bart | c64bbdd | 2013-12-02 15:13:05 +0000 | [diff] [blame] | 247 | { |
| 248 | helgrind---_dl_allocate_tls |
| 249 | Helgrind:Race |
| 250 | fun:mempcpy |
| 251 | fun:_dl_allocate_tls_init |
philippe | 7efa165 | 2014-09-02 20:03:34 +0000 | [diff] [blame] | 252 | ... |
bart | c64bbdd | 2013-12-02 15:13:05 +0000 | [diff] [blame] | 253 | fun:pthread_create@@GLIBC_2.2* |
| 254 | fun:pthread_create_WRK |
| 255 | fun:pthread_create@* |
| 256 | } |
sewardj | a2e66b8 | 2009-02-01 20:15:32 +0000 | [diff] [blame] | 257 | |
| 258 | #################################################### |
| 259 | # To do with GNU libgomp |
| 260 | # |
| 261 | { |
| 262 | helgrind---libgomp43-1 |
| 263 | Helgrind:Race |
| 264 | fun:gomp_ordered_sync |
| 265 | } |
| 266 | |
| 267 | { |
| 268 | helgrind---libgomp43-1 |
| 269 | Helgrind:Race |
| 270 | fun:gomp_ordered_next |
| 271 | } |
| 272 | |
| 273 | { |
| 274 | helgrind---libgomp43-1 |
| 275 | Helgrind:Race |
| 276 | fun:gomp_ordered_last |
| 277 | } |