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
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
|
# There are four kinds of suppressions in this file.
#
# 1. Third party stuff we have no control over.
#
# 2. Bugs involving Wine.
#
# 3. Chromium specific errors that are intentional unit test errors,
# or stuff that is somehow a false positive in our own code,
# or stuff that is so trivial it's not worth fixing.
#
# 4. Suppressions for real chromium bugs that are not yet fixed.
# These should all be in chromium's bug tracking system (but a few aren't yet).
# Periodically we should sweep this file and the bug tracker clean by
# running overnight and removing outdated bugs/suppressions.
#-----------------------------------------------------------------------
# 1. Third party stuff we have no control over.
# System bugs that aren't Wine's fault.
{
suppress_nss_leak
Memcheck:Leak
fun:malloc
obj:*
fun:__nss_database_lookup
}
{
bogus_Xcursor_Leak
Memcheck:Leak
fun:malloc
obj:/usr/lib/libXcursor.so.1.0.2
}
{
todo_suppress_libasound_leak
Memcheck:Leak
...
obj:/usr/lib*/libasound.so.2.0.0
}
{
todo_suppress_libfontconfig_leak
Memcheck:Leak
fun:malloc
obj:/usr/lib*/libfontconfig.so.1.*
}
# visual C++
{
todo_visual_c_chkstk_2
Memcheck:Addr4
fun:_chkstk
}
{
# Same leak exists in src/tools/valgrind/memcheck/suppressions.txt
# with a mangled stack signature.
Uninitialized value in deflate
Memcheck:Cond
...
fun:MOZ_Z_deflate
}
# 2. Bugs involving Wine
# These three happen if valgrind doesn't notice and handle speculative
# implementations of strchr/strlen/strcat properly.
{
visual_c_ignore_strchr
Memcheck:Cond
fun:strchr
}
{
visual_c_ignore_strlen
Memcheck:Cond
fun:strlen
}
{
visual_c_ignore_strcat
Memcheck:Cond
fun:strcat
}
# Naming convention for Wine suppressions:
# # If we think it's solid:
# # suppress_wine_dirname__functionname[_moreifneeded]
# # If we aren't sure, change suppress to todo
# thread_detach() should clean this up??
{
todo_wine_dlls_winex11drv__x11drv_init_thread_data_main
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:x11drv_init_thread_data
}
{
todo_wine_dlls_winex11drv_XOpenDisplay
Memcheck:Leak
fun:malloc
...
fun:xcb_connect
fun:_XConnectXCB
fun:XOpenDisplay
}
{
todo_wine_dlls_winex11drv_XOpenDisplay_2
Memcheck:Leak
fun:malloc
...
fun:xcb_get_extension_data
fun:xcb_prefetch_maximum_request_length
fun:xcb_get_maximum_request_length
fun:XOpenDisplay
fun:DllMain
}
{
todo_suppress_alloc_module_leak
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:RtlCreateUnicodeString
fun:alloc_module
}
{
todo_suppress_dlopen_leak2
Memcheck:Leak
fun:*alloc
...
fun:dl_open_worker
fun:_dl_catch_error
fun:_dl_open
fun:dlopen_doit
fun:_dl_catch_error
}
# ntdll/loader.c explicitly avoids freeing when .exe's exit at the moment
{
todo_suppress_wine_alloc_module_leak
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:RtlCreateUnicodeString
fun:alloc_module
}
# shell32 isn't freeing its imagelist cache on unload?
{
wine_bug_20544
Memcheck:Leak
fun:malloc
fun:XInitExtension
fun:XextAddDisplay
fun:*
fun:XShmQueryVersion
fun:X11DRV_CreateDIBSection
fun:CreateDIBSection
fun:ImageList_CreateImage
fun:ImageList_Create
fun:SIC_Initialize
fun:DllMain
}
# winmm isn't freeing everything on unload?
{
wine_bug_20545
Memcheck:Leak
...
fun:Rtl*AllocateHeap
fun:MMDRV_InitPerType
fun:MMDRV_Install
fun:MMDRV_Init
}
# yet another leak on unload, seen on chromium's net http and ftp tests
{
wine_bug_20549
Memcheck:Leak
fun:malloc
...
fun:SECUR32_initSchannelSP
}
{
# yet another gnutls leak?
gnutls_leak_bug_2
Memcheck:Leak
fun:calloc
...
# fun:_gnutls_hash_init (commented out because sometimes this shows up without symbols)
# fun:gnutls_handshake
fun:schan_InitializeSecurityContextW
fun:InitializeSecurityContextW
}
# leak on thread creation?
{
wine_bug_20552
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:alloc_thread_tls
fun:MODULE_DllThreadAttach
}
{
wine_secur32_ignore_fork_helper_leak
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:fork_helper
fun:SECUR32_initNTLMSP
}
{
wine_bug_20548_ReadFile
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:NtReadFile
}
{
wine_bug_20548_WS_shutdown
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:WS2_register_async_shutdown
fun:WS_shutdown
}
{
wine_bug_20654
Memcheck:Leak
...
fun:RtlAllocateHeap
fun:get_full_path_helper
fun:RtlGetFullPathName_U
}
{
# This leak is expected - wine doesn't have a reliable way to free the default provider on exit.
wine_bug_20679
Memcheck:Leak
...
fun:CRYPT_GetDefaultProvider
}
{
# Benign window title leak?
wine_bug_20692_wontfix
Memcheck:Leak
...
fun:DEFWND_SetText*
...
fun:CreateWindow*
}
{
wine_bug_21045
Memcheck:Leak
fun:RtlAllocateHeap
fun:SECUR32_addPackages
fun:SECUR32_initNegotiateSP
}
# 3. Chromium specific errors that are intentional unit test errors,
# or stuff that is somehow a false positive in our own code,
# or stuff that is so trivial it's not worth fixing.
{
wine_bug_20551_as_seen_by_chromium
Memcheck:Leak
...
fun:RtlAllocateHeap
...
fun:GlobalAlloc
...
fun:Clipboard::WriteObjects
}
{
suppress_chromium_crasher
Memcheck:Addr1
...
fun:*Test_Crasher*
}
{
ignore_mozilla_errors
Memcheck:Cond
obj:*/ImporterTest/profile/mozcrt19.dll
}
{
ignore_mozilla_errors2
Memcheck:Cond
obj:*/chrome/test/data/firefox3_nss/mozcrt19.dll
}
{
ignore_gears_errors
Memcheck:Addr4
obj:*/gears.dll
}
{
ignore_nss_decryptor_init_errors
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:NSSDecryptor::Init
}
# Not sure why Valgrind started to think everything happening in the
# usr1_handler is invalid. Can't seem to reproduce these locally.
# This happens in URLFetcherTest.SameThreadsTest.
{
ignore_wine_ntdll_usr1_handler_a
Memcheck:Addr1
...
fun:usr1_handler
}
{
ignore_wine_ntdll_usr1_handler_b
Memcheck:Addr2
...
fun:usr1_handler
}
{
ignore_wine_ntdll_usr1_handler_c
Memcheck:Addr4
...
fun:usr1_handler
}
{
# This occurs at the same time as the usr1_handler errors above.
ignore_wine_ntdll_no_symbol
Memcheck:Addr4
obj:*ntdll.dll.so
}
{
# mysterious leaks in rsaenh.dll.so, no symbols / incorrect symbols.
ignore_wine_rsaenh_no_symbols
Memcheck:Leak
fun:RtlAllocateHeap
obj:*rsaenh.dll.so
}
{
# Maybe a leak in strtoi() ?? StringToInt() seems to be leak free.
ignore_strtoi_leak
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:StringToInt
}
{
# Maybe a leak in _strtoi64() ?? StringToInt64() seems to be leak free.
ignore_strtoi64_leak
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:StringToInt64
}
{
# A leak in _vsnprintf_s?
ignore_vsnprintf_s
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:_vsnprintf_s
fun:base::vsnprintf
fun:vsnprintfT
}
{
# A leak in _wfopen_s() ?? ReadFileToString() behaves correctly.
ignore_wfopen_s_leak
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:_wfopen_s
fun:file_util::ReadFileToString
fun:FileReader::ReadFileOnBackgroundThread
}
{
# Leaking an 8 byte Clipboard object in the test code.
ignore_get_clipboard
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:operator new
fun:TestViewsDelegate::GetClipboard
fun:views::NativeTextfieldWin::OnCopy
}
{
# mysterious leak in _calloc_crt. Bug in Wine perhaps?? Hard to reproduce.
ignore_calloc_crt
Memcheck:Leak
fun:RtlAllocateHeap
fun:win_heap_malloc
fun:malloc
fun:calloc
fun:_calloc_impl
fun:_calloc_crt
STOP
}
{
# Boy, oh, boy do we need a better way to deal with this.
# See https://bugs.kde.org/show_bug.cgi?id=190660
valgrind_bug_190660
Memcheck:Addr4
fun:strlen
}
{
# Boy, oh, boy do we need a better way to deal with this.
# See https://bugs.kde.org/show_bug.cgi?id=190660
valgrind_bug_190660
Memcheck:Addr4
fun:strcmp
}
{
# Boy, oh, boy do we need a better way to deal with this.
# See https://bugs.kde.org/show_bug.cgi?id=190660
valgrind_bug_190660
Memcheck:Addr4
fun:strchr
}
{
# Boy, oh, boy do we need a better way to deal with this.
# See https://bugs.kde.org/show_bug.cgi?id=190660
valgrind_bug_190660
Memcheck:Addr4
fun:strcat
}
{
# Boy, oh, boy do we need a better way to deal with this.
# See https://bugs.kde.org/show_bug.cgi?id=190660
valgrind_bug_190660
Memcheck:Addr4
fun:strncpy
}
{
# Same leak exists in src/tools/valgrind/memcheck/suppressions.txt
# with a mangled stack signature.
intentional_ChromeThreadTest_NotReleasedIfTargetThreadNonExistent_Test_leak
Memcheck:Leak
...
fun:operator new
fun:ChromeThreadTest_NotReleasedIfTargetThreadNonExistent_Test::TestBody
fun:testing::Test::Run
}
# 4. Suppressions for real chromium bugs that are not yet fixed.
{
# Same leak exists in src/tools/valgrind/memcheck/suppressions.txt
# with a mangled stack signature.
bug_15276
Memcheck:Cond
fun:cld::OctaHashV3Lookup4
fun:cld::DoOctaScoreV3
fun:ScoreQuadgrams
fun:CompactLangDetImpl::DetectLanguageSummaryV25
fun:CompactLangDet::DetectLanguage
}
{
# Same leak exists in src/tools/valgrind/memcheck/suppressions.txt
# with a mangled stack signature.
bug_20653a
Memcheck:Param
write(buf)
...
fun:sqlite3OsWrite
fun:pager_write_pagelist
}
{
# Same leak exists in src/tools/valgrind/memcheck/suppressions.txt
# with a mangled stack signature.
bug_20653b
Memcheck:Param
write(buf)
...
fun:*Write
fun:sqlite3OsWrite
...
fun:pager_write
}
{
bug_30547
Memcheck:Leak
...
fun:operator new
fun:ImportantFileWriter::WriteNow
fun:BookmarkStorage::SaveNow
fun:BookmarkStorage::BookmarkModelDeleted
}
{
bug_30614
Memcheck:Cond
fun:strncpy
fun:AffixMgr::parse_affix
...
fun:SpellCheck::InitializeHunspell
}
{
bug_31640
Memcheck:Leak
fun:RtlAllocateHeap
...
fun:xmlGetGlobalState
fun:__xmlGenericError
fun:ScopedXmlErrorFunc::ScopedXmlErrorFunc
fun:UpdateManifest::Parse
}
{
bug_31643
Memcheck:Leak
...
fun:operator new
fun:browser_sync::UIModelWorker::DoWorkAndWaitUntilDone
fun:Syncer::SyncShare
}
{
bug_31644
Memcheck:Leak
...
fun:operator new
fun:NewRunnableMethod<ExtensionsServiceBackend,void (__thiscall ExtensionsServiceBackend::*)(void)>
fun:ExtensionsService::ClearProvidersForTesting
}
{
bug_33424
Memcheck:Leak
...
fun:net::TCPClientSocketWin::Read
fun:net::*::DoReadHeaders
...
fun:net::*::OnIOComplete
}
{
# This is a bit flaky, but it happens with both
# FLAKY_FTPDirectoryListing_Test and FLAKY_FTPCacheLoginBoxCredentials_Test
bug_33425
Memcheck:Leak
...
fun:net::TCPClientSocketWin::Read
fun:net::FtpNetworkTransaction::DoCtrlRead
fun:net::FtpNetworkTransaction::DoLoop
fun:net::FtpNetworkTransaction::OnIOComplete
fun:DispatchToMethod<net::FtpNetworkTransaction,void (__thiscall net::FtpNetworkTransaction::*)(int),int>
}
{
# This is an invalid read/write that shows up sporadically.
bug_33426
Memcheck:Addr4
fun:_free_base
...
fun:std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >::~basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >
fun:std::basic_stringstream<char,std::char_traits<char>,std::allocator<char> >::~basic_stringstream<char,std::char_traits<char>,std::allocator<char> >
fun:std::basic_stringstream<char,std::char_traits<char>,std::allocator<char> >::`vbase destructor'
fun:testing::internal::StrStreamToString
fun:testing::Message::GetString
fun:testing::AssertionResult::operator<<<enum net::LoadLog::EventPhase>
...
fun:SSLClientSocketTest_ConnectMismatched_Test::TestBody
}
|