1 # IMPORTANT: DO NOT EDIT glibc-2.X-helgrind.supp, as it is as a generated
2 # file. Instead edit glibc-2.X-helgrind.supp.in.
4 # FIXME 22 Jan 09: helgrind-glibc2X-005 overlaps with a lot of
5 # other stuff. They should be removed.
7 ##----------------------------------------------------------------------##
8 # Suppressions for the Helgrind tool when using
9 # a glibc-2.{3,4,5,6,7,8,9} system
11 ####################################################
13 # These are generic cover-alls which catch a lot of stuff
14 # in various combinations of ld, libc and libpthread
16 # Note this is heavyhanded and not very clever:
18 # - suppress anything that has its top frame in ld.so
19 # That's fine, since it's mostly dynamic linking stuff,
20 # which has various deliberate (harmless) races
22 # - suppress anything that has its top frame in libc.so.
23 # This really isn't clever, since it could hide some
24 # legitimate races. But the problem is, if we don't do
25 # this, then loads of errors to do with stdio are reported, because
26 # H fails to see glibc's internal locking/unlocking of FILE*s
27 # as required by POSIX. A better solution is needed.
29 # - some of the stdio functions in newer glibc manipulate stdio
30 # FILE*s state through mempcpy, which we intercept, so we also need
31 # to suppress such manipulations.
34 # helgrind-glibc2X-001
36 # obj:*/lib*/ld-2.*so*
39 # helgrind-glibc2X-002 was merged into helgrind-glibc2X-001
41 # helgrind-glibc2X-003 was merged into helgrind-glibc2X-001
50 helgrind-glibc-io-xsputn-mempcpy
59 helgrind-glibc-__printf_buffer_write
62 fun:__printf_buffer_write
68 obj:@GLIBC_LIBPTHREAD_PATH@
71 # helgrind-glibc2X-006 was merged into helgrind-glibc2X-005
73 # helgrind-glibc2X-007 was merged into helgrind-glibc2X-001
75 # helgrind-glibc2X-008 was merged into helgrind-glibc2X-004
77 # helgrind-glibc2X-009 was merged into helgrind-glibc2X-004
79 # helgrind-glibc2X-010 was merged into helgrind-glibc2X-001
81 # helgrind-glibc2X-011 was merged into helgrind-glibc2X-004
83 # helgrind-glibc2X-012 was merged into helgrind-glibc2X-001
85 # helgrind-glibc2X-013 was merged into helgrind-glibc2X-001
87 # helgrind-glibc2X-014 was merged into helgrind-glibc2X-001
89 # helgrind-glibc2X-015 was merged into helgrind-glibc2X-004
91 # helgrind-glibc2X-016 was merged into helgrind-glibc2X-004
93 # These are very ugly. They are needed to suppress errors inside (eg)
94 # NPTL's pthread_cond_signal. Why only one stack frame -- at least we
95 # should see the wrapper calling the real functions, right?
96 # Unfortunately, no: the real functions are handwritten assembly (in
97 # the glibc-2.5 sources) and does not create a proper stack frame.
98 # Therefore it's only one level of unwinding before we're back out in
99 # user code rather than the 2 levels you'd expect.
103 obj:@GLIBC_LIBPTHREAD_PATH@
110 obj:@GLIBC_LIBPTHREAD_PATH@
115 fun:pthread_cond_*@@GLIBC_2.*
125 fun:pthread_rwlock_*lock*
135 obj:@GLIBC_LIBPTHREAD_PATH@
151 obj:@GLIBC_LIBC_PATH@
162 fun:pthread_barrier_wait*
166 ####################################################
167 # qt4 specific (GNU mangling)
170 helgrind-qt4---QMutex::lock()-QMutex::lock()
173 fun:_ZN6QMutex4lockEv
174 fun:_ZN6QMutex4lockEv
178 helgrind-qt4---QMutex::unlock()-QMutex::unlock()
181 fun:_ZN6QMutex6unlockEv
182 fun:_ZN6QMutex6unlockEv
186 helgrind-qt4---pthread_setspecific-QThreadPrivate::start(void*)
188 fun:pthread_setspecific
189 fun:_ZN14QThreadPrivate5startEPv
193 ####################################################
196 # pthread_exit apparently calls some kind of unwind
197 # mechanism - maybe to remove some number of frames
198 # from the thread's stack, so as to get back to the
199 # outermost frame for the thread? Anyway..
202 helgrind---*Unwind*-...-pthread_exit
210 helgrind---...-*Unwind*-*pthread_unwind*
218 helgrind---...-*Unwind*-*pthread_unwind*
223 fun:_Unwind_Backtrace
229 ####################################################
230 # To do with thread stack allocation and deallocation?
233 helgrind---free_stacks-__deallocate_stack
236 fun:__deallocate_stack
240 helgrind---__deallocate_stack-start_thread-clone
242 fun:__deallocate_stack
248 ####################################################
249 # To do with pthread_{set,get}specific
252 helgrind---pthread_setspecific
254 fun:pthread_setspecific
258 helgrind---pthread_getspecific
260 fun:pthread_getspecific
264 ####################################################
265 # To do with dynamic linking
267 # helgrind---ld.so-...-dlsym was merged into helgrind-glibc2X-001
270 helgrind---_dl_allocate_tls
273 fun:_dl_allocate_tls_init
275 fun:pthread_create@@GLIBC_2.2*
276 fun:pthread_create_WRK
281 helgrind---_dl_allocate_tls2
285 fun:_dl_allocate_tls_init
287 fun:pthread_create@@GLIBC_2.2*
288 fun:pthread_create_WRK
293 helgrind---_dl_lookup_symbol_x
296 fun:_dl_lookup_symbol_x
299 ####################################################
300 # To do with GNU libgomp
303 helgrind---libgomp43-1
305 fun:gomp_ordered_sync
309 helgrind---libgomp43-1
311 fun:gomp_ordered_next
315 helgrind---libgomp43-1
317 fun:gomp_ordered_last
320 ####################################################
321 # posix functions that are thread safe
323 helgrind---getaddrinfo
329 # * here for dns and files variants etc.
331 helgrind---_nss_*_gethostbyname4_r
333 fun:_nss_*_gethostbyname4_r