[patch 13/15] [valgrind.diff] new valgrind suppression files
c.shoemaker at cox.net
c.shoemaker at cox.net
Mon Oct 10 10:34:35 EDT 2005
* src/valgrind-gdk.supp:
* src/valgrind-x22.supp:
- add a couple lib specific suppression files for valgrind
* src/valgrind-gnucash.supp:
- add a bunch of general suppressions, too. I don't think
any of these mask any bugs in gnucash.
src/valgrind-gdk.supp | 72 +++++++++++++++
src/valgrind-gnucash.supp | 218 ++++++++++++++++++++++++++++++++++++++++++++++
src/valgrind-x11.supp | 125 ++++++++++++++++++++++++++
3 files changed, 415 insertions(+)
Index: gnucash/src/valgrind-gdk.supp
===================================================================
--- /dev/null
+++ gnucash/src/valgrind-gdk.supp
@@ -0,0 +1,72 @@
+{
+ <insert some suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:*
+ fun:*
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:calloc
+ fun:XkbGetMap
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+ fun:gdk_keymap_translate_keyboard_state
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:XAddConnectionWatch
+ fun:gdk_display_open
+ fun:gdk_display_open_default_libgtk_only
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:*
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_X11TransConnectDisplay
+ fun:XOpenDisplay
+ fun:gdk_display_open
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ obj:/usr/lib/libgdk-x11-2.0.so.0.400.14
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:XOpenDisplay
+ fun:gdk_display_open
+ fun:gdk_display_open_default_libgtk_only
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:calloc
+ fun:XOpenDisplay
+ fun:gdk_display_open
+ fun:gdk_display_open_default_libgtk_only
+}
Index: gnucash/src/valgrind-gnucash.supp
===================================================================
--- gnucash.orig/src/valgrind-gnucash.supp
+++ gnucash/src/valgrind-gnucash.supp
@@ -30,6 +30,7 @@
# Param Value1 Value2 Value4 Value8 Value16
# Free Addr1 Addr2 Addr4 Addr8 Addr16
# Cond (previously known as Value0)
+# Leak
#
# and the optional extra info is:
# if Param: name of system call param
@@ -61,4 +62,221 @@
fun:g_hash_table_lookup_extended
}
+{
+ <insert a suppression name here>
+ Memcheck:Param
+ write(buf)
+ fun:__write_nocancel
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ fun:_X11TransWrite
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Param
+ writev(vector[...])
+ fun:writev
+ obj:/usr/lib/libORBit-2.so.0.0.0
+ fun:link_connection_writev
+ fun:giop_send_buffer_write
+}
+
+{
+ <insert a suppression name here>
+ core:PThread
+ fun:pthread_mutex_lock
+ fun:_IO_flockfile
+ fun:pango_read_line
+ fun:pango_find_map
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Param
+ writev(vector[...])
+ fun:writev
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ fun:_X11TransWritev
+ fun:_XSend
+}
+
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/lib/libguile.so.12.3.0
+ obj:/usr/lib/libguile.so.12.3.0
+ obj:/usr/lib/libguile.so.12.3.0
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:realloc
+ fun:scm_make_port_type
+ fun:scm_init_vports
+ obj:/usr/lib/libguile.so.12.3.0
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:realloc
+ obj:/usr/lib/libguile.so.12.3.0
+ fun:scm_gc_for_newcell
+ fun:scm_acons
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:register_state
+ fun:create_cd_newstate
+ fun:re_compile_internal
+}
+
+
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:*
+ fun:poptGetContext
+ fun:gnome_program_preinit
+ obj:/usr/lib/libgnome-2.so.0.800.0
+}
+
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:IceAddConnectionWatch
+ fun:gnome_ice_init
+ obj:/usr/lib/libgnomeui-2.so.0.800.0
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:g_malloc
+ fun:ORBit_alloc_string
+ fun:CORBA_string_dup
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:__gconv_open
+ fun:iconv_open
+ obj:/usr/lib/libglib-2.0.so.0.400.8
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_dl_map_object_from_fd
+ fun:_dl_map_object
+ fun:openaux
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:FcFontSetCreate
+ fun:FcConfigBuildFonts
+ fun:FcInitLoadConfigAndFonts
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:*
+ obj:/usr/lib/libfontconfig.so.1.0.4
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:FT_New_Memory
+ fun:FT_Init_FreeType
+ fun:XftInitFtLibrary
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:XRenderFindDisplay
+ fun:XRenderQueryExtension
+ fun:_XftDisplayInfoGet
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/X11R6/lib/libXft.so.2.1.2
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:calloc
+ obj:/usr/bin/esd
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/bin/esd
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/lib/libasound.so.2.0.0
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:esd_get_socket_dirname
+ fun:esd_get_socket_name
+ fun:esd_open_sound
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:calloc
+ fun:snd_config_update_r
+ fun:snd_config_update
+ fun:snd_pcm_open
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:calloc
+ fun:snd_output_stdio_attach
+ fun:esd_audio_open
+ obj:/usr/bin/esd
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:esd_get_socket_name
+ fun:esd_open_sound
+ obj:/usr/lib/libgnome-2.so.0.800.0
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:realloc
+ obj:/lib/libcrypto.so.0.9.7a
+}
+
+
# ##----------------------------------------------------------------------##
Index: gnucash/src/valgrind-x11.supp
===================================================================
--- /dev/null
+++ gnucash/src/valgrind-x11.supp
@@ -0,0 +1,125 @@
+{
+ <Hopefully ignore lots of X11 leaks>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+{
+ <Hopefully ignore lots of X11 leaks>
+ Memcheck:Leak
+ fun:malloc
+ fun:*
+ fun:*
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:calloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_XiGetExtensionVersion
+ fun:_XiCheckExtInit
+ fun:XListInputDevices
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:XextAddDisplay
+ obj:/usr/X11R6/lib/libXext.so.6.4
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:XextCreateExtension
+ fun:XInput_find_display
+ fun:XListInputDevices
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_XOpenLC
+ fun:_XlcCurrentLC
+ fun:XSupportsLocale
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_XlcCreateLC
+ fun:_XlcUtf8Loader
+ fun:_XlcDynamicLoad
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ fun:_XlcCreateLC
+ fun:_XlcUtf8Loader
+}
+
+{
+ <>
+ Memcheck:Leak
+ fun:malloc
+ fun:_XcursorGetDisplayInfo
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ fun:_X11TransConnect
+ fun:_X11TransConnectDisplay
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ fun:_X11TransConnectDisplay
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:realloc
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ obj:/usr/X11R6/lib/libX11.so.6.2
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_XlcAddCT
+ fun:_XlcInitCTInfo
+ obj:/usr/X11R6/lib/libX11.so.6.2
+}
+{
+ <insert a suppression name here>
+ Memcheck:Leak
+ fun:malloc
+ fun:_XrmInternalStringToQuark
+ fun:XrmStringToQuark
+ fun:_XlcGetCharSet
+}
--
More information about the gnucash-devel
mailing list