[Python-checkins] [2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202)

Victor Stinner webhook-mailer at python.org
Fri Jun 28 12:13:37 EDT 2019


https://github.com/python/cpython/commit/065aff3c518a641e7a734a5b93f9ebed1b405c49
commit: 065aff3c518a641e7a734a5b93f9ebed1b405c49
branch: 2.7
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2019-06-28T18:13:33+02:00
summary:

[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.

files:
A Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst
M Misc/valgrind-python.supp

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
 #



More information about the Python-checkins mailing list