Re: Valgrind and GTK



jcupitt gmail com wrote:

> Then run with:
> 
> $ export G_SLICE=always-malloc
> $ export G_DEBUG=gc-friendly
> $ valgrind --leak-check=yes nip2 > valgrind.log 2>&1
> 
> And I get no reported leaks (well, one report from selinux and one
> from a getpwd call somewhere)

With your suppressions file on the helloworld program from the GTK
tutorial and valgrind on Ubuntu 9.10 run as:

  $ export G_SLICE=always-malloc
  $ export G_DEBUG=gc-friendly
  $ valgrind --tool=memcheck --leak-check=full --leak-resolution=high \
	--num-callers=50 --show-reachable=yes \
	--suppressions=gtk.suppression2 \
	helloworld > helloworld-vg.txt 2>&1

I get:

  ==29293== LEAK SUMMARY:
  ==29293==    definitely lost: 1,449 bytes in 8 blocks
  ==29293==    indirectly lost: 3,716 bytes in 189 blocks
  ==29293==      possibly lost: 2,134 bytes in 41 blocks
  ==29293==    still reachable: 333,811 bytes in 6,837 blocks
  ==29293==         suppressed: 86,317 bytes in 1,323 blocks

Full output here:

    http://www.mega-nerd.com/tmp/helloworld-vg.txt.gz

>  for my 300,000 line GTK application.

Is that public? In revision control somewhere?

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]