|
From: Roberto V. A. <rob...@bi...> - 2006-04-21 21:44:20
|
Hi: =20
I have been used the valgrind to debug a MPI program.
Valgrind does not performed any debug. It said that no malloc/free was u=
sed=20
in the program.
The program was compile:
hydra:valgind> gcc mpi_class.c -o mpi_class -ldl -lmpi -llam -lpthread
hydra:valgind>
To run valgrind with LAM/MPI:
hydra:valgind> alias mpigo=3D"mpirun -np 2 valgrind -v --tool=3Dmemcheck=20
=2D-leak-check=3Dyes --show-reachable=3Dyes --log-file=3Dparallel_log"
hydra:valgind> mpigo ./mpi_class
I'am node: 1
You are the node: 0
You send me: The message from 0
I'am node: 0
You are the node: 1
You send me: The message from 1
hydra:valgind> =20
In the program, the node 0 create a char string and send it to the node 1 a=
nd=20
the node 1 create a char string and send it to the node 0.
The programs have 4 malloc and 4 free and the valgrind log for the node 0 i=
s:
=3D=3D9605=3D=3D Memcheck, a memory error detector.
=3D=3D9605=3D=3D Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward e=
t al.
=3D=3D9605=3D=3D Using LibVEX rev 1575, a library for dynamic binary transl=
ation.
=3D=3D9605=3D=3D Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
=3D=3D9605=3D=3D Using valgrind-3.1.1, a dynamic binary instrumentation fra=
mework.
=3D=3D9605=3D=3D Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward e=
t al.
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D My PID =3D 9605, parent PID =3D 27180. Prog and args are:
=3D=3D9605=3D=3D ./mpi_class
=3D=3D9605=3D=3D
=2D-9605--
=2D-9605-- Command line
=2D-9605-- ./mpi_class
=2D-9605-- Startup, with flags:
=2D-9605-- -v
=2D-9605-- --tool=3Dmemcheck
=2D-9605-- --leak-check=3Dyes
=2D-9605-- --show-reachable=3Dyes
=2D-9605-- --log-file=3Dparallel_log
=2D-9605-- Contents of /proc/version:
=2D-9605-- Linux version 2.6.13-15.8-smp (geeko@buildhost) (gcc version 4=
=2E0.2=20
20050901 (prerelease) (SUSE Linux)) #1 SMP Tue Feb 7 11:07:24 UTC 2006
=2D-9605-- Arch and subarch: X86, x86-sse1
=2D-9605-- Valgrind library directory: /usr/local/lib/valgrind
=2D-9605-- Reading syms from /lib/ld-2.3.5.so (0x4000000)
=2D-9605-- Reading syms from /home/rvera/valgind/mpi_class (0x8048000)
=2D-9605-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck=20
(0xA0000000)
=2D-9605-- object doesn't have a dynamic symbol table
=2D-9605-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
=2D-9605-- REDIR: 0x4011440 (index) redirected to 0xA001C37E=20
(vgPlain_x86_linux_REDIR_FOR_index)
=2D-9605-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_co=
re.so=20
(0x4017000)
=2D-9605-- Reading syms=20
from /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401A000)
=2D-9605-- REDIR: 0x40115E0 (strlen) redirected to 0x401CE90 (strlen)
=2D-9605-- Reading syms from /lib/libdl-2.3.5.so (0x4039000)
=2D-9605-- Reading syms from /lib/tls/libpthread-2.3.5.so (0x403D000)
=2D-9605-- Reading syms from /lib/tls/libc-2.3.5.so (0x404F000)
=2D-9605-- REDIR: 0x40007A0 (_dl_sysinfo_int80) redirected to 0xA001C37B (?=
??)
=2D-9605-- REDIR: 0x40BA0A0 (memset) redirected to 0x401D1C0 (memset)
=2D-9605-- REDIR: 0x40BA570 (memcpy) redirected to 0x401D2A0 (memcpy)
=2D-9605-- REDIR: 0x40B9220 (rindex) redirected to 0x401CCC0 (rindex)
=2D-9605-- REDIR: 0x40B8D90 (strlen) redirected to 0x401CE70 (strlen)
=2D-9605-- REDIR: 0x40B8FB0 (strncmp) redirected to 0x401CED0 (strncmp)
=2D-9605-- REDIR: 0x40B8810 (strcmp) redirected to 0x401CF40 (strcmp)
=2D-9605-- REDIR: 0x40B86A0 (index) redirected to 0x401CDB0 (index)
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x808FFB4: _cio_kreq (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F163: kattach (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x808EFFC: kinit (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8090164: kenter (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E853C is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x808FFB4: _cio_kreq (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F9AE: _cipc_ksend (in /home/rvera/valgind/mpi_c=
lass)
=3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097DAA: lpattach (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E7354 is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialised =
byte(s)
=3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
=3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi_c=
lass)
=3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097DAA: lpattach (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E85E8 is on thread 1's stack
=2D-9605-- REDIR: 0x40B8880 (strcpy) redirected to 0x401D520 (strcpy)
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x808FB91: _cipc_ksrfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x809BC04: ksrfront (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x809BD5E: ksr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in /home/rvera/valgind/=
mpi_class)
=3D=3D9605=3D=3D by 0x8054FB9: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D Address 0xBE8E7004 is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialised =
byte(s)
=3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
=3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808FBED: _cipc_ksrfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x809BC04: ksrfront (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x809BD5E: ksr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in /home/rvera/valgind/=
mpi_class)
=3D=3D9605=3D=3D by 0x8054FB9: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D Address 0xBE8E7144 is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D Syscall param writev(vector) points to uninitialised byte(=
s)
=3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
=3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi_c=
lass)
=3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054C92: lam_send_pid_idx (in /home/rvera/valgind/=
mpi_class)
=3D=3D9605=3D=3D by 0x8054FB9: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E81CC is on thread 1's stack
=2D-9605-- REDIR: 0x40B9140 (strncpy) redirected to 0x401D880 (strncpy)
=2D-9605-- REDIR: 0x40B84F0 (strcat) redirected to 0x401D450 (strcat)
=2D-9605-- REDIR: 0x40BA030 (memmove) redirected to 0x401D1F0 (memmove)
=2D-9605-- REDIR: 0x40B8EE0 (strncat) redirected to 0x401D780 (strncat)
=2D-9605-- REDIR: 0x40BAEB0 (rawmemchr) redirected to 0x401D280 (rawmemchr)
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x809BB15: kdetach (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x808EDB1: lam_kexit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804B0D9: MPI_Finalize (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x804AC5B: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E89CC is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D ERROR SUMMARY: 46 errors from 7 contexts (suppressed: 15 f=
rom 1)
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 1 errors in context 1 of 7:
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x809BB15: kdetach (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x808EDB1: lam_kexit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804B0D9: MPI_Finalize (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x804AC5B: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E89CC is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 1 errors in context 2 of 7:
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x808FFB4: _cio_kreq (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F163: kattach (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x808EFFC: kinit (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8090164: kenter (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E853C is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 3 errors in context 3 of 7:
=3D=3D9605=3D=3D Syscall param writev(vector) points to uninitialised byte(=
s)
=3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
=3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi_c=
lass)
=3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054C92: lam_send_pid_idx (in /home/rvera/valgind/=
mpi_class)
=3D=3D9605=3D=3D by 0x8054FB9: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E81CC is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 9 errors in context 4 of 7:
=3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialised =
byte(s)
=3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
=3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808FBED: _cipc_ksrfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x809BC04: ksrfront (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x809BD5E: ksr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in /home/rvera/valgind/=
mpi_class)
=3D=3D9605=3D=3D by 0x8054FB9: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D Address 0xBE8E7144 is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 9 errors in context 5 of 7:
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x808FB91: _cipc_ksrfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x809BC04: ksrfront (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x809BD5E: ksr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in /home/rvera/valgind/=
mpi_class)
=3D=3D9605=3D=3D by 0x8054FB9: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D Address 0xBE8E7004 is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 9 errors in context 6 of 7:
=3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
=3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in /lib/tls/libpthread-=
2.3.5.so)
=3D=3D9605=3D=3D by 0x808FF03: _cio_kreqfront (in /home/rvera/valgind/mp=
i_class)
=3D=3D9605=3D=3D by 0x808FFB4: _cio_kreq (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F9AE: _cipc_ksend (in /home/rvera/valgind/mpi_c=
lass)
=3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097DAA: lpattach (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E7354 is on thread 1's stack
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D 14 errors in context 7 of 7:
=3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialised =
byte(s)
=3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
=3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi_c=
lass)
=3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D by 0x8097DAA: lpattach (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_cla=
ss)
=3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mpi_=
class)
=3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_clas=
s)
=3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
=3D=3D9605=3D=3D Address 0xBE8E85E8 is on thread 1's stack
=2D-9605--
=2D-9605-- supp: 15 Ubuntu-stripped-ld.so
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D IN SUMMARY: 46 errors from 7 contexts (suppressed: 15 from=
1)
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D malloc/free: in use at exit: 0 bytes in 0 blocks.
=3D=3D9605=3D=3D malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
=3D=3D9605=3D=3D
=3D=3D9605=3D=3D All heap blocks were freed -- no leaks are possible.
=2D-9605-- memcheck: sanity checks: 5 cheap, 1 expensive
=2D-9605-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
=2D-9605-- memcheck: auxmaps: 0 searches, 0 comparisons
=2D-9605-- memcheck: secondaries: 15 issued (960k, 0M)
=2D-9605-- memcheck: secondaries: 26 accessible and distinguished (1664k, =
1M)
=2D-9605-- tt/tc: 12,321 tt lookups requiring 12,827 probes
=2D-9605-- tt/tc: 12,321 fast-cache updates, 3 flushes
=2D-9605-- translate: new 5,961 (133,248 -> 2,025,190; ratio 151:10)=
[0=20
scs]
=2D-9605-- translate: dumped 0 (0 -> ??)
=2D-9605-- translate: discarded 5 (122 -> ??)
=2D-9605-- scheduler: 271,180 jumps (bb entries).
=2D-9605-- scheduler: 5/6,684 major/minor sched events.
=2D-9605-- sanity: 6 cheap, 1 expensive checks.
=2D-9605-- exectx: 30,011 lists, 44 contexts (avg 0 per list)
=2D-9605-- exectx: 61 searches, 18 full compares (295 per 1000)
=2D-9605-- exectx: 0 cmp2, 178 cmp4, 0 cmpAll
=20
I note that in the "REDIR:" part the functions malloc and free are not=20
redirected.
Could somone help me, please?? =20
Thank in advance,
Roberto.
=20
=2D-=20
Lic. Roberto Vera Alvarez
Grupo de Bioinform=E1tica
CIGB, La Habana, Cuba.
=2D-------------------------------
rob...@bi...
=2D-------------------------------
Toda la gloria del mundo cabe
en un grano de ma=EDz.
J. Mart=ED
=2D-------------------------------
Windows??=20
I'm Linux user!!!!!!!!=20
|
|
From: Roberto V. A. <rob...@bi...> - 2006-04-22 16:09:57
|
Hi:
I found that LAM/MPI has it memory debugger inside.
I think that Valgrind can't redirect the malloc function because this=
=20
function is "inside a memory manager in the LAM/MPI code".
The solution is recompile LAM with this option for the configure script:
--with-memory-manager=3Dexternal
Then, Valgrind can redirect the malloc function and it work fine for each=
=20
node.
Best regards,
Roberto.
On Friday 21 April 2006 17:44, Roberto Vera Alvarez wrote:
> Hi:
> I have been used the valgrind to debug a MPI program.
> Valgrind does not performed any debug. It said that no malloc/free was
> used in the program.
>
> The program was compile:
> hydra:valgind> gcc mpi_class.c -o mpi_class -ldl -lmpi -llam -lpthread
> hydra:valgind>
>
> To run valgrind with LAM/MPI:
>
> hydra:valgind> alias mpigo=3D"mpirun -np 2 valgrind -v --tool=3Dmemcheck
> --leak-check=3Dyes --show-reachable=3Dyes --log-file=3Dparallel_log"
> hydra:valgind> mpigo ./mpi_class
>
> I'am node: 1
> You are the node: 0
> You send me: The message from 0
>
> I'am node: 0
> You are the node: 1
> You send me: The message from 1
> hydra:valgind>
>
> In the program, the node 0 create a char string and send it to the node 1
> and the node 1 create a char string and send it to the node 0.
> The programs have 4 malloc and 4 free and the valgrind log for the node 0
> is:
>
> =3D=3D9605=3D=3D Memcheck, a memory error detector.
> =3D=3D9605=3D=3D Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward=
et al.
> =3D=3D9605=3D=3D Using LibVEX rev 1575, a library for dynamic binary tran=
slation.
> =3D=3D9605=3D=3D Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
> =3D=3D9605=3D=3D Using valgrind-3.1.1, a dynamic binary instrumentation f=
ramework.
> =3D=3D9605=3D=3D Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward=
et al.
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D My PID =3D 9605, parent PID =3D 27180. Prog and args ar=
e:
> =3D=3D9605=3D=3D ./mpi_class
> =3D=3D9605=3D=3D
> --9605--
> --9605-- Command line
> --9605-- ./mpi_class
> --9605-- Startup, with flags:
> --9605-- -v
> --9605-- --tool=3Dmemcheck
> --9605-- --leak-check=3Dyes
> --9605-- --show-reachable=3Dyes
> --9605-- --log-file=3Dparallel_log
> --9605-- Contents of /proc/version:
> --9605-- Linux version 2.6.13-15.8-smp (geeko@buildhost) (gcc version
> 4.0.2 20050901 (prerelease) (SUSE Linux)) #1 SMP Tue Feb 7 11:07:24 UTC
> 2006 --9605-- Arch and subarch: X86, x86-sse1
> --9605-- Valgrind library directory: /usr/local/lib/valgrind
> --9605-- Reading syms from /lib/ld-2.3.5.so (0x4000000)
> --9605-- Reading syms from /home/rvera/valgind/mpi_class (0x8048000)
> --9605-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck
> (0xA0000000)
> --9605-- object doesn't have a dynamic symbol table
> --9605-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
> --9605-- REDIR: 0x4011440 (index) redirected to 0xA001C37E
> (vgPlain_x86_linux_REDIR_FOR_index)
> --9605-- Reading syms from
> /usr/local/lib/valgrind/x86-linux/vgpreload_core.so (0x4017000)
> --9605-- Reading syms
> from /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401A000)
> --9605-- REDIR: 0x40115E0 (strlen) redirected to 0x401CE90 (strlen)
> --9605-- Reading syms from /lib/libdl-2.3.5.so (0x4039000)
> --9605-- Reading syms from /lib/tls/libpthread-2.3.5.so (0x403D000)
> --9605-- Reading syms from /lib/tls/libc-2.3.5.so (0x404F000)
> --9605-- REDIR: 0x40007A0 (_dl_sysinfo_int80) redirected to 0xA001C37B
> (???) --9605-- REDIR: 0x40BA0A0 (memset) redirected to 0x401D1C0 (memset)
> --9605-- REDIR: 0x40BA570 (memcpy) redirected to 0x401D2A0 (memcpy)
> --9605-- REDIR: 0x40B9220 (rindex) redirected to 0x401CCC0 (rindex)
> --9605-- REDIR: 0x40B8D90 (strlen) redirected to 0x401CE70 (strlen)
> --9605-- REDIR: 0x40B8FB0 (strncmp) redirected to 0x401CED0 (strncmp)
> --9605-- REDIR: 0x40B8810 (strcmp) redirected to 0x401CF40 (strcmp)
> --9605-- REDIR: 0x40B86A0 (index) redirected to 0x401CDB0 (index)
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808FFB4: _cio_kre=
q (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808F163: kattach =
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808EFFC: kinit (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8090164: kenter (=
in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054CD8: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804A953: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E853C is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808FFB4: _cio_kre=
q (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808F9AE: _cipc_ks=
end (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BF87: ksend (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8093C78: dsend (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809435A: nsend (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8097DAA: lpattach=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054CD8: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804A953: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E7354 is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialise=
d byte(s)
> =3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
> =3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi=
_class)
> =3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8097DAA: lpattach (in /home/rvera/valgind/mpi_cl=
ass)
> =3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mp=
i_class)
> =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_cl=
ass)
> =3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E85E8 is on thread 1's stack
> --9605-- REDIR: 0x40B8880 (strcpy) redirected to 0x401D520 (strcpy)
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808FB91: _cipc_ks=
rfront (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BC04: ksrfront=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BD5E: ksr (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_clas=
s)
> =3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054FB9: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D Address 0xBE8E7004 is on=
thread
> 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialise=
d byte(s)
> =3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
> =3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x808FBED: _cipc_ksrfront (in /home/rvera/valgind/=
mpi_class)
> =3D=3D9605=3D=3D by 0x809BC04: ksrfront (in /home/rvera/valgind/mpi_cl=
ass)
> =3D=3D9605=3D=3D by 0x809BD5E: ksr (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_clas=
s)
> =3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054FB9: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D Address 0xBE8E7144 is on=
thread
> 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D Syscall param writev(vector) points to uninitialised byt=
e(s)
> =3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
> =3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi=
_class)
> =3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8054C92: lam_send_pid_idx (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054FB9: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804A953: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E81CC is on thread 1's stack
> --9605-- REDIR: 0x40B9140 (strncpy) redirected to 0x401D880 (strncpy)
> --9605-- REDIR: 0x40B84F0 (strcat) redirected to 0x401D450 (strcat)
> --9605-- REDIR: 0x40BA030 (memmove) redirected to 0x401D1F0 (memmove)
> --9605-- REDIR: 0x40B8EE0 (strncat) redirected to 0x401D780 (strncat)
> --9605-- REDIR: 0x40BAEB0 (rawmemchr) redirected to 0x401D280 (rawmemchr)
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BB15: kdetach =
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808EDB1: lam_kexi=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804B0D9: MPI_Fina=
lize (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804AC5B: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E89CC is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D ERROR SUMMARY: 46 errors from 7 contexts (suppressed: 15=
from 1)
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 1 errors in context 1 of 7:
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BB15: kdetach =
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808EDB1: lam_kexi=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804B0D9: MPI_Fina=
lize (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804AC5B: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E89CC is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 1 errors in context 2 of 7:
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808FFB4: _cio_kre=
q (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808F163: kattach =
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808EFFC: kinit (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8090164: kenter (=
in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054CD8: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804A953: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E853C is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 3 errors in context 3 of 7:
> =3D=3D9605=3D=3D Syscall param writev(vector) points to uninitialised byt=
e(s)
> =3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
> =3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi=
_class)
> =3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8054C92: lam_send_pid_idx (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054FB9: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804A953: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E81CC is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 9 errors in context 4 of 7:
> =3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialise=
d byte(s)
> =3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
> =3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x808FBED: _cipc_ksrfront (in /home/rvera/valgind/=
mpi_class)
> =3D=3D9605=3D=3D by 0x809BC04: ksrfront (in /home/rvera/valgind/mpi_cl=
ass)
> =3D=3D9605=3D=3D by 0x809BD5E: ksr (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_clas=
s)
> =3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054FB9: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D Address 0xBE8E7144 is on=
thread
> 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 9 errors in context 5 of 7:
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808FB91: _cipc_ks=
rfront (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BC04: ksrfront=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BD5E: ksr (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093D45: dsfr (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093E7A: bfrecv (in /home/rvera/valgind/mpi_clas=
s)
> =3D=3D9605=3D=3D by 0x80940E6: nrecv (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8097613: rpstate (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x8054C3B: lam_send_pid_idx (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054FB9: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D Address 0xBE8E7004 is on=
thread
> 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 9 errors in context 6 of 7:
> =3D=3D9605=3D=3D Syscall param write(buf) points to uninitialised byte(s)
> =3D=3D9605=3D=3D at 0x4047353: __write_nocancel (in
> /lib/tls/libpthread-2.3.5.so) =3D=3D9605=3D=3D by 0x808FF03: _cio_kreq=
front (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808FFB4: _cio_kre=
q (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x808F9AE: _cipc_ks=
end (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809BF87: ksend (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8093C78: dsend (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x809435A: nsend (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8097DAA: lpattach=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8054CD8: lam_lini=
t (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_=
init (in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init=
(in
> /home/rvera/valgind/mpi_class) =3D=3D9605=3D=3D by 0x804A953: main (in
> /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E7354 is on thread 1's stack
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D 14 errors in context 7 of 7:
> =3D=3D9605=3D=3D Syscall param writev(vector[...]) points to uninitialise=
d byte(s)
> =3D=3D9605=3D=3D at 0x4105986: do_writev (in /lib/tls/libc-2.3.5.so)
> =3D=3D9605=3D=3D by 0x809A6C2: mwritev (in /home/rvera/valgind/mpi_cla=
ss)
> =3D=3D9605=3D=3D by 0x80900C8: _cio_send (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x808F9FF: _cipc_ksend (in /home/rvera/valgind/mpi=
_class)
> =3D=3D9605=3D=3D by 0x809BF87: ksend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8093C78: dsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x809435A: nsend (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D by 0x8097DAA: lpattach (in /home/rvera/valgind/mpi_cl=
ass)
> =3D=3D9605=3D=3D by 0x8054CD8: lam_linit (in /home/rvera/valgind/mpi_c=
lass)
> =3D=3D9605=3D=3D by 0x804D3C4: lam_mpi_init (in /home/rvera/valgind/mp=
i_class)
> =3D=3D9605=3D=3D by 0x8050B3C: MPI_Init (in /home/rvera/valgind/mpi_cl=
ass)
> =3D=3D9605=3D=3D by 0x804A953: main (in /home/rvera/valgind/mpi_class)
> =3D=3D9605=3D=3D Address 0xBE8E85E8 is on thread 1's stack
> --9605--
> --9605-- supp: 15 Ubuntu-stripped-ld.so
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D IN SUMMARY: 46 errors from 7 contexts (suppressed: 15 fr=
om 1)
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D malloc/free: in use at exit: 0 bytes in 0 blocks.
> =3D=3D9605=3D=3D malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
> =3D=3D9605=3D=3D
> =3D=3D9605=3D=3D All heap blocks were freed -- no leaks are possible.
> --9605-- memcheck: sanity checks: 5 cheap, 1 expensive
> --9605-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
> --9605-- memcheck: auxmaps: 0 searches, 0 comparisons
> --9605-- memcheck: secondaries: 15 issued (960k, 0M)
> --9605-- memcheck: secondaries: 26 accessible and distinguished (1664k,
> 1M) --9605-- tt/tc: 12,321 tt lookups requiring 12,827 probes
> --9605-- tt/tc: 12,321 fast-cache updates, 3 flushes
> --9605-- translate: new 5,961 (133,248 -> 2,025,190; ratio 151:10)
> [0 scs]
> --9605-- translate: dumped 0 (0 -> ??)
> --9605-- translate: discarded 5 (122 -> ??)
> --9605-- scheduler: 271,180 jumps (bb entries).
> --9605-- scheduler: 5/6,684 major/minor sched events.
> --9605-- sanity: 6 cheap, 1 expensive checks.
> --9605-- exectx: 30,011 lists, 44 contexts (avg 0 per list)
> --9605-- exectx: 61 searches, 18 full compares (295 per 1000)
> --9605-- exectx: 0 cmp2, 178 cmp4, 0 cmpAll
>
> I note that in the "REDIR:" part the functions malloc and free are not
> redirected.
>
> Could somone help me, please??
>
> Thank in advance,
> Roberto.
=2D-=20
Lic. Roberto Vera Alvarez
Grupo de Bioinform=E1tica
CIGB, La Habana, Cuba.
=2D-------------------------------
rob...@bi...
=2D-------------------------------
Toda la gloria del mundo cabe
en un grano de ma=EDz.
J. Mart=ED
=2D-------------------------------
Windows??=20
I'm Linux user!!!!!!!!=20
|