From b0960738fe969a4dd1555d363ac6122173dbebcd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 16 Apr 2012 09:05:37 +0000 Subject: [PATCH] added gtk supressions files from GNOME.LIVE --- scripts/base.supp | 352 +++++++++++++++++++++++++++++++++++++++++++++ scripts/fontconfig.supp | 23 +++ scripts/gail.supp | 25 ++++ scripts/gdk.supp | 40 ++++++ scripts/gio.supp | 65 +++++++++ scripts/glib.supp | 189 ++++++++++++++++++++++++ scripts/glibc.supp | 41 ++++++ scripts/gtk.supp | 39 +++++ scripts/gtk3.supp | 47 ++++++ scripts/gtksourceview.supp | 33 +++++ scripts/pango.supp | 25 ++++ scripts/val_psensor.sh | 11 +- 12 files changed, 888 insertions(+), 2 deletions(-) create mode 100644 scripts/base.supp create mode 100644 scripts/fontconfig.supp create mode 100644 scripts/gail.supp create mode 100644 scripts/gdk.supp create mode 100644 scripts/gio.supp create mode 100644 scripts/glib.supp create mode 100644 scripts/glibc.supp create mode 100644 scripts/gtk.supp create mode 100644 scripts/gtk3.supp create mode 100644 scripts/gtksourceview.supp create mode 100644 scripts/pango.supp diff --git a/scripts/base.supp b/scripts/base.supp new file mode 100644 index 0000000..ebc1c86 --- /dev/null +++ b/scripts/base.supp @@ -0,0 +1,352 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +{ + + Memcheck:Cond + fun:__GI___strcasecmp_l +} + +{ + + Memcheck:Value8 + fun:__GI___strcasecmp_l +} + +{ + + Memcheck:Addr8 + fun:__strspn_sse42 +} + +{ + + Memcheck:Cond + fun:__strspn_sse42 +} + +{ + + Memcheck:Addr4 + fun:FcConfigFileExists +} + + +{ + g_hash_table_insert_node() in ghash.c + Memcheck:Leak + ... + fun:g_memdup + fun:g_hash_table_insert_node +} + +{ + g_hash_table_resize() in ghash.c + Memcheck:Leak + ... + fun:g_hash_table_resize +} + + +{ + + Memcheck:Leak + ... + fun:g_get_application_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_home_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_host_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_prgname +} + +{ + + Memcheck:Leak + ... + fun:g_get_real_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_system_config_dirs +} + +{ + + Memcheck:Leak + ... + fun:g_get_system_data_dirs +} + +{ + + Memcheck:Leak + ... + fun:g_get_tmp_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_cache_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_config_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_data_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_runtime_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_special_dir +} + +{ + + Memcheck:Leak + ... + fun:g_reload_user_special_dirs_cache +} + +{ + + Memcheck:Leak + ... + fun:g_set_application_name +} + +{ + + Memcheck:Leak + ... + fun:g_set_prgname +} + + +{ + + Memcheck:Leak + ... + fun:g_random_double +} + +{ + + Memcheck:Leak + ... + fun:g_random_double_range +} + +{ + + Memcheck:Leak + ... + fun:g_random_int +} + +{ + + Memcheck:Leak + ... + fun:g_random_int_range +} + +{ + + Memcheck:Leak + ... + fun:g_random_set_seed +} + + +{ + + Memcheck:Leak + ... + fun:g_bus_get + fun:g_bus_own_name +} + +{ + + Memcheck:Leak + ... + fun:g_hash_table_new + fun:g_bus_own_name +} + +{ + + Memcheck:Leak + ... + fun:g_main_context_ref_thread_default + fun:g_bus_own_name +} + +{ + + Memcheck:Leak + ... + fun:g_hash_table_new + fun:g_bus_own_name_on_connection +} + +{ + + Memcheck:Leak + ... + fun:g_variant_new + fun:g_bus_unown_name +} + +{ + _g_dbus_initialize() in gio/gdbusprivate.c + Memcheck:Leak + ... + fun:_g_dbus_initialize +} + +{ + + Memcheck:Leak + ... + fun:FcConfigSubstitute* + fun:pango_cairo_fc_font_map_fontset_key_substitute +} + +{ + _gtk_accessibility_init() in gail.c + Memcheck:Leak + ... + fun:atk_add_focus_tracker + fun:_gtk_accessibility_init +} + + +{ + + Memcheck:Leak + ... + fun:gdk_display_manager_get +} + +{ + + Memcheck:Leak + ... + fun:gdk_display_manager_get_default_display +} + + +{ + + Memcheck:Leak + ... + fun:gdk_display_get_default +} + + +{ + + Memcheck:Leak + ... + fun:gtk_clipboard_get_for_display +} + +{ + + Memcheck:Leak + ... + fun:gtk_clipboard_request_contents +} + +{ + gtk_im_module_initialize() in gtkimmodule.c + Memcheck:Leak + ... + fun:gtk_im_module_initialize +} + + +{ + + Memcheck:Leak + ... + fun:gtk_widget_get_style_context +} + + +{ + + Memcheck:Leak + ... + fun:gtk_source_style_scheme_manager_get_default +} + + +{ + + Memcheck:Leak + ... + fun:gtk_source_style_scheme_get_style +} diff --git a/scripts/fontconfig.supp b/scripts/fontconfig.supp new file mode 100644 index 0000000..7b1d3a8 --- /dev/null +++ b/scripts/fontconfig.supp @@ -0,0 +1,23 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +{ + + Memcheck:Addr4 + fun:FcConfigFileExists +} diff --git a/scripts/gail.supp b/scripts/gail.supp new file mode 100644 index 0000000..d333906 --- /dev/null +++ b/scripts/gail.supp @@ -0,0 +1,25 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +{ + _gtk_accessibility_init() in gail.c + Memcheck:Leak + ... + fun:atk_add_focus_tracker + fun:_gtk_accessibility_init +} diff --git a/scripts/gdk.supp b/scripts/gdk.supp new file mode 100644 index 0000000..9e4d2f2 --- /dev/null +++ b/scripts/gdk.supp @@ -0,0 +1,40 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +{ + + Memcheck:Leak + ... + fun:gdk_display_manager_get +} + +{ + + Memcheck:Leak + ... + fun:gdk_display_manager_get_default_display +} + + +{ + + Memcheck:Leak + ... + fun:gdk_display_get_default +} diff --git a/scripts/gio.supp b/scripts/gio.supp new file mode 100644 index 0000000..8863589 --- /dev/null +++ b/scripts/gio.supp @@ -0,0 +1,65 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +{ + + Memcheck:Leak + ... + fun:g_bus_get + fun:g_bus_own_name +} + +{ + + Memcheck:Leak + ... + fun:g_hash_table_new + fun:g_bus_own_name +} + +{ + + Memcheck:Leak + ... + fun:g_main_context_ref_thread_default + fun:g_bus_own_name +} + +{ + + Memcheck:Leak + ... + fun:g_hash_table_new + fun:g_bus_own_name_on_connection +} + +{ + + Memcheck:Leak + ... + fun:g_variant_new + fun:g_bus_unown_name +} + +{ + _g_dbus_initialize() in gio/gdbusprivate.c + Memcheck:Leak + ... + fun:_g_dbus_initialize +} diff --git a/scripts/glib.supp b/scripts/glib.supp new file mode 100644 index 0000000..8390685 --- /dev/null +++ b/scripts/glib.supp @@ -0,0 +1,189 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +{ + g_hash_table_insert_node() in ghash.c + Memcheck:Leak + ... + fun:g_memdup + fun:g_hash_table_insert_node +} + +{ + g_hash_table_resize() in ghash.c + Memcheck:Leak + ... + fun:g_hash_table_resize +} + + +{ + + Memcheck:Leak + ... + fun:g_get_application_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_home_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_host_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_prgname +} + +{ + + Memcheck:Leak + ... + fun:g_get_real_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_system_config_dirs +} + +{ + + Memcheck:Leak + ... + fun:g_get_system_data_dirs +} + +{ + + Memcheck:Leak + ... + fun:g_get_tmp_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_cache_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_config_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_data_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_name +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_runtime_dir +} + +{ + + Memcheck:Leak + ... + fun:g_get_user_special_dir +} + +{ + + Memcheck:Leak + ... + fun:g_reload_user_special_dirs_cache +} + +{ + + Memcheck:Leak + ... + fun:g_set_application_name +} + +{ + + Memcheck:Leak + ... + fun:g_set_prgname +} + + +{ + + Memcheck:Leak + ... + fun:g_random_double +} + +{ + + Memcheck:Leak + ... + fun:g_random_double_range +} + +{ + + Memcheck:Leak + ... + fun:g_random_int +} + +{ + + Memcheck:Leak + ... + fun:g_random_int_range +} + +{ + + Memcheck:Leak + ... + fun:g_random_set_seed +} diff --git a/scripts/glibc.supp b/scripts/glibc.supp new file mode 100644 index 0000000..1abb937 --- /dev/null +++ b/scripts/glibc.supp @@ -0,0 +1,41 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +{ + + Memcheck:Cond + fun:__GI___strcasecmp_l +} + +{ + + Memcheck:Value8 + fun:__GI___strcasecmp_l +} + +{ + + Memcheck:Addr8 + fun:__strspn_sse42 +} + +{ + + Memcheck:Cond + fun:__strspn_sse42 +} diff --git a/scripts/gtk.supp b/scripts/gtk.supp new file mode 100644 index 0000000..9552d3e --- /dev/null +++ b/scripts/gtk.supp @@ -0,0 +1,39 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +{ + + Memcheck:Leak + ... + fun:gtk_clipboard_get_for_display +} + +{ + + Memcheck:Leak + ... + fun:gtk_clipboard_request_contents +} + +{ + gtk_im_module_initialize() in gtkimmodule.c + Memcheck:Leak + ... + fun:gtk_im_module_initialize +} diff --git a/scripts/gtk3.supp b/scripts/gtk3.supp new file mode 100644 index 0000000..8a7f69b --- /dev/null +++ b/scripts/gtk3.supp @@ -0,0 +1,47 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +{ + + Memcheck:Leak + ... + fun:gtk_clipboard_get_for_display +} + +{ + + Memcheck:Leak + ... + fun:gtk_clipboard_request_contents +} + +{ + gtk_im_module_initialize() in gtkimmodule.c + Memcheck:Leak + ... + fun:gtk_im_module_initialize +} + + +{ + + Memcheck:Leak + ... + fun:gtk_widget_get_style_context +} diff --git a/scripts/gtksourceview.supp b/scripts/gtksourceview.supp new file mode 100644 index 0000000..b8eb5ac --- /dev/null +++ b/scripts/gtksourceview.supp @@ -0,0 +1,33 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +{ + + Memcheck:Leak + ... + fun:gtk_source_style_scheme_manager_get_default +} + + +{ + + Memcheck:Leak + ... + fun:gtk_source_style_scheme_get_style +} diff --git a/scripts/pango.supp b/scripts/pango.supp new file mode 100644 index 0000000..a47eeb7 --- /dev/null +++ b/scripts/pango.supp @@ -0,0 +1,25 @@ +# -*- tab-width: 3; indent-tabs-mode: nil -*- +# +# Copyright (C) 2012 Daniel Trebbien +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +{ + + Memcheck:Leak + ... + fun:FcConfigSubstitute* + fun:pango_cairo_fc_font_map_fontset_key_substitute +} diff --git a/scripts/val_psensor.sh b/scripts/val_psensor.sh index 3848fa8..7fd908b 100755 --- a/scripts/val_psensor.sh +++ b/scripts/val_psensor.sh @@ -1,8 +1,15 @@ -#/bin/sh +#/bin/bash + +SDIR=`dirname $0` export G_SLICE=always-malloc export G_DEBUG=gc-friendly DUMP_FILE=psensor_`date +"%Y_%m_%d_%H_%M_%S"`.log -valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=$DUMP_FILE `dirname $0`/../src/psensor \ No newline at end of file +for i in $SDIR/*supp +do + SUPP="$SUPP --suppressions=$i " +done + +valgrind -v $SUPP --tool=memcheck --leak-check=full --track-origins=yes --leak-resolution=high --num-callers=20 --log-file=$DUMP_FILE $SDIR/../src/psensor \ No newline at end of file -- 2.7.4