id summary reporter owner description type status milestone component version severity resolution keywords cc 2586 all_gather generates a memory leak micdestefano@… Matthias Troyer "Running valgrind on the attached sample program with the command below[[BR]][[BR]] `mpiexec -n 2 valgrind --leak-check=full --show-reachable=yes ./test_all_gather`[[BR]][[BR]] gives the errors reported into the attached ""valgrind_out.txt"" file.[[BR]][[BR]] I've found this error on a Linux CentOS 5, 32 bit machine, with mpich2-1.0.6p1 and Boost 1.36.0.[[BR]][[BR]] I noticed that if you change the data type of the gathered pair into `std::pair` (and, obviously, the corresponding data-type of the output vector), the leak disappears. So may be the error is generated by the usage of the `size_t` data type. I don't know if it is linked to the usage of the `std::pair` or not.[[BR]] [[BR]] Before submitting this ticket I've done a search on ""all_gather still reachable"", but I did not find anything. Furthermore, I've seen that there is not any update in Boost MPI between releases 1.36.0 and 1.37.0. So, I reported.[[BR]] [[BR]][[BR]] Thank you in advance[[BR]] Best Regards[[BR]] Michele De Stefano" Bugs closed Boost 1.38.0 mpi Boost 1.36.0 Cosmetic fixed MPI all_gather valgrind still reachable Matthias Troyer