The very simple attached program throws lots of valgrind errors.
I am using pets 3.8.3, compiled with the following options:

 
./configure \
  --with-debugging=1 \
  --with-fortran=1 \
  --download-mpich=../mpich-3.3a2.tar.gz \
 

The makefile, run file, and valgrind output are also attached.


Randy M.



Attachment: cmd_test
Description: Binary data

Attachment: makefile
Description: Binary data

Attachment: test.F90
Description: Binary data

==6974== Conditional jump or move depends on uninitialised value(s)
==6974==    at 0x527292E: vecscattercreatetoall_ (zvscatf.c:21)
==6974==    by 0x400EC1: MAIN__ (test.F90:18)
==6974==    by 0x400F0A: main (test.F90:4)
==6974==  Uninitialised value was created by a stack allocation
==6974==    at 0x400E3D: MAIN__ (test.F90:1)
==6974== 
==6975== Conditional jump or move depends on uninitialised value(s)
==6975==    at 0x527292E: vecscattercreatetoall_ (zvscatf.c:21)
==6975==    by 0x400EC1: MAIN__ (test.F90:18)
==6975==    by 0x400F0A: main (test.F90:4)
==6975==  Uninitialised value was created by a stack allocation
==6975==    at 0x400E3D: MAIN__ (test.F90:1)
==6975== 
==6973== Conditional jump or move depends on uninitialised value(s)
==6973==    at 0x527292E: vecscattercreatetoall_ (zvscatf.c:21)
==6973==    by 0x400EC1: MAIN__ (test.F90:18)
==6973==    by 0x400F0A: main (test.F90:4)
==6973==  Uninitialised value was created by a stack allocation
==6973==    at 0x400E3D: MAIN__ (test.F90:1)
==6973== 
==6972== Conditional jump or move depends on uninitialised value(s)
==6972==    at 0x527292E: vecscattercreatetoall_ (zvscatf.c:21)
==6972==    by 0x400EC1: MAIN__ (test.F90:18)
==6972==    by 0x400F0A: main (test.F90:4)
==6972==  Uninitialised value was created by a stack allocation
==6972==    at 0x400E3D: MAIN__ (test.F90:1)
==6972== 
==6974== 728 (656 direct, 72 indirect) bytes in 1 blocks are definitely lost in 
loss record 17 of 20
==6974==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6974==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6974==    by 0x520BF07: VecScatterCreate (vscat.c:1028)
==6974==    by 0x525F98B: VecScatterCreateToAll (vecmpitoseq.c:66)
==6974==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6974==    by 0x400EC1: MAIN__ (test.F90:18)
==6974==    by 0x400F0A: main (test.F90:4)
==6974== 
==6974== 2,080 (1,504 direct, 576 indirect) bytes in 1 blocks are definitely 
lost in loss record 19 of 20
==6974==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6974==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6974==    by 0x5185C60: VecCreate (veccreate.c:35)
==6974==    by 0x51ED71C: VecCreateMPI (vmpicr.c:38)
==6974==    by 0x51F0192: veccreatempi_ (vmpicrf.c:43)
==6974==    by 0x400E96: MAIN__ (test.F90:16)
==6974==    by 0x400F0A: main (test.F90:4)
==6974== 
==6974== 2,548 (1,504 direct, 1,044 indirect) bytes in 1 blocks are definitely 
lost in loss record 20 of 20
==6974==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6974==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6974==    by 0x5185C60: VecCreate (veccreate.c:35)
==6974==    by 0x51D5B6F: VecCreateSeq (vseqcr.c:35)
==6974==    by 0x525F8A9: VecScatterCreateToAll (vecmpitoseq.c:63)
==6974==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6974==    by 0x400EC1: MAIN__ (test.F90:18)
==6974==    by 0x400F0A: main (test.F90:4)
==6974== 
==6975== 728 (656 direct, 72 indirect) bytes in 1 blocks are definitely lost in 
loss record 17 of 20
==6975==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6975==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6975==    by 0x520BF07: VecScatterCreate (vscat.c:1028)
==6975==    by 0x525F98B: VecScatterCreateToAll (vecmpitoseq.c:66)
==6975==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6975==    by 0x400EC1: MAIN__ (test.F90:18)
==6975==    by 0x400F0A: main (test.F90:4)
==6975== 
==6975== 2,080 (1,504 direct, 576 indirect) bytes in 1 blocks are definitely 
lost in loss record 19 of 20
==6975==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6975==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6975==    by 0x5185C60: VecCreate (veccreate.c:35)
==6975==    by 0x51ED71C: VecCreateMPI (vmpicr.c:38)
==6975==    by 0x51F0192: veccreatempi_ (vmpicrf.c:43)
==6975==    by 0x400E96: MAIN__ (test.F90:16)
==6975==    by 0x400F0A: main (test.F90:4)
==6975== 
==6975== 2,548 (1,504 direct, 1,044 indirect) bytes in 1 blocks are definitely 
lost in loss record 20 of 20
==6975==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6975==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6975==    by 0x5185C60: VecCreate (veccreate.c:35)
==6975==    by 0x51D5B6F: VecCreateSeq (vseqcr.c:35)
==6975==    by 0x525F8A9: VecScatterCreateToAll (vecmpitoseq.c:63)
==6975==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6975==    by 0x400EC1: MAIN__ (test.F90:18)
==6975==    by 0x400F0A: main (test.F90:4)
==6975== 
==6973== 728 (656 direct, 72 indirect) bytes in 1 blocks are definitely lost in 
loss record 17 of 20
==6973==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6973==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6973==    by 0x520BF07: VecScatterCreate (vscat.c:1028)
==6973==    by 0x525F98B: VecScatterCreateToAll (vecmpitoseq.c:66)
==6973==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6973==    by 0x400EC1: MAIN__ (test.F90:18)
==6973==    by 0x400F0A: main (test.F90:4)
==6973== 
==6973== 2,080 (1,504 direct, 576 indirect) bytes in 1 blocks are definitely 
lost in loss record 19 of 20
==6973==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6973==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6973==    by 0x5185C60: VecCreate (veccreate.c:35)
==6973==    by 0x51ED71C: VecCreateMPI (vmpicr.c:38)
==6973==    by 0x51F0192: veccreatempi_ (vmpicrf.c:43)
==6973==    by 0x400E96: MAIN__ (test.F90:16)
==6973==    by 0x400F0A: main (test.F90:4)
==6973== 
==6973== 2,548 (1,504 direct, 1,044 indirect) bytes in 1 blocks are definitely 
lost in loss record 20 of 20
==6973==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6973==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6973==    by 0x5185C60: VecCreate (veccreate.c:35)
==6973==    by 0x51D5B6F: VecCreateSeq (vseqcr.c:35)
==6973==    by 0x525F8A9: VecScatterCreateToAll (vecmpitoseq.c:63)
==6973==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6973==    by 0x400EC1: MAIN__ (test.F90:18)
==6973==    by 0x400F0A: main (test.F90:4)
==6973== 
==6972== 728 (656 direct, 72 indirect) bytes in 1 blocks are definitely lost in 
loss record 17 of 20
==6972==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6972==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6972==    by 0x520BF07: VecScatterCreate (vscat.c:1028)
==6972==    by 0x525F98B: VecScatterCreateToAll (vecmpitoseq.c:66)
==6972==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6972==    by 0x400EC1: MAIN__ (test.F90:18)
==6972==    by 0x400F0A: main (test.F90:4)
==6972== 
==6972== 2,080 (1,504 direct, 576 indirect) bytes in 1 blocks are definitely 
lost in loss record 19 of 20
==6972==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6972==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6972==    by 0x5185C60: VecCreate (veccreate.c:35)
==6972==    by 0x51ED71C: VecCreateMPI (vmpicr.c:38)
==6972==    by 0x51F0192: veccreatempi_ (vmpicrf.c:43)
==6972==    by 0x400E96: MAIN__ (test.F90:16)
==6972==    by 0x400F0A: main (test.F90:4)
==6972== 
==6972== 2,548 (1,504 direct, 1,044 indirect) bytes in 1 blocks are definitely 
lost in loss record 20 of 20
==6972==    at 0x4C2D110: memalign (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6972==    by 0x5099EA6: PetscMallocAlign (mal.c:39)
==6972==    by 0x5185C60: VecCreate (veccreate.c:35)
==6972==    by 0x51D5B6F: VecCreateSeq (vseqcr.c:35)
==6972==    by 0x525F8A9: VecScatterCreateToAll (vecmpitoseq.c:63)
==6972==    by 0x5272951: vecscattercreatetoall_ (zvscatf.c:22)
==6972==    by 0x400EC1: MAIN__ (test.F90:18)
==6972==    by 0x400F0A: main (test.F90:4)
==6972== 


Reply via email to