From 065aff3c518a641e7a734a5b93f9ebed1b405c49 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 28 Jun 2019 18:13:33 +0200 Subject: [PATCH] [2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202) _PyWarnings_Init() only allocates memory once at startup but it is not released at exit. Ignore this issue to be able to catch other bugs more easily. --- .../2019-06-18-15-08-32.bpo-37329.7XVDRv.rst | 3 +++ Misc/valgrind-python.supp | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst b/Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst new file mode 100644 index 000000000000..faae4f633a06 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst @@ -0,0 +1,3 @@ +valgrind: suppress a false alarm in memory leak checks. _PyWarnings_Init() +only allocates memory once at startup but it is not released at exit. Ignore +this issue to be able to catch other bugs more easily. diff --git a/Misc/valgrind-python.supp b/Misc/valgrind-python.supp index a7e26506cfdd..01ee041eb283 100644 --- a/Misc/valgrind-python.supp +++ b/Misc/valgrind-python.supp @@ -103,6 +103,14 @@ fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING } +{ + bpo-37329: _PyWarnings_Init allocates memory at startup, but doesn't release it at exit + Memcheck:Leak + fun:malloc + ... + fun:_PyWarnings_Init +} + # # Non-python specific leaks # -- 2.47.3