[Gc] valgrind and libgc

Alexander Petrossian (PAF) Alexander.Petrossian at teligent.ru
Thu May 4 23:27:36 PDT 2006


Travis Griggs @ Thursday, May 4, 2006 4:50:24 AM:
TG> I've never used valgrind before. But I've some memory's getting  
TG> trashed from somewhere it shouldn't... I thought I'd try to use  
TG> valgrind to see if it could help me figure out where.

Travis,
libgc has two of super-useful ways of debugging that out.
See
	Unexpectedly Large Heap
	http://www.hpl.hp.com/personal/Hans_Boehm/gc/debugging.html

One solution I successfully used is
	GC_generate_random_backtrace()
function.

It can do during runtime -- no need to stop things.
Read about it, and probably you would not need any valgrind ;)

-- 
Alexander Petrossian, Software Developer, Teligent Russia



More information about the Gc mailing list