Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppressing Valgrind errors from GTK+

I have an application that uses GTK+ and Glade; running Valgrind with the memcheck tool outputs about 2,000 errors. Does anyone have a good suppression file they can share for GTK applications?

I tried these, but each still leaves me with ~900 errors:

  • http://www.vips.ecs.soton.ac.uk/development/nip2.supp
  • http://www.gnome.org/~johan/gtk.suppression
  • https://gist.github.com/758760

A copy of the code I'm working with can be found here. Do make run to build the GUI (there is nothing but the GUI in this copy of the code).

like image 418
Nate Glenn Avatar asked Dec 10 '11 00:12

Nate Glenn


1 Answers

Try this, worked for me: http://lug.rose-hulman.edu/code/projects/grits/repository/revisions/master/raw/src/gtk.suppression

I've uploaded my modified version here: paste.org/47748

Here's my valgrind command line, but I think setting G_SLICE and G_DEBUG doesn't help as much as editing the suppressions file:

valgrind --tool=memcheck --leak-check=full --num-callers=15 --suppressions=gtk.supp --log-file=vgdump ./runner
like image 106
Denis Gorodetskiy Avatar answered Sep 24 '22 02:09

Denis Gorodetskiy