From: Christian Heinrich Date: Thu, 15 Mar 2018 09:49:58 +0000 (+0100) Subject: [SMPI] Fix mmap bug X-Git-Tag: v3.19~43 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7f2bec6d72bb1517aee9ff916521c596f291fd1c?ds=inline [SMPI] Fix mmap bug The wrong actor was used (the +1 was from the transition to the pid-based approach) and that one wasn't initialized yet --- diff --git a/src/smpi/internals/smpi_memory.cpp b/src/smpi/internals/smpi_memory.cpp index 3556def61b..a6ca132808 100644 --- a/src/smpi/internals/smpi_memory.cpp +++ b/src/smpi/internals/smpi_memory.cpp @@ -117,7 +117,7 @@ void smpi_really_switch_data_segment(int dest) #if HAVE_PRIVATIZATION // FIXME, cross-process support (mmap across process when necessary) - simgrid::smpi::Process* process = smpi_process_remote(simgrid::s4u::Actor::byPid(dest+1)); + simgrid::smpi::Process* process = smpi_process_remote(simgrid::s4u::Actor::byPid(dest)); int current = process->privatized_region()->file_descriptor; XBT_DEBUG("Switching data frame to the one of process %d", dest); void* tmp =