aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/valgrind.supp66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/tools/valgrind.supp b/src/tools/valgrind.supp
index 710ae25b671..f0436789275 100644
--- a/src/tools/valgrind.supp
+++ b/src/tools/valgrind.supp
@@ -146,3 +146,69 @@
fun:pg_atomic_write_u64_impl
fun:pg_atomic_init_u64_impl
}
+
+
+# Python's allocator does some low-level tricks for efficiency. Those
+# can be disabled for better instrumentation; but few people testing
+# postgres will have such a build of python. So add broad
+# suppressions of the resulting errors.
+# See also https://svn.python.org/projects/python/trunk/Misc/README.valgrind
+{
+ python_clever_allocator
+ Memcheck:Addr4
+ fun:PyObject_Free
+}
+
+{
+ python_clever_allocator
+ Memcheck:Addr8
+ fun:PyObject_Free
+}
+
+{
+ python_clever_allocator
+ Memcheck:Value4
+ fun:PyObject_Free
+}
+
+{
+ python_clever_allocator
+ Memcheck:Value8
+ fun:PyObject_Free
+}
+
+{
+ python_clever_allocator
+ Memcheck:Cond
+ fun:PyObject_Free
+}
+
+{
+ python_clever_allocator
+ Memcheck:Addr4
+ fun:PyObject_Realloc
+}
+
+{
+ python_clever_allocator
+ Memcheck:Addr8
+ fun:PyObject_Realloc
+}
+
+{
+ python_clever_allocator
+ Memcheck:Value4
+ fun:PyObject_Realloc
+}
+
+{
+ python_clever_allocator
+ Memcheck:Value8
+ fun:PyObject_Realloc
+}
+
+{
+ python_clever_allocator
+ Memcheck:Cond
+ fun:PyObject_Realloc
+}