Hello,
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== Memcheck, a memory error detector.
==8546== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==8546== Using LibVEX rev 1575, a library for dynamic binary translation.
==8546== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==8546== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==8546== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==8546==
--8546-- Command line
--8546-- ./lab
--8546-- Startup, with flags:
--8546-- -v
--8546-- Contents of /proc/version:
--8546-- Linux version 2.6.16.27-0.6-default (geeko_at_buildhost) (gcc
version 4.1.0 (SUSE Linux)) #1 Wed Dec 13 09:34:50 UTC 2006
--8546-- Arch and subarch: X86, x86-sse2
--8546-- Valgrind library directory: /usr/lib/valgrind
--8546-- Reading syms from /lib/ld-2.4.so (0x4000000)
--8546-- Reading syms from /home/lema/hello/lab (0x8048000)
--8546-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0xB0000000)
--8546-- object doesn't have a symbol table
--8546-- object doesn't have a dynamic symbol table
--8546-- Reading suppressions file: /usr/lib/valgrind/default.supp
--8546-- REDIR: 0x4014CC0 (index) redirected to 0xB0021532 (???)
--8546-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so
(0x401D000)
--8546-- object doesn't have a symbol table
--8546-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so
(0x401F000)
--8546-- object doesn't have a symbol table
--8546-- REDIR: 0x4014E60 (strlen) redirected to 0x4021FD0 (strlen)
--8546-- Reading syms from /lib/libutil-2.4.so (0x4044000)
--8546-- Reading syms from /lib/libdl-2.4.so (0x4048000)
--8546-- Reading syms from /lib/libpthread-2.4.so (0x404C000)
--8546-- Reading syms from /lib/libc-2.4.so (0x4060000)
--8546-- REDIR: 0x4000820 (_dl_sysinfo_int80) redirected to 0xB002152F (???)
--8546-- REDIR: 0x40CB0B0 (memset) redirected to 0x4022260 (memset)
--8546-- REDIR: 0x40CB5B0 (memcpy) redirected to 0x4022A40 (memcpy)
--8546-- REDIR: 0x40CA230 (rindex) redirected to 0x4021E00 (rindex)
--8546-- REDIR: 0x40C9E80 (strlen) redirected to 0x4021FB0 (strlen)
--8546-- REDIR: 0x40CA080 (strncmp) redirected to 0x4022010 (strncmp)
==8546== Syscall param socketcall.send(msg) points to uninitialised byte(s)
==8546== at 0x411E811: send (in /lib/libc-2.4.so)
==8546== by 0x414CD9C: __nscd_get_map_ref (in /lib/libc-2.4.so)
==8546== by 0x414AC13: nscd_getpw_r (in /lib/libc-2.4.so)
==8546== by 0x414AF27: __nscd_getpwuid_r (in /lib/libc-2.4.so)
==8546== by 0x40E9F74: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.4.so)
==8546== by 0x40E9868: getpwuid (in /lib/libc-2.4.so)
==8546== by 0x80A229F: lam_tmpdir_init_opt (in /home/lema/hello/lab)
==8546== by 0x80A274F: lam_tmpdir_init (in /home/lema/hello/lab)
==8546== by 0x8095896: _cio_init (in /home/lema/hello/lab)
==8546== by 0x80955EA: _cipc_init (in /home/lema/hello/lab)
==8546== by 0x8093BFC: kinit (in /home/lema/hello/lab)
==8546== by 0x8095BB4: kenter (in /home/lema/hello/lab)
==8546== Address 0xBE9563E3 is on thread 1's stack
--8546-- REDIR: 0x40C98F0 (strcmp) redirected to 0x4022080 (strcmp)
--8546-- REDIR: 0x40C9960 (strcpy) redirected to 0x40225F0 (strcpy)
--8546-- REDIR: 0x40C9780 (index) redirected to 0x4021EF0 (index)
==8546==
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095B22: _cio_kreq (in /home/lema/hello/lab)
==8546== by 0x8093E01: kattach (in /home/lema/hello/lab)
==8546== by 0x8093C8E: kinit (in /home/lema/hello/lab)
==8546== by 0x8095BB4: kenter (in /home/lema/hello/lab)
==8546== by 0x80563D4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE9566BC is on thread 1's stack
==8546==
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095B22: _cio_kreq (in /home/lema/hello/lab)
==8546== by 0x80954B1: _cipc_ksend (in /home/lema/hello/lab)
==8546== by 0x80A33D5: ksend (in /home/lema/hello/lab)
==8546== by 0x809AB73: dsend (in /home/lema/hello/lab)
==8546== by 0x809B23C: nsend (in /home/lema/hello/lab)
==8546== by 0x809EC89: lpattach (in /home/lema/hello/lab)
==8546== by 0x80563D4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE9554D4 is on thread 1's stack
==8546==
==8546== Syscall param writev(vector[...]) points to uninitialised byte(s)
==8546== at 0x4116742: do_writev (in /lib/libc-2.4.so)
==8546== by 0x80A17DD: mwritev (in /home/lema/hello/lab)
==8546== by 0x80956A7: _cio_send (in /home/lema/hello/lab)
==8546== by 0x80954F3: _cipc_ksend (in /home/lema/hello/lab)
==8546== by 0x80A33D5: ksend (in /home/lema/hello/lab)
==8546== by 0x809AB73: dsend (in /home/lema/hello/lab)
==8546== by 0x809B23C: nsend (in /home/lema/hello/lab)
==8546== by 0x809EC89: lpattach (in /home/lema/hello/lab)
==8546== by 0x80563D4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE956768 is on thread 1's stack
==8546==
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095712: _cio_kreqfront (in /home/lema/hello/lab)
==8546== by 0x809536A: _cipc_ksrfront (in /home/lema/hello/lab)
==8546== by 0x80A300F: ksr (in /home/lema/hello/lab)
==8546== by 0x809AD39: dsfr (in /home/lema/hello/lab)
==8546== by 0x809AE47: bfrecv (in /home/lema/hello/lab)
==8546== by 0x809B0A8: nrecv (in /home/lema/hello/lab)
==8546== by 0x809E512: rpstate (in /home/lema/hello/lab)
==8546== by 0x8056169: lam_send_pid_idx (in /home/lema/hello/lab)
==8546== by 0x80566E4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== Address 0xBE9551B4 is on thread 1's stack
==8546==
==8546== Syscall param writev(vector[...]) points to uninitialised byte(s)
==8546== at 0x4116742: do_writev (in /lib/libc-2.4.so)
==8546== by 0x80A17DD: mwritev (in /home/lema/hello/lab)
==8546== by 0x80956A7: _cio_send (in /home/lema/hello/lab)
==8546== by 0x80953C0: _cipc_ksrfront (in /home/lema/hello/lab)
==8546== by 0x80A300F: ksr (in /home/lema/hello/lab)
==8546== by 0x809AD39: dsfr (in /home/lema/hello/lab)
==8546== by 0x809AE47: bfrecv (in /home/lema/hello/lab)
==8546== by 0x809B0A8: nrecv (in /home/lema/hello/lab)
==8546== by 0x809E512: rpstate (in /home/lema/hello/lab)
==8546== by 0x8056169: lam_send_pid_idx (in /home/lema/hello/lab)
==8546== by 0x80566E4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== Address 0xBE9552CC is on thread 1's stack
==8546==
==8546== Syscall param writev(vector) points to uninitialised byte(s)
==8546== at 0x4116742: do_writev (in /lib/libc-2.4.so)
==8546== by 0x80A17DD: mwritev (in /home/lema/hello/lab)
==8546== by 0x80956A7: _cio_send (in /home/lema/hello/lab)
==8546== by 0x80954F3: _cipc_ksend (in /home/lema/hello/lab)
==8546== by 0x80A33D5: ksend (in /home/lema/hello/lab)
==8546== by 0x809AB73: dsend (in /home/lema/hello/lab)
==8546== by 0x809B23C: nsend (in /home/lema/hello/lab)
==8546== by 0x80561C0: lam_send_pid_idx (in /home/lema/hello/lab)
==8546== by 0x80566E4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE95634C is on thread 1's stack
--8546-- REDIR: 0x40CA180 (strncpy) redirected to 0x40224C0 (strncpy)
--8546-- REDIR: 0x40C95D0 (strcat) redirected to 0x40226C0 (strcat)
--8546-- REDIR: 0x40CB040 (memmove) redirected to 0x4022290 (memmove)
--8546-- REDIR: 0x40C9FD0 (strncat) redirected to 0x4022940 (strncat)
--8546-- REDIR: 0x40CBE60 (rawmemchr) redirected to 0x4022330 (rawmemchr)
==8546==
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095712: _cio_kreqfront (in /home/lema/hello/lab)
==8546== by 0x80A2D45: kdetach (in /home/lema/hello/lab)
==8546== by 0x8093A71: lam_kexit (in /home/lema/hello/lab)
==8546== by 0x804ABF8: MPI_Finalize (in /home/lema/hello/lab)
==8546== by 0x804A78C: main (in /home/lema/hello/lab)
==8546== Address 0xBE956BFC is on thread 1's stack
==8546==
==8546== ERROR SUMMARY: 40 errors from 8 contexts (suppressed: 3 from 1)
==8546==
==8546== 1 errors in context 1 of 8:
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095712: _cio_kreqfront (in /home/lema/hello/lab)
==8546== by 0x80A2D45: kdetach (in /home/lema/hello/lab)
==8546== by 0x8093A71: lam_kexit (in /home/lema/hello/lab)
==8546== by 0x804ABF8: MPI_Finalize (in /home/lema/hello/lab)
==8546== by 0x804A78C: main (in /home/lema/hello/lab)
==8546== Address 0xBE956BFC is on thread 1's stack
==8546==
==8546== 1 errors in context 2 of 8:
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095B22: _cio_kreq (in /home/lema/hello/lab)
==8546== by 0x8093E01: kattach (in /home/lema/hello/lab)
==8546== by 0x8093C8E: kinit (in /home/lema/hello/lab)
==8546== by 0x8095BB4: kenter (in /home/lema/hello/lab)
==8546== by 0x80563D4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE9566BC is on thread 1's stack
==8546==
==8546== 1 errors in context 3 of 8:
==8546== Syscall param socketcall.send(msg) points to uninitialised byte(s)
==8546== at 0x411E811: send (in /lib/libc-2.4.so)
==8546== by 0x414CD9C: __nscd_get_map_ref (in /lib/libc-2.4.so)
==8546== by 0x414AC13: nscd_getpw_r (in /lib/libc-2.4.so)
==8546== by 0x414AF27: __nscd_getpwuid_r (in /lib/libc-2.4.so)
==8546== by 0x40E9F74: getpwuid_r@@GLIBC_2.1.2 (in /lib/libc-2.4.so)
==8546== by 0x40E9868: getpwuid (in /lib/libc-2.4.so)
==8546== by 0x80A229F: lam_tmpdir_init_opt (in /home/lema/hello/lab)
==8546== by 0x80A274F: lam_tmpdir_init (in /home/lema/hello/lab)
==8546== by 0x8095896: _cio_init (in /home/lema/hello/lab)
==8546== by 0x80955EA: _cipc_init (in /home/lema/hello/lab)
==8546== by 0x8093BFC: kinit (in /home/lema/hello/lab)
==8546== by 0x8095BB4: kenter (in /home/lema/hello/lab)
==8546== Address 0xBE9563E3 is on thread 1's stack
==8546==
==8546== 2 errors in context 4 of 8:
==8546== Syscall param writev(vector) points to uninitialised byte(s)
==8546== at 0x4116742: do_writev (in /lib/libc-2.4.so)
==8546== by 0x80A17DD: mwritev (in /home/lema/hello/lab)
==8546== by 0x80956A7: _cio_send (in /home/lema/hello/lab)
==8546== by 0x80954F3: _cipc_ksend (in /home/lema/hello/lab)
==8546== by 0x80A33D5: ksend (in /home/lema/hello/lab)
==8546== by 0x809AB73: dsend (in /home/lema/hello/lab)
==8546== by 0x809B23C: nsend (in /home/lema/hello/lab)
==8546== by 0x80561C0: lam_send_pid_idx (in /home/lema/hello/lab)
==8546== by 0x80566E4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE95634C is on thread 1's stack
==8546==
==8546== 7 errors in context 5 of 8:
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095B22: _cio_kreq (in /home/lema/hello/lab)
==8546== by 0x80954B1: _cipc_ksend (in /home/lema/hello/lab)
==8546== by 0x80A33D5: ksend (in /home/lema/hello/lab)
==8546== by 0x809AB73: dsend (in /home/lema/hello/lab)
==8546== by 0x809B23C: nsend (in /home/lema/hello/lab)
==8546== by 0x809EC89: lpattach (in /home/lema/hello/lab)
==8546== by 0x80563D4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE9554D4 is on thread 1's stack
==8546==
==8546== 8 errors in context 6 of 8:
==8546== Syscall param writev(vector[...]) points to uninitialised byte(s)
==8546== at 0x4116742: do_writev (in /lib/libc-2.4.so)
==8546== by 0x80A17DD: mwritev (in /home/lema/hello/lab)
==8546== by 0x80956A7: _cio_send (in /home/lema/hello/lab)
==8546== by 0x80953C0: _cipc_ksrfront (in /home/lema/hello/lab)
==8546== by 0x80A300F: ksr (in /home/lema/hello/lab)
==8546== by 0x809AD39: dsfr (in /home/lema/hello/lab)
==8546== by 0x809AE47: bfrecv (in /home/lema/hello/lab)
==8546== by 0x809B0A8: nrecv (in /home/lema/hello/lab)
==8546== by 0x809E512: rpstate (in /home/lema/hello/lab)
==8546== by 0x8056169: lam_send_pid_idx (in /home/lema/hello/lab)
==8546== by 0x80566E4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== Address 0xBE9552CC is on thread 1's stack
==8546==
==8546== 8 errors in context 7 of 8:
==8546== Syscall param write(buf) points to uninitialised byte(s)
==8546== at 0x4057233: __write_nocancel (in /lib/libpthread-2.4.so)
==8546== by 0x8095712: _cio_kreqfront (in /home/lema/hello/lab)
==8546== by 0x809536A: _cipc_ksrfront (in /home/lema/hello/lab)
==8546== by 0x80A300F: ksr (in /home/lema/hello/lab)
==8546== by 0x809AD39: dsfr (in /home/lema/hello/lab)
==8546== by 0x809AE47: bfrecv (in /home/lema/hello/lab)
==8546== by 0x809B0A8: nrecv (in /home/lema/hello/lab)
==8546== by 0x809E512: rpstate (in /home/lema/hello/lab)
==8546== by 0x8056169: lam_send_pid_idx (in /home/lema/hello/lab)
==8546== by 0x80566E4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== Address 0xBE9551B4 is on thread 1's stack
==8546==
==8546== 12 errors in context 8 of 8:
==8546== Syscall param writev(vector[...]) points to uninitialised byte(s)
==8546== at 0x4116742: do_writev (in /lib/libc-2.4.so)
==8546== by 0x80A17DD: mwritev (in /home/lema/hello/lab)
==8546== by 0x80956A7: _cio_send (in /home/lema/hello/lab)
==8546== by 0x80954F3: _cipc_ksend (in /home/lema/hello/lab)
==8546== by 0x80A33D5: ksend (in /home/lema/hello/lab)
==8546== by 0x809AB73: dsend (in /home/lema/hello/lab)
==8546== by 0x809B23C: nsend (in /home/lema/hello/lab)
==8546== by 0x809EC89: lpattach (in /home/lema/hello/lab)
==8546== by 0x80563D4: lam_linit (in /home/lema/hello/lab)
==8546== by 0x804D714: lam_mpi_init (in /home/lema/hello/lab)
==8546== by 0x805221E: MPI_Init (in /home/lema/hello/lab)
==8546== by 0x804A733: main (in /home/lema/hello/lab)
==8546== Address 0xBE956768 is on thread 1's stack
--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
|