From: Augustin Degomme Date: Thu, 14 Nov 2013 18:02:28 +0000 (+0100) Subject: avoid potential problems when tracing comms coming from any source, X-Git-Tag: v3_11_beta~305 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/58edfe47ba68e2729d8a098423fd9237435108eb?ds=sidebyside avoid potential problems when tracing comms coming from any source, whithout using status to track its origin. --- diff --git a/src/smpi/smpi_pmpi.c b/src/smpi/smpi_pmpi.c index 9206f28ef6..ac393b2e62 100644 --- a/src/smpi/smpi_pmpi.c +++ b/src/smpi/smpi_pmpi.c @@ -1230,9 +1230,11 @@ int PMPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, #ifdef HAVE_TRACING //the src may not have been known at the beginning of the recv (MPI_ANY_SOURCE) - if(status!=MPI_STATUS_IGNORE)src_traced = smpi_group_index(smpi_comm_group(comm), status->MPI_SOURCE); + if(status!=MPI_STATUS_IGNORE){ + src_traced = smpi_group_index(smpi_comm_group(comm), status->MPI_SOURCE); + TRACE_smpi_recv(rank, src_traced, rank); + } TRACE_smpi_ptp_out(rank, src_traced, rank, __FUNCTION__); - TRACE_smpi_recv(rank, src_traced, rank); #endif }