File: kde.supp

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (410 lines) | stat: -rw-r--r-- 7,678 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
#
# Some valgrind suppressions handy for ignoring stuff we don't care
# about when valgrinding kde applications
#
# Library paths and versions from debian unstable, YMMV
#

#
# ld.so errors
#

{
    strchr/decompose_rpath/_dl_map_object
    MemCheck:Cond
    fun:strchr
    fun:decompose_rpath
    fun:_dl_map_object
}

{
    strlen/libc/_dl_catch_error
    MemCheck:Cond
    fun:strlen
    fun:_dl_open
    obj:*libdl-2*.so
    fun:_dl_catch_error*
}

{
    strchr/libc/_dl_catch_error
    MemCheck:Cond
    fun:strchr
    obj:*libc-2.2.?.so
    fun:_dl_catch_error
}

{
    strrchr/_dl_map_object_from_fd/_dl_map_object
    MemCheck:Cond
    fun:strrchr
    fun:_dl_map_object_from_fd
    fun:_dl_map_object
}

# Needed with /lib/ld-2.12.1.so
{
   index/expand_dynamic_string_token/_dl_map_object
   Memcheck:Cond
   fun:index
   fun:expand_dynamic_string_token
   fun:_dl_map_object
}

{
   strlen/_dl_signal_cerror/_dl_lookup_symbol_internal
   Memcheck:Cond
   fun:strlen
   fun:_dl_signal_cerror
   fun:_dl_lookup_symbol_internal
   fun:*dlsym
}

#
# X library errors
#

{
    libXft(Cond)
    MemCheck:Cond
    obj:/usr/X11R6/lib/libXft.so.1.1
    obj:/usr/X11R6/lib/libXft.so.1.1
}

{
   write(buf)/libc/libICE
   Memcheck:Param
   write(buf)
   fun:__GI___libc_write
   fun:_IceTransWrite
   fun:_IceWrite
   fun:IceFlush
}

{
   write(buf)/libc/libICE(nosymbols)
   Memcheck:Param
   write(buf)
   fun:__write_nocancel
   obj:/usr/lib*/libICE.so.*
   obj:/usr/lib*/libICE.so.*
}

{
   write(buf)/libc/libICE(variant)
   Memcheck:Param
   write(buf)
   obj:/lib/libpthread-*.so
   obj:/usr/lib/libICE.so.*
   fun:_IceWrite
   fun:IceFlush
}

{
   write(buf)/libc/libX11
   Memcheck:Param
   write(buf)
   fun:__GI___libc_write
   fun:_X11TransWrite
   fun:_XFlushInt
   fun:_XFlush
}

{
   write(buf)/libc/libX11
   Memcheck:Param
   write(buf)
   fun:__GI___libc_write
   fun:_X11TransWrite
   fun:_XFlushInt
   fun:_XReply
}

{
   writev(vector[...])
   Memcheck:Param
   writev(vector[...])
   fun:*writev
   obj:libX11.so.*
   fun:_X11TransWritev
   fun:_XSend
}

#
# SSL errors
#

{
    various1/libcrypto
    Memcheck:Value4
    obj:*libcrypto.so.0.9.7
}

{
    various2/libcrypto
    Memcheck:Cond
    obj:*libcrypto.so.0.9.7
}

{
    ssl3_read_bytes1/libssl
    Memcheck:Cond
    fun:memcpy
    fun:ssl3_read_bytes
}

{
    ssl3_read_bytes2/libssl
    Memcheck:Cond
    fun:ssl3_read_bytes
}

{
    ssl3_get_message/libssl
    Memcheck:Cond
    fun:ssl3_get_message
}

# zlib-1.2.x uses uninitialised memory in some tricky way which
# apparently is harmless (it must amount to a vectorised while-loop,
# nothing else makes sense).  Fools Memcheck though.  See the mentioned
# URL for details.

# Valgrind has this in default.supp but only for deflate, not for uncompress/inflateInit2
{
   zlib-1.2.x trickyness (1): See http://www.zlib.net/zlib_faq.html#faq36
   Memcheck:Cond
   obj:/*lib*/libz.so.1.2.*
   ...
   fun:inflateInit2*
}

# Leakcheck suppressions
{
   dlopen_worker_malloc
   Memcheck:Leak
   fun:malloc
   ...
   fun:dl_open_worker
}

{
   dlopen_worker_calloc
   Memcheck:Leak
   fun:calloc
   ...
   fun:dl_open_worker
}

{
   fontconfig_init
   Memcheck:Leak
   ...
   fun:FcInit
}

