With --with-purify option I get rid of that errors, but I am interested in
check the
memory leaks. I am running a "hello world" program, with a malloc and the
memcheck
does not detect that this pointer is not free.
Is possible check this leaks with valgrind?
>==8546== malloc/free: in use at exit: 0 bytes in 0 blocks.
>==8546== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
thanks
>
>I am new using lam-mpi and I am using valgrind with the tool memcheck to
>find the memory leaks.
>The result, show below, does not detect leaks when I have put several in my
>code.
>
>In the mailing list tell, that I can use valgrind with lam-mpi but I can't
>see the leaks.
>
>I execute the next command with more options of valgrind:
>
> mpirun -v -np 1 valgrind -v ./lab
>
>If I put first valgrind than mpirun, the out shows the leaks of mpirun.
>
>Is it neccesary install lam-mpi with the purify option to check leaks? this
>option is only for the syscall param errors?
>
>very thanks and excuse me for my English.
>
>
>--8546--
>--8546-- supp: 3 Fedora-Core-5-hack2a
>==8546==
>==8546== IN SUMMARY: 40 errors from 8 contexts (suppressed: 3 from 1)
>==8546==
>
>**************************************************************
>==8546== malloc/free: in use at exit: 0 bytes in 0 blocks.
>==8546== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
>*************************************************************
>==8546==
>==8546== All heap blocks were freed -- no leaks are possible.
>--8546-- memcheck: sanity checks: 3 cheap, 1 expensive
>--8546-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
>--8546-- memcheck: auxmaps: 0 searches, 0 comparisons
>--8546-- memcheck: secondaries: 15 issued (960k, 0M)
>--8546-- memcheck: secondaries: 25 accessible and distinguished (1600k,
>1M)
>--8546-- tt/tc: 10,300 tt lookups requiring 10,611 probes
>--8546-- tt/tc: 10,300 fast-cache updates, 3 flushes
>--8546-- translate: new 4,975 (121,988 -> 1,738,326; ratio 142:10)
>[0 scs]
>--8546-- translate: dumped 0 (0 -> ??)
>--8546-- translate: discarded 6 (146 -> ??)
>--8546-- scheduler: 172,259 jumps (bb entries).
>--8546-- scheduler: 3/5,548 major/minor sched events.
>--8546-- sanity: 4 cheap, 1 expensive checks.
>--8546-- exectx: 30,011 lists, 36 contexts (avg 0 per list)
>--8546-- exectx: 43 searches, 7 full compares (162 per 1000)
>--8546-- exectx: 0 cmp2, 125 cmp4, 0 cmpAll
>
_________________________________________________________________
Moda para esta temporada. Ponte al día de todas las tendencias.
http://www.msn.es/Mujer/moda/default.asp
|