Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : dangling pointer set to NULL
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Fri, 4 Oct 2013 09:47:09 +0000 (11:47 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Fri, 4 Oct 2013 13:21:20 +0000 (15:21 +0200)
src/smpi/smpi_base.c

index e973e75..e1d0252 100644 (file)
@@ -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: