[Boost-bugs] [Boost C++ Libraries] #2586: all_gather generates a memory leak

Subject: [Boost-bugs] [Boost C++ Libraries] #2586: all_gather generates a memory leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-12 15:48:01


#2586: all_gather generates a memory leak
-----------------------------------------------------+----------------------
 Reporter: micdestefano_at_[hidden] | Owner: dgregor
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: mpi
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: MPI all_gather valgrind still reachable |
-----------------------------------------------------+----------------------
 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<int,int>` (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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2586>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC