From: Victor Stinner Date: Fri, 28 Jun 2019 16:13:33 +0000 (+0200) Subject: [2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202) X-Git-Tag: v2.7.17rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065aff3c518a641e7a734a5b93f9ebed1b405c49;p=thirdparty%2FPython%2Fcpython.git [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. --- 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 #