# Helgrind suppressions
# Most of them (apart from the first one) are probably real,
# but they're deep inside Qt, and usually not what we want to see
# when debugging a threading issue in a KDE application.
{
   QMutex_qt4_unlock_false_race
   Helgrind:Race
   fun:_ZN6QMutex6unlockEv
}
{
   QMutex_qt4_lock_false_race
   Helgrind:Race
   fun:_ZN6QMutex4lockEv
}
{
   # Qt4 qmutex_p.h, see maximumSpinTime declared as "volatile qint64"...
   QMutex_lockInternal_real_race
   Helgrind:Race
   fun:_ZN6QMutex12lockInternalEv
}
{
   # (Qt5) QMutex::lock checks a bool that is set by the QMutex constructor.
   # To use a mutex from another thread, some synchronization must have happened
   # already, which propagated this non-atomic write. Helgrind doesn't catch that.
   QMutex_isRecursive_false_race
   Helgrind:Race
   fun:_ZL11isRecursiveP10QMutexData
   fun:_ZN6QMutex4lockEv
}
{
   # Qt5: helgrind doesn't understand the atomic-operation calls inside QMutex
   Qt5_lockInternal
   Helgrind:Race
   ...
   fun:_ZN11QBasicMutex12lockInternalEv
}
{
   # Qt5: helgrind doesn't understand the atomic-operation calls inside QMutex
   Qt5_unlockInternal
   Helgrind:Race
   ...
   fun:_ZN11QBasicMutex14unlockInternalEv
}
{
   # Qt5: helgrind doesn't understand the atomic-operation calls inside QMutex
   Qt5_QMutex_unlock
   Helgrind:Race
   ...
   fun:_ZN6QMutex6unlockEv
}
{
   # Qt5: helgrind doesn't understand the atomic-operation calls inside QMutex
   Qt5_QMutex_lock
   Helgrind:Race
   ...
   fun:_ZN6QMutex4lockEv
}
{
   # Qt5: helgrind doesn't understand the atomic-operation calls
   Qt5_release_refcount
   Helgrind:Race
   ...
   fun:_ZN9QtPrivate8RefCount3refEv
}
{
   # Qt5 in release mode
   Qt5_release_basicmutex_isrecursive
   Helgrind:Race
   fun:_ZN11QBasicMutex11isRecursiveEv
}

{
   # I don't really see a problem with fork+exit "exiting while still holding one mutex".
   # I think helgrind just doesn't notice that we forked before calling exit -> TODO: report hg bug
   Helgrind_Exit
   Helgrind:Misc
   fun:_Exit
}
{
   deallocate_stack
   Helgrind:Race
   fun:__deallocate_stack
   fun:start_thread
   fun:clone
}
{
   qt_thread_data_race
   Helgrind:Race
   fun:_ZL15set_thread_dataP11QThreadData
   fun:_ZN14QThreadPrivate5startEPv
}
{
   timerId_race_in_qt4
   Helgrind:Race
   fun:_ZN31QAbstractEventDispatcherPrivate14releaseTimerIdEi
}
{
   timerId_second_race_in_qt4
   Helgrind:Race
   fun:_ZN31QAbstractEventDispatcherPrivate15allocateTimerIdEv
}
{
   QPointer_race_in_qt4
   Helgrind:Race
   fun:_ZNK5QHashIP7QObjectPS1_E7isEmptyEv
   fun:_ZN11QMetaObject11removeGuardEPP7QObject
}

# Helgrind suppressions for atomic operations.
# This is because helgrind/drd cannot tell that they are atomic operations, on x86. The machine code is exactly the same.
{
   QBasicAtomicPointer
   Helgrind:Race
   # catch load*, store*, and the qt4 operators
   ...
   fun:_*QBasicAtomicPointer*
}
{
   QBasicAtomicInt
   Helgrind:Race
   # catch Int and Integer, load, loadAcquire, store, storeRelease, testAndSet*, etc.
   ...
   fun:_*QBasicAtomicInt*
}
{
   Qt_5_9_atomic_ops
   Helgrind:Race
   ...
   fun:loadAcquire
}

# Additional helgrind suppressions: these are actual atomic operations,
# but if they conflict with a suppressed store(), helgrind will warn anyway -- https://bugs.kde.org/show_bug.cgi?id=317381
{
   QBasicAtomicOps_fetchAndStore
   Helgrind:Race
   fun:_ZN15QBasicAtomicOps*fetchAndStore*
}
{
   QBasicAtomicOps_testAndSet
   Helgrind:Race
   fun:_ZN15QBasicAtomicOps*testAndSet*
}
{
   QBasicAtomicOps_ref
   Helgrind:Race
   fun:_ZN15QBasicAtomicOps*ref*
}

## Same for DRD (tested with Qt5 only)
{
   QBasicAtomic_load_drd
   drd:ConflictingAccess
   # catch load and loadAcquire
   fun:_ZNK19QBasicAtomic*load*
}
{
   QBasicAtomic_store_drd
   drd:ConflictingAccess
   # catch store and storeRelease
   fun:_ZN19QBasicAtomic*store*
}
{
   QBasicAtomicOps_fetchAndStore_drd
   drd:ConflictingAccess
   fun:_ZN15QBasicAtomicOps*fetchAndStore*
}
{
   QBasicAtomicOps_testAndSet_drd
   drd:ConflictingAccess
   fun:_ZN15QBasicAtomicOps*testAndSet*
}

# C atomic operations

{
   AO_store
   Helgrind:Race
   fun:AO_store
}
{
   AO_load
   Helgrind:Race
   fun:AO_load
}
{
   AO_compare_and_swap
   Helgrind:Race
   fun:AO_compare_and_swap
}

# C++ atomic operations

{
   atomic_store
   Helgrind:Race
   fun:store
   fun:_ZN*St*atomic*
}
{
   atomic_load
   Helgrind:Race
   fun:load
   fun:_ZN*St*atomic*
}