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