From e7ae1f9774ab8aac7379b5c6a1d78cb2ba9754cf Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Wed, 23 Jan 2008 19:44:26 -0800 Subject: [PATCH] Add Valgrind suppressions This adds a suppression file to silence some warnings from GLib and fontconfig, both of which are out of my control. --- Makefile | 5 ++++- tilda.suppressions | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 tilda.suppressions diff --git a/Makefile b/Makefile index 1a5179c..0ab9090 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,10 @@ eggaccelerators.o: eggaccelerators.c eggaccelerators.h $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS) memcheck: tilda - valgrind --tool=memcheck ./tilda + # Variables to make GLib work MUCH better in valgrind + export G_DEBUG=gc-friendly + export G_SLICE=always-malloc + valgrind --suppressions=tilda.suppressions --tool=memcheck --leak-check=full ./tilda clean: rm -f *.o diff --git a/tilda.suppressions b/tilda.suppressions new file mode 100644 index 0000000..e90d315 --- /dev/null +++ b/tilda.suppressions @@ -0,0 +1,53 @@ +{ + + Memcheck:Leak + fun:malloc + fun:nss_parse_service_list + fun:__nss_database_lookup + obj:* + obj:* + fun:getpwnam_r@@GLIBC_2.1.2 + fun:g_get_any_init_do +} + +{ + + Memcheck:Leak + fun:malloc + fun:g_malloc + fun:g_type_create_instance +} + +{ + + Memcheck:Leak + fun:malloc + fun:FcPatternObjectInsertElt + obj:* + obj:* + obj:* + obj:* +} + +{ + + Memcheck:Leak + fun:calloc + fun:g_malloc0 + obj:* + obj:* + obj:* + obj:* +} + +{ + + Memcheck:Leak + fun:realloc + fun:FcPatternObjectInsertElt + obj:* + obj:* + obj:* + obj:* +} + -- 2.25.1