summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-28 18:13:33 +0200
committerGitHub <noreply@github.com>2019-06-28 18:13:33 +0200
commit065aff3c518a641e7a734a5b93f9ebed1b405c49 (patch)
tree1c6d0904e5a7bcf85a3ae64062a36d6bbddde9f3
parent4397c68663efe58930b31c561e5948b4038875ae (diff)
downloadcpython-git-065aff3c518a641e7a734a5b93f9ebed1b405c49.tar.gz
[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.
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst3
-rw-r--r--Misc/valgrind-python.supp8
2 files changed, 11 insertions, 0 deletions
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 0000000000..faae4f633a
--- /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 a7e26506cf..01ee041eb2 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
#