blob: 98b594b64eb56bf6314716097ff1138fb1742370 [file] [log] [blame]
bart9e4554c2009-08-02 07:46:43 +00001#
2# Suppression patterns for ld, the dynamic loader.
3#
4
5# Suppress all data races triggered by ld.
sewardjaf44c822007-11-25 14:01:38 +00006{
bart9e4554c2009-08-02 07:46:43 +00007 drd-ld
bartef1b9722008-07-04 15:34:23 +00008 drd:ConflictingAccess
sewardj8b09d4f2007-12-04 21:27:18 +00009 obj:/lib*/ld-*.so
sewardjaf44c822007-11-25 14:01:38 +000010}
bart9e4554c2009-08-02 07:46:43 +000011
12#
13# Suppression patterns for libc.
14#
15
16# Suppress all data races where the topmost frame is inside libc.so. Although
17# this could hide some real data races, unfortunately this is the only way to
18# not report any false positives on stdio functions. The glibc functions
19# manipulating FILE objects use locking primitives that cannot be intercepted
20# easily. See also the definitions of _IO_lock_lock() etc. in the file
21# nptl/sysdeps/pthread/bits/stdio-lock.h in the glibc source tree.
sewardjaf44c822007-11-25 14:01:38 +000022{
bart9e4554c2009-08-02 07:46:43 +000023 drd-libc-stdio
bart15c67b42009-01-29 09:57:22 +000024 drd:ConflictingAccess
25 obj:/lib*/libc-*
26}
bart9e4554c2009-08-02 07:46:43 +000027
28#
29# Suppression patterns for libstdc++, the implementation of the standard C++
30# library included with the gcc compiler.
31#
32# Note: several versions of the libstdc++ library (4.2.2, 4.3.2, 4.4.0, 4.5.0
33# and their predecessors) contain an implementation of the std::string class
34# that triggers conflicting memory accesses. See also
35# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40518
36#
37
38# {
39# drd-libstdc++-std::string::string()
40# drd:ConflictingAccess
41# fun:_ZNSsC1ERKSs
42# }
43
bart5478f842010-05-12 10:01:32 +000044{
45 drd-libstdc++-cxa_guard_release
46 drd:CondErr
47 fun:pthread_cond_broadcast@*
48 fun:__cxa_guard_release
49}
50
51
bart9e4554c2009-08-02 07:46:43 +000052#
53# Suppression patterns for libpthread.
54#
55
bart15c67b42009-01-29 09:57:22 +000056{
bart9e4554c2009-08-02 07:46:43 +000057 drd-libpthread-pthread_create
bartef1b9722008-07-04 15:34:23 +000058 drd:ConflictingAccess
bart00408ca2008-11-17 18:22:10 +000059 ...
bartebca7862008-03-09 19:21:14 +000060 fun:pthread_create*
61}
62{
bart0e08b102009-08-02 08:35:05 +000063 drd-libpthread-pthread_join
64 drd:ConflictingAccess
65 fun:pthread_join
66 fun:pthread_join
67}
68{
69 drd-libpthread-__deallocate_stack
bartef1b9722008-07-04 15:34:23 +000070 drd:ConflictingAccess
barta39b9a02008-11-17 17:57:15 +000071 ...
bartcea0e952008-03-01 10:50:45 +000072 fun:__deallocate_stack
bartcea0e952008-03-01 10:50:45 +000073}
74{
barta13f0222010-07-29 07:52:37 +000075 drd-libpthread-__free_stacks
76 drd:ConflictingAccess
77 fun:__free_stacks
78}
79{
bart0e08b102009-08-02 08:35:05 +000080 drd-libpthread-__free_tcb
81 drd:ConflictingAccess
82 ...
83 fun:__free_tcb
84}
85{
bart3a2bcf12010-06-08 15:00:18 +000086 drd-libpthread-__nptl_deallocate_tsd
87 drd:ConflictingAccess
88 fun:__nptl_deallocate_tsd
89}
90{
bart9e4554c2009-08-02 07:46:43 +000091 drd-libpthread-pthread_detach
bartef1b9722008-07-04 15:34:23 +000092 drd:ConflictingAccess
sewardjaf44c822007-11-25 14:01:38 +000093 fun:pthread_detach
94 fun:pthread_detach
95}
96{
bart9e4554c2009-08-02 07:46:43 +000097 drd-libpthread-_Unwind_ForcedUnwind
bart81db8d42008-09-27 12:43:52 +000098 drd:ConflictingAccess
bartb98b2d52009-07-10 06:48:13 +000099 ...
100 fun:_Unwind_ForcedUnwind
bart81db8d42008-09-27 12:43:52 +0000101}
102{
bartcedece12010-08-17 15:19:55 +0000103 drd-libpthread-_Unwind_GetCFA
104 drd:ConflictingAccess
105 fun:_Unwind_GetCFA
106}
107{
bart9e4554c2009-08-02 07:46:43 +0000108 drd-libpthread-_Unwind_Resume
bartf0c61c22008-09-27 13:14:06 +0000109 drd:ConflictingAccess
bartb98b2d52009-07-10 06:48:13 +0000110 ...
bart9e4554c2009-08-02 07:46:43 +0000111 fun:_Unwind_Resume
barta238ee52008-09-27 13:23:41 +0000112}
bart2f2d6792009-08-14 13:22:48 +0000113{
bartcedece12010-08-17 15:19:55 +0000114 drd-libpthread-?
115 drd:ConflictingAccess
116 obj:/lib/libgcc_s.so.1
117 obj:/lib/libpthread-2.11.2.so
118}
119{
bart2f2d6792009-08-14 13:22:48 +0000120 drd-libpthread-nanosleep
121 drd:ConflictingAccess
122 fun:nanosleep
123}
bart9e4554c2009-08-02 07:46:43 +0000124
125#
126# Suppression patterns for libgomp.
127#
128
129# Unfortunately many statements in libgomp trigger conflicting accesses. It is
130# not clear to me which of these are safe and which ones not. See also
131# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40362
barta238ee52008-09-27 13:23:41 +0000132{
bart9e4554c2009-08-02 07:46:43 +0000133 drd-libgomp
bartef1b9722008-07-04 15:34:23 +0000134 drd:ConflictingAccess
bart459caeb2008-03-11 19:46:45 +0000135 obj:/usr/lib*/libgomp.so*
bart459caeb2008-03-11 19:46:45 +0000136}
bart9e4554c2009-08-02 07:46:43 +0000137
138#
139# Suppression patterns for libX11.
140#
141
bartdd7a30d2008-03-22 17:36:23 +0000142{
bart9e4554c2009-08-02 07:46:43 +0000143 drd-libX11-XCreateFontSet
bartef1b9722008-07-04 15:34:23 +0000144 drd:CondErr
bart9483fd32008-07-01 14:13:25 +0000145 fun:pthread_cond_init*
146 fun:_XReply
147 fun:XListFontsWithInfo
148 obj:/usr/lib*/libX11.so*
149 fun:XCreateOC
150 fun:XCreateFontSet
151}
bart9e4554c2009-08-02 07:46:43 +0000152
153#
154# Suppression patterns for libxcb.
155#
156
bart9483fd32008-07-01 14:13:25 +0000157{
bart9e4554c2009-08-02 07:46:43 +0000158 drd-libxcb-xcb_wait_for_reply
bartef1b9722008-07-04 15:34:23 +0000159 drd:CondErr
bartdd7a30d2008-03-22 17:36:23 +0000160 fun:pthread_cond_destroy*
161 fun:xcb_wait_for_reply
162}
bart9e4554c2009-08-02 07:46:43 +0000163
164#
165# Suppression patterns for libglib.
166#
167
barte53fb262008-07-08 09:29:19 +0000168{
bart9e4554c2009-08-02 07:46:43 +0000169 drd-libglib-access-g_threads_got_initialized
barte53fb262008-07-08 09:29:19 +0000170 drd:ConflictingAccess
barta99ab012008-12-27 09:19:01 +0000171 ...
barte53fb262008-07-08 09:29:19 +0000172 fun:g_slice_alloc
173 fun:g_ptr_array_sized_new
barte53fb262008-07-08 09:29:19 +0000174}
175{
bart9e4554c2009-08-02 07:46:43 +0000176 drd-libglib-access-g_threads_got_initialized
barte53fb262008-07-08 09:29:19 +0000177 drd:ConflictingAccess
bartcedece12010-08-17 15:19:55 +0000178 ...
barte53fb262008-07-08 09:29:19 +0000179 fun:_ZN27QEventDispatcherGlibPrivateC1EP13_GMainContext
180 fun:_ZN20QEventDispatcherGlibC1EP7QObject
181 obj:/usr/lib*/libQtCore.so.4.*
182 obj:/usr/lib*/libQtCore.so.4.*
183}
184{
bart9e4554c2009-08-02 07:46:43 +0000185 drd-libglib-access-g_mem_initialized
barte53fb262008-07-08 09:29:19 +0000186 drd:ConflictingAccess
187 fun:g_malloc0
188}
189{
bart9e4554c2009-08-02 07:46:43 +0000190 drd-libglib-g_private_get_posix_impl
barte53fb262008-07-08 09:29:19 +0000191 drd:ConflictingAccess
192 fun:g_private_get_posix_impl
193}
194{
bart9e4554c2009-08-02 07:46:43 +0000195 drd-libglib-g_private_set_posix_impl
barte53fb262008-07-08 09:29:19 +0000196 drd:ConflictingAccess
197 fun:g_private_set_posix_impl
198}
199{
bart9e4554c2009-08-02 07:46:43 +0000200 drd-libglib-g_get_language_names
barta99ab012008-12-27 09:19:01 +0000201 drd:ConflictingAccess
202 fun:g_slice_free_chain_with_offset
barta99ab012008-12-27 09:19:01 +0000203}
bart75516e52009-08-10 14:13:12 +0000204{
205 drd-libglib-g_main_context_new
206 drd:ConflictingAccess
207 fun:fcntl
208 obj:/usr/lib*/libglib-*.so*
209 fun:g_main_context_new
210}
bart9e4554c2009-08-02 07:46:43 +0000211
212#
213# Suppression patterns for libQtCore.
214#
215
barta99ab012008-12-27 09:19:01 +0000216{
bart9e4554c2009-08-02 07:46:43 +0000217 drd-libQtCore-deref-that-calls-QThreadData-destructor
bartddead322009-02-14 15:47:53 +0000218 drd:ConflictingAccess
219 fun:_ZN11QThreadDataD1Ev
bartddead322009-02-14 15:47:53 +0000220 obj:/usr/lib*/libQtCore.so.4.*
221}
222{
bart9e4554c2009-08-02 07:46:43 +0000223 drd-libQtCore-4.0/4.1-Q_GLOBAL_STATIC-connectionList
barteb339152008-07-29 13:01:16 +0000224 drd:ConflictingAccess
225 obj:/usr/lib*/libQtCore.so.4.*
226 fun:_ZN11QMetaObject8activateEP7QObjectiiPPv
227 fun:_ZN11QMetaObject8activateEP7QObjectPKS_iPPv
228}
229{
bart9e4554c2009-08-02 07:46:43 +0000230 drd-libQtCore-QObjectPrivate::clearGuards(QObject*)
barte53fb262008-07-08 09:29:19 +0000231 drd:ConflictingAccess
232 fun:_ZN14QReadWriteLock12lockForWriteEv
233 fun:_ZN14QObjectPrivate11clearGuardsEP7QObject
234 fun:_ZN7QObjectD2Ev
barte53fb262008-07-08 09:29:19 +0000235}
bartf0d65952008-08-02 10:03:37 +0000236{
bart9e4554c2009-08-02 07:46:43 +0000237 drd-libQtCore-QObjectPrivate::clearGuards(QObject*)
bartf0d65952008-08-02 10:03:37 +0000238 drd:ConflictingAccess
239 fun:_ZN14QReadWriteLock12lockForWriteEv
240 fun:_ZN12QWriteLocker6relockEv
241 fun:_ZN12QWriteLockerC1EP14QReadWriteLock
242 fun:_ZN14QObjectPrivate11clearGuardsEP7QObject
243 fun:_ZN7QObjectD2Ev
244 fun:_ZN24QAbstractEventDispatcherD2Ev
245 fun:_ZN20QEventDispatcherGlibD0Ev
246}
bart75516e52009-08-10 14:13:12 +0000247{
248 drd-libQtCore-QMutexPool::get(void const*)
249 drd:ConflictingAccess
250 fun:_ZN10QMutexPool3getEPKv
251}
barta13f0222010-07-29 07:52:37 +0000252{
253 drd-libQtCore-qt_gettime_is_monotonic()
254 drd:ConflictingAccess
255 fun:_Z23qt_gettime_is_monotonicv
256}
bart9e4554c2009-08-02 07:46:43 +0000257
258#
259# Suppression patterns for libboost.
260#
261
262# Suppress the races on boost::once_flag::epoch and on
bart271889e2010-06-05 11:57:57 +0000263# boost::detail::this_thread_epoch. See also the source file
264# boost/thread/pthread/once.hpp in the Boost source tree
265# (https://svn.boost.org/trac/boost/browser/trunk/boost/thread/pthread/once.hpp).
barta45b5722008-12-21 16:08:07 +0000266{
bart9e4554c2009-08-02 07:46:43 +0000267 drd-libboost-boost::call_once<void (*)()>(boost::once_flag&, void (*)())
barta45b5722008-12-21 16:08:07 +0000268 drd:ConflictingAccess
269 ...
270 fun:_ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_
barta45b5722008-12-21 16:08:07 +0000271}
bart35da3c42009-08-12 09:45:54 +0000272{
273 drd-libboost-boost::detail::get_once_per_thread_epoch()
274 drd:ConflictingAccess
275 fun:_ZN5boost6detail25get_once_per_thread_epochEv
276}
bart271889e2010-06-05 11:57:57 +0000277# Suppress the race reports on boost::detail::current_thread_tls_key. See also
278# https://svn.boost.org/trac/boost/ticket/3526 for more information about why
279# the access pattern of current_thread_tls_key is safe.
bart35da3c42009-08-12 09:45:54 +0000280{
281 drd-libboost-boost::detail::get_current_thread_data()
282 drd:ConflictingAccess
283 ...
284 fun:_ZN5boost6detail23get_current_thread_dataEv
285}
bart271889e2010-06-05 11:57:57 +0000286{
287 drd-libboost-boost::detail::set_current_thread_data(boost::detail::thread_data_base*)
288 drd:ConflictingAccess
289 ...
290 fun:_ZN5boost6detail23set_current_thread_dataEPNS0_16thread_data_baseE
291}