xfdesktop feature freeze

Brian J. Tarricone bjt23 at cornell.edu
Tue Mar 14 23:43:07 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



SJM Arts wrote:
> 
>>==26911== 6 bytes in 1 blocks are still reachable in loss record 
> 
> 36 of 726
> 
>>==26911==    at 0x401B422: malloc (vg_replace_malloc.c:149)
>>==26911==    by 0x470BB1A: g_malloc (in /usr/lib/libglib-
> 
> 2.0.so.0.800.6)> ==26911==    by 0x471DA98: g_strdup (in 
> /usr/lib/libglib-2.0.so.0.800.6)
> 
>>==26911==    by 0x46EF3B7: g_get_filename_charsets (in
>>/usr/lib/libglib-2.0.so.0.800.6)
>>==26911==    by 0x46EFF3E: g_filename_display_name (in
>>/usr/lib/libglib-2.0.so.0.800.6)
>>==26911==    by 0x44D1D0E: gdk_pixbuf_new_from_file (in
>>/usr/lib/libgdk_pixbuf-2.0.so.0.800.12)
>>==26911==    by 0x805641A: xfce_backdrop_get_pixbuf (xfce-
> 
> backdrop.c:553)> ==26911==    by 0x8056CB3: backdrop_changed_cb 
> (xfce-desktop.c:269)
> 
>>==26911==    by 0x805729F: handle_xinerama_unstretch (xfce-
> 
> desktop.c:441)> ==26911==    by 0x80595CE: 
> xfce_desktop_settings_load_initial> (xfce-desktop-settings.c:366)
> 
>>==26911==    by 0x8053D75: main (main.c:327)
> 
>>can't figure out how to fix this, perhaps you want to take a look 
> 
> at this.
> 
> That's either a leak in gdk-pixbuf, or an intentional caching of
> filename display names by glib.  Not something I can do anything 
> about.
> 	-brian
> 

> When looking at my 795KB valgrind log i think i should get myself a more
> stable gtk and glib :p.

And maybe not worry so much about losing 6 bytes of memory ^_~.

With valgrind, it's best to start with the "definitely lost" entries
first.  "Still reachable" entries are often not even leaks at all.  And
always make sure --num-callers=XX is large enough (I usually give it 30
or 40) to see the entire call stack.  Unless you can point it to a line
of my code that receives memory allocated farther up in the stack[1],
there's not much that can be done about it.

[1] As an example, the previous one was indeed a point in my code that
allocates memory, but the rest of the stack pointed to a function inside
someone else's code that allocates memory that it doesn't actually
return to my code.  So obiously xfdesktop has no visibility on that.

	-brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEF0b76XyW6VEeAnsRAqS6AKCDzSktVwKFjjLzbEharosO62jQSACg78+9
h+46BYHEjoigFDS8b678eSc=
=mxMU
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list