Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix segfault in smpi+tracing with detached sends.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 9 Feb 2012 15:03:29 +0000 (16:03 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 9 Feb 2012 15:07:18 +0000 (16:07 +0100)
src/smpi/smpi_base.c

index 47a0222..e897b2e 100644 (file)
@@ -127,7 +127,9 @@ void smpi_mpi_start(MPI_Request request)
                                    detached);
 
 #ifdef HAVE_TRACING
-    simcall_set_category (request->action, TRACE_internal_smpi_get_category());
+    /* FIXME: detached sends are not traceable (request->action == NULL) */
+    if (request->action)
+      simcall_set_category(request->action, TRACE_internal_smpi_get_category());
 #endif
   }
 }