laristra / flecsi

A mirror of FleCSI's internal gitlab repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory leaks

jlippuner opened this issue · comments

There are some memory leaks in FleCSI. For example, running the simple 05-dense-data tutorial (with MPI backend) through valgrind yields

==6684== HEAP SUMMARY:
==6684==     in use at exit: 22,944 bytes in 418 blocks
==6684==   total heap usage: 267,493 allocs, 267,075 frees, 10,146,445 bytes allocated
==6684== 
==6684== LEAK SUMMARY:
==6684==    definitely lost: 12,571 bytes in 159 blocks
==6684==    indirectly lost: 8,133 bytes in 209 blocks
==6684==      possibly lost: 0 bytes in 0 blocks
==6684==    still reachable: 2,240 bytes in 50 blocks
==6684==         suppressed: 0 bytes in 0 blocks
==6684== Rerun with --leak-check=full to see details of leaked memory
==6684== 
==6684== For counts of detected and suppressed errors, rerun with: -v
==6684== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

@jlippuner

Can you do a --leak-check=full. AFIAK, many of these leaks actually came from MPI implementation itself.

@ollielo I think you're right. Looks like all the leaks are in MPI or another system library. I'm closing this issue.