
On Wed, 2004-09-08 at 11:57, Carl Hetherington wrote:
I just had a fiddle with this, and the errors that valgrind finds seem ONLY to be those relating to uninitialized memory locations; I couldn't find any heap overwrites. But I only had a quick go; valgrind is very slow on my machine.
Got one:
==2132== Invalid write of size 4 ==2132== at 0x8123898: prefs_get_recent_files() (prefs-utils.cpp:179) ==2132== by 0x811EE5E: sp_menu_append_recent_documents(_GtkWidget*, SPView*) (interface.cpp:640) ==2132== by 0x811E597: sp_ui_menu_append_submenu(_GtkMenu*, SPView*, void (*)(_GtkWidget*, SPView*), char const*, char const*, char const*) (interface.cpp:481) ==2132== by 0x811F076: sp_ui_file_menu(_GtkMenu*, SPDocument*, SPView*) (interface.cpp:678) ==2132== Address 0x1C69CC8C is 0 bytes after a block of size 4 alloc'd ==2132== at 0x1B904EDD: malloc (vg_replace_malloc.c:131) ==2132== by 0x1C3530D6: g_malloc (in /usr/lib/libglib-2.0.so.0.400.2) ==2132== by 0x812382E: prefs_get_recent_files() (prefs-utils.cpp:169) ==2132== by 0x811EE5E: sp_menu_append_recent_documents(_GtkWidget*, SPView*) (interface.cpp:640)
This one is my fault, as I broke sp_repr_n_children() :/
Should be fixed in CVS shortly.
-mental