libmodulemd/0001-additional-valgrind-suppression-for-Python-3.9.patch
Stephen Gallagher 2afb480854
Fix build against Python 3.9
Resolves: rhbz#1817665

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2020-04-01 09:32:35 -04:00

38 lines
988 B
Diff

From b1feeb990f536147d5c49c6d002b04a9436eeea2 Mon Sep 17 00:00:00 2001
From: Merlin Mathesius <mmathesi@redhat.com>
Date: Fri, 27 Mar 2020 13:53:13 -0500
Subject: [PATCH] additional valgrind suppression for Python 3.9
---
contrib/valgrind/libmodulemd-python.supp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/contrib/valgrind/libmodulemd-python.supp b/contrib/valgrind/libmodulemd-python.supp
index fe9814d86daa340ec1283becee78514d1d93e3ff..080669825eab28459e032488f348cf8a90455e23 100644
--- a/contrib/valgrind/libmodulemd-python.supp
+++ b/contrib/valgrind/libmodulemd-python.supp
@@ -54,10 +54,20 @@
fun:g_malloc
fun:g_strdup
...
fun:PyObject_SetAttr
}
+{
+ Handle Python 3.9 PyMalloc confusing valgrind
+ Memcheck:Leak
+ fun:malloc
+ fun:PyThread_allocate_lock
+ ...
+ fun:Py_InitializeFromConfig
+ ...
+ fun:Py_BytesMain
+}
{
Python3 Unicode uninitialized value
Memcheck:Cond
fun:PyUnicode_Decode
...
--
2.25.1