From: degomme Date: Tue, 19 Apr 2016 10:54:13 +0000 (+0200) Subject: This caused an invalid read in replay_multiple, as rank in comm !=index. X-Git-Tag: v3_13~55 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a8847b25f1973156dc1627e9f8bf13ba79983e72 This caused an invalid read in replay_multiple, as rank in comm !=index. --- diff --git a/src/smpi/smpi_base.cpp b/src/smpi/smpi_base.cpp index 703905fc04..5d12e00eb4 100644 --- a/src/smpi/smpi_base.cpp +++ b/src/smpi/smpi_base.cpp @@ -1085,7 +1085,7 @@ void smpi_mpi_reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts, MPI_ { int i, size, count; int *displs; - int rank = smpi_process_index(); + int rank = smpi_comm_rank(comm); void *tmpbuf; /* arbitrarily choose root as rank 0 */