[Gnucash-changes] Patch from Chris Shoemaker to add some additional suppressions when

David Hampton hampton at cvs.gnucash.org
Thu Oct 13 00:35:28 EDT 2005


Log Message:
-----------
Patch from Chris Shoemaker to add some additional suppressions when
invoking gnucash via valgrind.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src:
        valgrind-gnucash.supp

Added Files:
-----------
    gnucash/src:
        valgrind-gdk.supp
        valgrind-x11.supp

Revision Data
-------------
Index: valgrind-gnucash.supp
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/valgrind-gnucash.supp,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -Lsrc/valgrind-gnucash.supp -Lsrc/valgrind-gnucash.supp -u -r1.2 -r1.2.2.1
--- src/valgrind-gnucash.supp
+++ 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
+}
+
+
 # ##----------------------------------------------------------------------##
--- /dev/null
+++ 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
+}
--- /dev/null
+++ 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
+}


More information about the gnucash-changes mailing list