Skip to content

fix 'definitely lost' memory leaks #5

@cwsmith

Description

@cwsmith

valgrind --leak-check=full phastaIC.exe on the incompressible test case reports the following (there is more).

 ==16347== 30,128 bytes in 28 blocks are definitely lost in loss record 57 of 64
 ==16347==    at 0x4C29F90: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==16347==    by 0x53A965F: MPID_Dataloop_alloc_and_copy (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpi.so.12.0.2)
 ==16347==    by 0x53ADD89: MPID_Dataloop_create_vector (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpi.so.12.0.2)
 ==16347==    by 0x53AA7AD: MPID_Dataloop_create (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpi.so.12.0.2)
 ==16347==    by 0x53B9903: MPID_Type_commit (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpi.so.12.0.2)
 ==16347==    by 0x52F8E0E: MPIR_Type_commit_impl (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpi.so.12.0.2)
 ==16347==    by 0x52F8FA6: PMPI_Type_commit (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpi.so.12.0.2)
 ==16347==    by 0x5B0F078: mpi_type_commit (in /home/cwsmith/sysSoftware/mpich/3.1.2/installGcc/lib/libmpifort.so.12.0.2)
 ==16347==    by 0x49599A: ctypes_ (in /home/cwsmith/develop/streamInMem/build/phasta/bin/phastaIC.exe)
 ==16347==    by 0x45B115: readnblk_ (in /home/cwsmith/develop/streamInMem/build/phasta/bin/phastaIC.exe)
 ==16347==    by 0x434FAD: input_ (in /home/cwsmith/develop/streamInMem/build/phasta/bin/phastaIC.exe)
 ==16347==    by 0x4180C8: phasta (phasta.cc:154)
 ==16347== 
 ==16347== LEAK SUMMARY:
 ==16347==    definitely lost: 85,672 bytes in 127 blocks
 ==16347==    indirectly lost: 0 bytes in 0 blocks
 ==16347==      possibly lost: 0 bytes in 0 blocks
 ==16347==    still reachable: 11,841,064 bytes in 326 blocks
 ==16347==         suppressed: 0 bytes in 0 blocks
 ==16347== Reachable blocks (those to which a pointer was found) are not shown.
 ==16347== To see them, rerun with: --leak-check=full --show-leak-kinds=all

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions