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 | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 27 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 28 | helgrind-glibc2X-001 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 29 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 30 | obj:/lib*/ld-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +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 |
sewardj | f721815 | 2008-12-22 20:21:38 +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 |
sewardj | f721815 | 2008-12-22 20:21:38 +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 | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 53 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 54 | helgrind-glibc2X-008 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 55 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 56 | obj:/lib*/libpthread-2.*so* |
| 57 | obj:/lib*/libc-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 58 | } |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 59 | |
| 60 | # helgrind-glibc2X-009 was merged into helgrind-glibc2X-004 |
| 61 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 62 | # helgrind-glibc2X-010 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 63 | |
| 64 | # helgrind-glibc2X-011 was merged into helgrind-glibc2X-004 |
| 65 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 66 | # helgrind-glibc2X-012 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 67 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 68 | # helgrind-glibc2X-013 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 69 | |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 70 | # helgrind-glibc2X-014 was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 71 | |
| 72 | # helgrind-glibc2X-015 was merged into helgrind-glibc2X-004 |
| 73 | |
sewardj | 4b03c42 | 2008-12-23 11:12:40 +0000 | [diff] [blame] | 74 | { |
| 75 | helgrind-glibc2X-016 |
| 76 | Helgrind:Race |
| 77 | obj:/lib*/libpthread-2.*so* |
| 78 | obj:/lib*/ld-2.*so* |
sewardj | 4b03c42 | 2008-12-23 11:12:40 +0000 | [diff] [blame] | 79 | } |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 80 | |
| 81 | # These are very ugly. They are needed to suppress errors inside (eg) |
| 82 | # NPTL's pthread_cond_signal. Why only one stack frame -- at least we |
| 83 | # should see the wrapper calling the real functions, right? |
| 84 | # Unfortunately, no: the real functions are handwritten assembly (in |
| 85 | # the glibc-2.5 sources) and does not create a proper stack frame. |
| 86 | # Therefore it's only one level of unwinding before we're back out in |
| 87 | # user code rather than the 2 levels you'd expect. |
| 88 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 89 | helgrind-glibc2X-101 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 90 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 91 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 92 | fun:pthread_* |
| 93 | } |
| 94 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 95 | helgrind-glibc2X-102 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 96 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 97 | fun:mythread_wrapper |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 98 | obj:/lib*/libpthread-2.*so* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 99 | } |
| 100 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 101 | helgrind-glibc2X-103 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 102 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 103 | fun:pthread_cond_*@@GLIBC_2.* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 104 | } |
| 105 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 106 | helgrind-glibc2X-104 |
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_mutex_* |
| 109 | } |
| 110 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 111 | helgrind-glibc2X-105 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 112 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 113 | fun:pthread_rwlock_*lock* |
| 114 | } |
sewardj | b9354be | 2007-11-18 01:40:14 +0000 | [diff] [blame] | 115 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 116 | helgrind-glibc2X-106 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 117 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 118 | fun:__lll_lock_wait |
| 119 | } |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 120 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 121 | helgrind-glibc2X-107 |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 122 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 123 | obj:/lib*/libpthread-2.*so* |
sewardj | a8e939e | 2007-11-13 20:51:26 +0000 | [diff] [blame] | 124 | fun:sem_* |
| 125 | } |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 126 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 127 | helgrind-glibc2X-108 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 128 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 129 | fun:clone |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 130 | } |
| 131 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 132 | helgrind-glibc2X-109 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 133 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 134 | fun:start_thread |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 135 | } |
| 136 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 137 | helgrind-glibc2X-110 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 138 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 139 | obj:/lib*/libc-2.*so* |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 140 | fun:pthread_* |
| 141 | } |
| 142 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 143 | helgrind-glibc2X-111 |
sewardj | a1c0df3 | 2007-11-18 18:22:50 +0000 | [diff] [blame] | 144 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 145 | fun:__lll_*lock_* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 146 | } |
| 147 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 148 | helgrind-glibc2X-112 |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 149 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 150 | fun:pthread_create@* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 151 | } |
| 152 | { |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 153 | helgrind-glibc2X-113 |
sewardj | 1990d5d | 2007-12-06 01:58:05 +0000 | [diff] [blame] | 154 | Helgrind:Race |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 155 | fun:pthread_barrier_wait* |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 156 | } |
| 157 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 158 | |
| 159 | #################################################### |
sewardj | f721815 | 2008-12-22 20:21:38 +0000 | [diff] [blame] | 160 | # qt4 specific (GNU mangling) |
| 161 | # |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 162 | { |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 163 | helgrind-qt4---QMutex::lock()-QMutex::lock() |
sewardj | 963286e | 2007-11-10 12:44:56 +0000 | [diff] [blame] | 164 | Helgrind:Race |
sewardj | 95386ae | 2007-11-09 22:50:55 +0000 | [diff] [blame] | 165 | fun:_ZN6QMutex4lockEv |
| 166 | fun:_ZN6QMutex4lockEv |
| 167 | } |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 168 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 169 | { |
| 170 | helgrind-qt4---QMutex::unlock()-QMutex::unlock() |
| 171 | Helgrind:Race |
| 172 | fun:_ZN6QMutex6unlockEv |
| 173 | fun:_ZN6QMutex6unlockEv |
| 174 | } |
| 175 | |
sewardj | 0f7a029 | 2008-11-19 10:41:55 +0000 | [diff] [blame] | 176 | { |
| 177 | helgrind-qt4---pthread_setspecific-QThreadPrivate::start(void*) |
| 178 | Helgrind:Race |
| 179 | fun:pthread_setspecific |
| 180 | fun:_ZN14QThreadPrivate5startEPv |
| 181 | } |
| 182 | |
sewardj | 357cb16 | 2008-12-13 01:18:38 +0000 | [diff] [blame] | 183 | |
| 184 | #################################################### |
| 185 | # Other stuff. |
| 186 | # |
| 187 | # pthread_exit apparently calls some kind of unwind |
| 188 | # mechanism - maybe to remove some number of frames |
| 189 | # from the thread's stack, so as to get back to the |
| 190 | # outermost frame for the thread? Anyway.. |
| 191 | |
| 192 | { |
| 193 | helgrind---*Unwind*-...-pthread_exit |
| 194 | Helgrind:Race |
| 195 | fun:*Unwind* |
| 196 | ... |
| 197 | fun:pthread_exit |
| 198 | } |
| 199 | |
| 200 | { |
| 201 | helgrind---...-*Unwind*-*pthread_unwind* |
| 202 | Helgrind:Race |
| 203 | ... |
| 204 | fun:*Unwind* |
| 205 | fun:*pthread_unwind* |
| 206 | } |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 207 | |
sewardj | 4b03c42 | 2008-12-23 11:12:40 +0000 | [diff] [blame] | 208 | { |
| 209 | helgrind---...-*Unwind*-*pthread_unwind* |
| 210 | Helgrind:Race |
| 211 | ... |
| 212 | fun:_Unwind* |
| 213 | ... |
| 214 | fun:_Unwind_Backtrace |
| 215 | } |
| 216 | |
| 217 | |
| 218 | |
sewardj | 13ca8a6 | 2008-12-20 09:20:33 +0000 | [diff] [blame] | 219 | |
| 220 | #################################################### |
| 221 | # To do with thread stack allocation and deallocation? |
| 222 | # |
| 223 | { |
| 224 | helgrind---free_stacks-__deallocate_stack |
| 225 | Helgrind:Race |
| 226 | fun:free_stacks |
| 227 | fun:__deallocate_stack |
| 228 | } |
| 229 | |
| 230 | { |
| 231 | helgrind---__deallocate_stack-start_thread-clone |
| 232 | Helgrind:Race |
| 233 | fun:__deallocate_stack |
| 234 | fun:start_thread |
| 235 | fun:clone |
| 236 | } |
| 237 | |
| 238 | |
| 239 | #################################################### |
| 240 | # To do with pthread_{set,get}specific |
| 241 | # |
| 242 | { |
| 243 | helgrind---pthread_setspecific |
| 244 | Helgrind:Race |
| 245 | fun:pthread_setspecific |
| 246 | } |
| 247 | |
| 248 | { |
| 249 | helgrind---pthread_getspecific |
| 250 | Helgrind:Race |
| 251 | fun:pthread_getspecific |
| 252 | } |
| 253 | |
| 254 | |
| 255 | #################################################### |
| 256 | # To do with dynamic linking |
| 257 | # |
sewardj | 4f75be3 | 2008-12-29 14:46:26 +0000 | [diff] [blame] | 258 | # helgrind---ld.so-...-dlsym was merged into helgrind-glibc2X-001 |
sewardj | 94a9b24 | 2009-01-02 23:17:02 +0000 | [diff] [blame] | 259 | |