OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file contains the default suppressions for LeakSanitizer. |
| 6 // You can also pass additional suppressions via LSAN_OPTIONS: |
| 7 // LSAN_OPTIONS=suppressions=/path/to/suppressions. Please refer to |
| 8 // http://dev.chromium.org/developers/testing/leaksanitizer for more info. |
| 9 |
| 10 #if defined(LEAK_SANITIZER) |
| 11 |
| 12 // Please make sure the code below declares a single string variable |
| 13 // kLSanDefaultSuppressions which contains LSan suppressions delimited by |
| 14 // newlines. See http://dev.chromium.org/developers/testing/leaksanitizer |
| 15 // for the instructions on writing suppressions. |
| 16 char kLSanDefaultSuppressions[] = |
| 17 // Intentional leak used as sanity test for Valgrind/memcheck. |
| 18 "leak:base::ToolsSanityTest_MemoryLeak_Test::TestBody\n" |
| 19 |
| 20 // ================ Leaks in third-party code ================ |
| 21 |
| 22 // False positives in libfontconfig. http://crbug.com/39050 |
| 23 "leak:libfontconfig\n" |
| 24 |
| 25 // Leaks in Nvidia's libGL. |
| 26 "leak:libGL.so\n" |
| 27 |
| 28 // A small leak in V8. http://crbug.com/46571#c9 |
| 29 "leak:blink::V8GCController::collectGarbage\n" |
| 30 |
| 31 // TODO(earthdok): revisit NSS suppressions after the switch to BoringSSL |
| 32 // NSS leaks in CertDatabaseNSSTest tests. http://crbug.com/51988 |
| 33 "leak:net::NSSCertDatabase::ImportFromPKCS12\n" |
| 34 "leak:net::NSSCertDatabase::ListCerts\n" |
| 35 "leak:net::NSSCertDatabase::DeleteCertAndKey\n" |
| 36 "leak:crypto::ScopedTestNSSDB::ScopedTestNSSDB\n" |
| 37 // Another leak due to not shutting down NSS properly. http://crbug.com/124445 |
| 38 "leak:error_get_my_stack\n" |
| 39 // The NSS suppressions above will not fire when the fast stack unwinder is |
| 40 // used, because it can't unwind through NSS libraries. Apply blanket |
| 41 // suppressions for now. |
| 42 "leak:libnssutil3\n" |
| 43 "leak:libnspr4\n" |
| 44 "leak:libnss3\n" |
| 45 "leak:libplds4\n" |
| 46 "leak:libnssckbi\n" |
| 47 |
| 48 // XRandR has several one time leaks. |
| 49 "leak:libxrandr\n" |
| 50 |
| 51 // xrandr leak. http://crbug.com/119677 |
| 52 "leak:XRRFindDisplay\n" |
| 53 |
| 54 // Suppressions for objects which can be owned by the V8 heap. This is a |
| 55 // temporary workaround until LeakSanitizer supports the V8 heap. |
| 56 // Those should only fire in (browser)tests. If you see one of them in Chrome, |
| 57 // then it's a real leak. |
| 58 // http://crbug.com/328552 |
| 59 "leak:WTF::StringImpl::createUninitialized\n" |
| 60 "leak:WTF::StringImpl::create8BitIfPossible\n" |
| 61 "leak:blink::MouseEvent::create\n" |
| 62 "leak:blink::WindowProxy::initializeIfNeeded\n" |
| 63 "leak:blink::*::*GetterCallback\n" |
| 64 "leak:blink::CSSComputedStyleDeclaration::create\n" |
| 65 "leak:blink::V8PerIsolateData::ensureDomInJSContext\n" |
| 66 "leak:gin/object_template_builder.h\n" |
| 67 "leak:gin::internal::Dispatcher\n" |
| 68 "leak:blink::LocalDOMWindow::getComputedStyle\n" |
| 69 |
| 70 // http://crbug.com/356785 |
| 71 "leak:content::RenderViewImplTest_DecideNavigationPolicyForWebUI_Test::TestBody\
n" |
| 72 |
| 73 // ================ Leaks in Chromium code ================ |
| 74 // PLEASE DO NOT ADD SUPPRESSIONS FOR NEW LEAKS. |
| 75 // Instead, commits that introduce memory leaks should be reverted. Suppressing |
| 76 // the leak is acceptable in some cases when reverting is impossible, i.e. when |
| 77 // enabling leak detection for the first time for a test target with |
| 78 // pre-existing leaks. |
| 79 |
| 80 // Small test-only leak in ppapi_unittests. http://crbug.com/258113 |
| 81 "leak:ppapi::proxy::PPP_Instance_Private_ProxyTest_PPPInstancePrivate_Test\n" |
| 82 |
| 83 // http://crbug.com/322671 |
| 84 "leak:content::SpeechRecognitionBrowserTest::SetUpOnMainThread\n" |
| 85 |
| 86 // http://crbug.com/355641 |
| 87 "leak:TrayAccessibilityTest\n" |
| 88 |
| 89 // http://crbug.com/354644 |
| 90 "leak:CertificateViewerUITest::ShowModalCertificateViewer\n" |
| 91 |
| 92 // http://crbug.com/356306 |
| 93 "leak:content::SetProcessTitleFromCommandLine\n" |
| 94 |
| 95 // PLEASE READ ABOVE BEFORE ADDING NEW SUPPRESSIONS. |
| 96 |
| 97 // End of suppressions. |
| 98 ; // Please keep this semicolon. |
| 99 |
| 100 #endif // LEAK_SANITIZER |
OLD | NEW |