OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains the default suppressions for LeakSanitizer. | 5 // This file contains the default suppressions for LeakSanitizer. |
6 // You can also pass additional suppressions via LSAN_OPTIONS: | 6 // You can also pass additional suppressions via LSAN_OPTIONS: |
7 // LSAN_OPTIONS=suppressions=/path/to/suppressions. Please refer to | 7 // LSAN_OPTIONS=suppressions=/path/to/suppressions. Please refer to |
8 // http://dev.chromium.org/developers/testing/leaksanitizer for more info. | 8 // http://dev.chromium.org/developers/testing/leaksanitizer for more info. |
9 | 9 |
10 #if defined(LEAK_SANITIZER) | 10 #if defined(LEAK_SANITIZER) |
11 | 11 |
12 // Please make sure the code below declares a single string variable | 12 // Please make sure the code below declares a single string variable |
13 // kLSanDefaultSuppressions which contains LSan suppressions delimited by | 13 // kLSanDefaultSuppressions which contains LSan suppressions delimited by |
14 // newlines. See http://dev.chromium.org/developers/testing/leaksanitizer | 14 // newlines. See http://dev.chromium.org/developers/testing/leaksanitizer |
15 // for the instructions on writing suppressions. | 15 // for the instructions on writing suppressions. |
16 char kLSanDefaultSuppressions[] = | 16 char kLSanDefaultSuppressions[] = |
17 // Intentional leak used as sanity test for Valgrind/memcheck. | 17 // Intentional leak used as sanity test for Valgrind/memcheck. |
18 "leak:base::ToolsSanityTest_MemoryLeak_Test::TestBody\n" | 18 "leak:base::ToolsSanityTest_MemoryLeak_Test::TestBody\n" |
19 | 19 |
20 // ================ Leaks in third-party code ================ | 20 // ================ Leaks in third-party code ================ |
21 | 21 |
22 // False positives in libfontconfig. http://crbug.com/39050 | 22 // False positives in libfontconfig. http://crbug.com/39050 |
23 "leak:libfontconfig\n" | 23 "leak:libfontconfig\n" |
24 // eglibc-2.19/string/strdup.c creates false positive leak errors because of | 24 // eglibc-2.19/string/strdup.c creates false positive leak errors because of the |
25 // the same reason as crbug.com/39050. The leak error stack trace, when | 25 // same reason as crbug.com/39050. The leak error stack trace, when unwind on |
26 // unwind on malloc, includes a call to libfontconfig. But the default stack | 26 // malloc, includes a call to libfontconfig. But the default stack trace is too |
27 // trace is too short in leak sanitizer bot to make the libfontconfig | 27 // short in leak sanitizer bot to make the libfontconfig suppression works. |
28 // suppression works. http://crbug.com/605286 | 28 // http://crbug.com/605286 |
29 "leak:__strdup\n" | 29 "leak:__strdup\n" |
30 | 30 |
31 // Leaks in Nvidia's libGL. | 31 // Leaks in Nvidia's libGL. |
32 "leak:libGL.so\n" | 32 "leak:libGL.so\n" |
33 | 33 |
34 // TODO(eugenis): revisit NSS suppressions after the switch to BoringSSL | 34 // TODO(eugenis): revisit NSS suppressions after the switch to BoringSSL |
35 // NSS leaks in CertDatabaseNSSTest tests. http://crbug.com/51988 | 35 // NSS leaks in CertDatabaseNSSTest tests. http://crbug.com/51988 |
36 "leak:net::NSSCertDatabase::ImportFromPKCS12\n" | 36 "leak:net::NSSCertDatabase::ImportFromPKCS12\n" |
37 "leak:net::NSSCertDatabase::ListCerts\n" | 37 "leak:net::NSSCertDatabase::ListCerts\n" |
38 "leak:net::NSSCertDatabase::DeleteCertAndKey\n" | 38 "leak:net::NSSCertDatabase::DeleteCertAndKey\n" |
39 "leak:crypto::ScopedTestNSSDB::ScopedTestNSSDB\n" | 39 "leak:crypto::ScopedTestNSSDB::ScopedTestNSSDB\n" |
40 // Another leak due to not shutting down NSS properly. | 40 // Another leak due to not shutting down NSS properly. http://crbug.com/124445 |
41 // http://crbug.com/124445 | 41 "leak:error_get_my_stack\n" |
42 "leak:error_get_my_stack\n" | 42 // The NSS suppressions above will not fire when the fast stack unwinder is |
43 // The NSS suppressions above will not fire when the fast stack unwinder is | 43 // used, because it can't unwind through NSS libraries. Apply blanket |
44 // used, because it can't unwind through NSS libraries. Apply blanket | 44 // suppressions for now. |
45 // suppressions for now. | 45 "leak:libnssutil3\n" |
46 "leak:libnssutil3\n" | 46 "leak:libnspr4\n" |
47 "leak:libnspr4\n" | 47 "leak:libnss3\n" |
48 "leak:libnss3\n" | 48 "leak:libplds4\n" |
49 "leak:libplds4\n" | 49 "leak:libnssckbi\n" |
50 "leak:libnssckbi\n" | |
51 | 50 |
52 // XRandR has several one time leaks. | 51 // XRandR has several one time leaks. |
53 "leak:libxrandr\n" | 52 "leak:libxrandr\n" |
54 | 53 |
55 // xrandr leak. http://crbug.com/119677 | 54 // xrandr leak. http://crbug.com/119677 |
56 "leak:XRRFindDisplay\n" | 55 "leak:XRRFindDisplay\n" |
57 | 56 |
58 // http://crbug.com/431213, http://crbug.com/416665 | 57 // http://crbug.com/431213, http://crbug.com/416665 |
59 "leak:gin/object_template_builder.h\n" | 58 "leak:gin/object_template_builder.h\n" |
60 | 59 |
61 // Leaks in swrast_dri.so. http://crbug.com/540042 | 60 // Leaks in swrast_dri.so. http://crbug.com/540042 |
62 "leak:swrast_dri.so\n" | 61 "leak:swrast_dri.so\n" |
63 | 62 |
64 // Leak in glibc's gconv caused by fopen(..., "r,ccs=UNICODE") | 63 // Leak in glibc's gconv caused by fopen(..., "r,ccs=UNICODE") |
65 "leak:__gconv_lookup_cache\n" | 64 "leak:__gconv_lookup_cache\n" |
66 | 65 |
67 // ================ Leaks in Chromium code ================ | 66 // ================ Leaks in Chromium code ================ |
68 // PLEASE DO NOT ADD SUPPRESSIONS FOR NEW LEAKS. | 67 // PLEASE DO NOT ADD SUPPRESSIONS FOR NEW LEAKS. |
69 // Instead, commits that introduce memory leaks should be reverted. | 68 // Instead, commits that introduce memory leaks should be reverted. Suppressing |
70 // Suppressing the leak is acceptable in some cases when reverting is | 69 // the leak is acceptable in some cases when reverting is impossible, i.e. when |
71 // impossible, i.e. when enabling leak detection for the first time for a | 70 // enabling leak detection for the first time for a test target with |
72 // test target with pre-existing leaks. | 71 // pre-existing leaks. |
73 | 72 |
74 // Small test-only leak in ppapi_unittests. http://crbug.com/258113 | 73 // Small test-only leak in ppapi_unittests. http://crbug.com/258113 |
75 "leak:ppapi::proxy::PPP_Instance_Private_ProxyTest_PPPInstancePrivate_" | 74 "leak:ppapi::proxy::PPP_Instance_Private_ProxyTest_PPPInstancePrivate_Test\n" |
76 "Test\n" | |
77 | 75 |
78 // http://crbug.com/322671 | 76 // http://crbug.com/322671 |
79 "leak:content::SpeechRecognitionBrowserTest::SetUpOnMainThread\n" | 77 "leak:content::SpeechRecognitionBrowserTest::SetUpOnMainThread\n" |
80 | 78 |
81 // http://crbug.com/355641 | 79 // http://crbug.com/355641 |
82 "leak:TrayAccessibilityTest\n" | 80 "leak:TrayAccessibilityTest\n" |
83 | 81 |
84 // http://crbug.com/354644 | 82 // http://crbug.com/354644 |
85 "leak:CertificateViewerUITest::ShowModalCertificateViewer\n" | 83 "leak:CertificateViewerUITest::ShowModalCertificateViewer\n" |
86 | 84 |
87 // http://crbug.com/356306 | 85 // http://crbug.com/356306 |
88 "leak:service_manager::SetProcessTitleFromCommandLine\n" | 86 "leak:content::SetProcessTitleFromCommandLine\n" |
89 | 87 |
90 // http://crbug.com/601435 | 88 // http://crbug.com/601435 |
91 "leak:mojo/edk/js/handle.h\n" | 89 "leak:mojo/edk/js/handle.h\n" |
92 | 90 |
93 // PLEASE READ ABOVE BEFORE ADDING NEW SUPPRESSIONS. | 91 // PLEASE READ ABOVE BEFORE ADDING NEW SUPPRESSIONS. |
94 | 92 |
95 // End of suppressions. | 93 // End of suppressions. |
96 ; // Please keep this semicolon. | 94 ; // Please keep this semicolon. |
97 | 95 |
98 #endif // LEAK_SANITIZER | 96 #endif // LEAK_SANITIZER |
OLD | NEW |