[Meta]: Add hints for debugging gnome-todo
When trying to hunt down a few issues in gnome-todo, I wanted to run it under valgrind as it seems that gnome-todo is full of invalid memory access bugs (use after free, …).
Some hint I got together:
- use
GIGACAGE_ENABLED=0
for webkit, see https://bugs.webkit.org/show_bug.cgi?id=185507 . Otherwise, valgrind will make gnome-todo crash before it even started. - use
G_SLICE=always-malloc G_DEBUG=gc-friendly
as for any GLib application running under valgrind
My setup for debugging gnome-todo under valgrind looks like this:
- make sure you have debug symbols installed.
- open a terminal, run
$ GIGACAGE_ENABLED=0 G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --vgdb=full --vgdb-error=0 gnome-todo
- open another terminal, run gdb as told by valgrind's output