bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 1 | # |
2 | # Suppression patterns for ld, the dynamic loader. | ||||
3 | # | ||||
4 | |||||
5 | # Suppress all data races triggered by ld. | ||||
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 6 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 7 | drd-ld |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 8 | drd:ConflictingAccess |
sewardj | 8b09d4f | 2007-12-04 21:27:18 +0000 | [diff] [blame] | 9 | obj:/lib*/ld-*.so |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 10 | } |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 11 | |
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. | ||||
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 22 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 23 | drd-libc-stdio |
bart | 15c67b4 | 2009-01-29 09:57:22 +0000 | [diff] [blame] | 24 | drd:ConflictingAccess |
25 | obj:/lib*/libc-* | ||||
26 | } | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 27 | |
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 | |||||
bart | 5478f84 | 2010-05-12 10:01:32 +0000 | [diff] [blame] | 44 | { |
45 | drd-libstdc++-cxa_guard_release | ||||
46 | drd:CondErr | ||||
47 | fun:pthread_cond_broadcast@* | ||||
48 | fun:__cxa_guard_release | ||||
49 | } | ||||
50 | |||||
51 | |||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 52 | # |
53 | # Suppression patterns for libpthread. | ||||
54 | # | ||||
55 | |||||
bart | 15c67b4 | 2009-01-29 09:57:22 +0000 | [diff] [blame] | 56 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 57 | drd-libpthread-pthread_create |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 58 | drd:ConflictingAccess |
bart | 00408ca | 2008-11-17 18:22:10 +0000 | [diff] [blame] | 59 | ... |
bart | ebca786 | 2008-03-09 19:21:14 +0000 | [diff] [blame] | 60 | fun:pthread_create* |
61 | } | ||||
62 | { | ||||
bart | 0e08b10 | 2009-08-02 08:35:05 +0000 | [diff] [blame] | 63 | drd-libpthread-pthread_join |
64 | drd:ConflictingAccess | ||||
65 | fun:pthread_join | ||||
66 | fun:pthread_join | ||||
67 | } | ||||
68 | { | ||||
69 | drd-libpthread-__deallocate_stack | ||||
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 70 | drd:ConflictingAccess |
bart | a39b9a0 | 2008-11-17 17:57:15 +0000 | [diff] [blame] | 71 | ... |
bart | cea0e95 | 2008-03-01 10:50:45 +0000 | [diff] [blame] | 72 | fun:__deallocate_stack |
bart | cea0e95 | 2008-03-01 10:50:45 +0000 | [diff] [blame] | 73 | } |
74 | { | ||||
bart | 0e08b10 | 2009-08-02 08:35:05 +0000 | [diff] [blame] | 75 | drd-libpthread-__free_tcb |
76 | drd:ConflictingAccess | ||||
77 | ... | ||||
78 | fun:__free_tcb | ||||
79 | } | ||||
80 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 81 | drd-libpthread-pthread_detach |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 82 | drd:ConflictingAccess |
sewardj | af44c82 | 2007-11-25 14:01:38 +0000 | [diff] [blame] | 83 | fun:pthread_detach |
84 | fun:pthread_detach | ||||
85 | } | ||||
86 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 87 | drd-libpthread-_Unwind_ForcedUnwind |
bart | 81db8d4 | 2008-09-27 12:43:52 +0000 | [diff] [blame] | 88 | drd:ConflictingAccess |
bart | b98b2d5 | 2009-07-10 06:48:13 +0000 | [diff] [blame] | 89 | ... |
90 | fun:_Unwind_ForcedUnwind | ||||
bart | 81db8d4 | 2008-09-27 12:43:52 +0000 | [diff] [blame] | 91 | } |
92 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 93 | drd-libpthread-_Unwind_Resume |
bart | f0c61c2 | 2008-09-27 13:14:06 +0000 | [diff] [blame] | 94 | drd:ConflictingAccess |
bart | b98b2d5 | 2009-07-10 06:48:13 +0000 | [diff] [blame] | 95 | ... |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 96 | fun:_Unwind_Resume |
bart | a238ee5 | 2008-09-27 13:23:41 +0000 | [diff] [blame] | 97 | } |
bart | 2f2d679 | 2009-08-14 13:22:48 +0000 | [diff] [blame] | 98 | { |
99 | drd-libpthread-nanosleep | ||||
100 | drd:ConflictingAccess | ||||
101 | fun:nanosleep | ||||
102 | } | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 103 | |
104 | # | ||||
105 | # Suppression patterns for libgomp. | ||||
106 | # | ||||
107 | |||||
108 | # Unfortunately many statements in libgomp trigger conflicting accesses. It is | ||||
109 | # not clear to me which of these are safe and which ones not. See also | ||||
110 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40362 | ||||
bart | a238ee5 | 2008-09-27 13:23:41 +0000 | [diff] [blame] | 111 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 112 | drd-libgomp |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 113 | drd:ConflictingAccess |
bart | 459caeb | 2008-03-11 19:46:45 +0000 | [diff] [blame] | 114 | obj:/usr/lib*/libgomp.so* |
bart | 459caeb | 2008-03-11 19:46:45 +0000 | [diff] [blame] | 115 | } |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 116 | |
117 | # | ||||
118 | # Suppression patterns for libX11. | ||||
119 | # | ||||
120 | |||||
bart | dd7a30d | 2008-03-22 17:36:23 +0000 | [diff] [blame] | 121 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 122 | drd-libX11-XCreateFontSet |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 123 | drd:CondErr |
bart | 9483fd3 | 2008-07-01 14:13:25 +0000 | [diff] [blame] | 124 | fun:pthread_cond_init* |
125 | fun:_XReply | ||||
126 | fun:XListFontsWithInfo | ||||
127 | obj:/usr/lib*/libX11.so* | ||||
128 | fun:XCreateOC | ||||
129 | fun:XCreateFontSet | ||||
130 | } | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 131 | |
132 | # | ||||
133 | # Suppression patterns for libxcb. | ||||
134 | # | ||||
135 | |||||
bart | 9483fd3 | 2008-07-01 14:13:25 +0000 | [diff] [blame] | 136 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 137 | drd-libxcb-xcb_wait_for_reply |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 138 | drd:CondErr |
bart | dd7a30d | 2008-03-22 17:36:23 +0000 | [diff] [blame] | 139 | fun:pthread_cond_destroy* |
140 | fun:xcb_wait_for_reply | ||||
141 | } | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 142 | |
143 | # | ||||
144 | # Suppression patterns for libglib. | ||||
145 | # | ||||
146 | |||||
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 147 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 148 | drd-libglib-access-g_threads_got_initialized |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 149 | drd:ConflictingAccess |
bart | a99ab01 | 2008-12-27 09:19:01 +0000 | [diff] [blame] | 150 | ... |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 151 | fun:g_slice_alloc |
152 | fun:g_ptr_array_sized_new | ||||
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 153 | } |
154 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 155 | drd-libglib-access-g_threads_got_initialized |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 156 | drd:ConflictingAccess |
157 | fun:_ZN27QEventDispatcherGlibPrivateC1EP13_GMainContext | ||||
158 | fun:_ZN20QEventDispatcherGlibC1EP7QObject | ||||
159 | obj:/usr/lib*/libQtCore.so.4.* | ||||
160 | obj:/usr/lib*/libQtCore.so.4.* | ||||
161 | } | ||||
162 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 163 | drd-libglib-access-g_mem_initialized |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 164 | drd:ConflictingAccess |
165 | fun:g_malloc0 | ||||
166 | } | ||||
167 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 168 | drd-libglib-g_private_get_posix_impl |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 169 | drd:ConflictingAccess |
170 | fun:g_private_get_posix_impl | ||||
171 | } | ||||
172 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 173 | drd-libglib-g_private_set_posix_impl |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 174 | drd:ConflictingAccess |
175 | fun:g_private_set_posix_impl | ||||
176 | } | ||||
177 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 178 | drd-libglib-g_get_language_names |
bart | a99ab01 | 2008-12-27 09:19:01 +0000 | [diff] [blame] | 179 | drd:ConflictingAccess |
180 | fun:g_slice_free_chain_with_offset | ||||
bart | a99ab01 | 2008-12-27 09:19:01 +0000 | [diff] [blame] | 181 | } |
bart | 75516e5 | 2009-08-10 14:13:12 +0000 | [diff] [blame] | 182 | { |
183 | drd-libglib-g_main_context_new | ||||
184 | drd:ConflictingAccess | ||||
185 | fun:fcntl | ||||
186 | obj:/usr/lib*/libglib-*.so* | ||||
187 | fun:g_main_context_new | ||||
188 | } | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 189 | |
190 | # | ||||
191 | # Suppression patterns for libQtCore. | ||||
192 | # | ||||
193 | |||||
bart | a99ab01 | 2008-12-27 09:19:01 +0000 | [diff] [blame] | 194 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 195 | drd-libQtCore-deref-that-calls-QThreadData-destructor |
bart | ddead32 | 2009-02-14 15:47:53 +0000 | [diff] [blame] | 196 | drd:ConflictingAccess |
197 | fun:_ZN11QThreadDataD1Ev | ||||
198 | fun:_ZN11QThreadData5derefEv | ||||
199 | obj:/usr/lib*/libQtCore.so.4.* | ||||
200 | } | ||||
201 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 202 | drd-libQtCore-4.0/4.1-Q_GLOBAL_STATIC-connectionList |
bart | eb33915 | 2008-07-29 13:01:16 +0000 | [diff] [blame] | 203 | drd:ConflictingAccess |
204 | obj:/usr/lib*/libQtCore.so.4.* | ||||
205 | fun:_ZN11QMetaObject8activateEP7QObjectiiPPv | ||||
206 | fun:_ZN11QMetaObject8activateEP7QObjectPKS_iPPv | ||||
207 | } | ||||
208 | { | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 209 | drd-libQtCore-QObjectPrivate::clearGuards(QObject*) |
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 210 | drd:ConflictingAccess |
211 | fun:_ZN14QReadWriteLock12lockForWriteEv | ||||
212 | fun:_ZN14QObjectPrivate11clearGuardsEP7QObject | ||||
213 | fun:_ZN7QObjectD2Ev | ||||
bart | e53fb26 | 2008-07-08 09:29:19 +0000 | [diff] [blame] | 214 | } |
bart | f0d6595 | 2008-08-02 10:03:37 +0000 | [diff] [blame] | 215 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 216 | drd-libQtCore-QObjectPrivate::clearGuards(QObject*) |
bart | f0d6595 | 2008-08-02 10:03:37 +0000 | [diff] [blame] | 217 | drd:ConflictingAccess |
218 | fun:_ZN14QReadWriteLock12lockForWriteEv | ||||
219 | fun:_ZN12QWriteLocker6relockEv | ||||
220 | fun:_ZN12QWriteLockerC1EP14QReadWriteLock | ||||
221 | fun:_ZN14QObjectPrivate11clearGuardsEP7QObject | ||||
222 | fun:_ZN7QObjectD2Ev | ||||
223 | fun:_ZN24QAbstractEventDispatcherD2Ev | ||||
224 | fun:_ZN20QEventDispatcherGlibD0Ev | ||||
225 | } | ||||
bart | 75516e5 | 2009-08-10 14:13:12 +0000 | [diff] [blame] | 226 | { |
227 | drd-libQtCore-QMutexPool::get(void const*) | ||||
228 | drd:ConflictingAccess | ||||
229 | fun:_ZN10QMutexPool3getEPKv | ||||
230 | } | ||||
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 231 | |
232 | # | ||||
233 | # Suppression patterns for libboost. | ||||
234 | # | ||||
235 | |||||
236 | # Suppress the races on boost::once_flag::epoch and on | ||||
bart | 271889e | 2010-06-05 11:57:57 +0000 | [diff] [blame^] | 237 | # boost::detail::this_thread_epoch. See also the source file |
238 | # boost/thread/pthread/once.hpp in the Boost source tree | ||||
239 | # (https://svn.boost.org/trac/boost/browser/trunk/boost/thread/pthread/once.hpp). | ||||
bart | a45b572 | 2008-12-21 16:08:07 +0000 | [diff] [blame] | 240 | { |
bart | 9e4554c | 2009-08-02 07:46:43 +0000 | [diff] [blame] | 241 | drd-libboost-boost::call_once<void (*)()>(boost::once_flag&, void (*)()) |
bart | a45b572 | 2008-12-21 16:08:07 +0000 | [diff] [blame] | 242 | drd:ConflictingAccess |
243 | ... | ||||
244 | fun:_ZN5boost9call_onceIPFvvEEEvRNS_9once_flagET_ | ||||
bart | a45b572 | 2008-12-21 16:08:07 +0000 | [diff] [blame] | 245 | } |
bart | 35da3c4 | 2009-08-12 09:45:54 +0000 | [diff] [blame] | 246 | { |
247 | drd-libboost-boost::detail::get_once_per_thread_epoch() | ||||
248 | drd:ConflictingAccess | ||||
249 | fun:_ZN5boost6detail25get_once_per_thread_epochEv | ||||
250 | } | ||||
bart | 271889e | 2010-06-05 11:57:57 +0000 | [diff] [blame^] | 251 | # Suppress the race reports on boost::detail::current_thread_tls_key. See also |
252 | # https://svn.boost.org/trac/boost/ticket/3526 for more information about why | ||||
253 | # the access pattern of current_thread_tls_key is safe. | ||||
bart | 35da3c4 | 2009-08-12 09:45:54 +0000 | [diff] [blame] | 254 | { |
255 | drd-libboost-boost::detail::get_current_thread_data() | ||||
256 | drd:ConflictingAccess | ||||
257 | ... | ||||
258 | fun:_ZN5boost6detail23get_current_thread_dataEv | ||||
259 | } | ||||
bart | 271889e | 2010-06-05 11:57:57 +0000 | [diff] [blame^] | 260 | { |
261 | drd-libboost-boost::detail::set_current_thread_data(boost::detail::thread_data_base*) | ||||
262 | drd:ConflictingAccess | ||||
263 | ... | ||||
264 | fun:_ZN5boost6detail23set_current_thread_dataEPNS0_16thread_data_baseE | ||||
265 | } |