]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202)
authorVictor Stinner <vstinner@redhat.com>
Fri, 28 Jun 2019 16:13:33 +0000 (18:13 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2019 16:13:33 +0000 (18:13 +0200)
_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.

Misc/NEWS.d/next/Core and Builtins/2019-06-18-15-08-32.bpo-37329.7XVDRv.rst [new file with mode: 0644]
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 (file)
index 0000000..faae4f6
--- /dev/null
@@ -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.
index a7e26506cfdd4f39f4e4030f4b92d3cc1d609c7a..01ee041eb283f7e049cb9763b47d54261c19d81e 100644 (file)
    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
 #