X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b1da5f9f4fce672ff7640fad335128e348bbaec..d969dee04ed9f3f9b8a116a7bcce2597ec0e09f6:/src/smpi/smpi_base.c diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index e973e7543d..e1d0252937 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -755,6 +755,12 @@ void smpi_mpi_wait(MPI_Request * request, MPI_Status * status) if ((*request)->action != NULL) { // this is not a detached send simcall_comm_wait((*request)->action, -1.0); } + +#ifdef HAVE_MC + if(MC_is_active()) + (*request)->action->comm.dst_data = NULL; // dangling pointer : dst_data is freed with a wait, need to set it to NULL for system state comparison +#endif + finish_wait(request, status); request=MPI_REQUEST_NULL; // FIXME for a detached send, finish_wait is not called: