Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] end must be called while surf configuration still exist
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 6 Dec 2010 00:55:56 +0000 (00:55 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 6 Dec 2010 00:55:56 +0000 (00:55 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8991 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/global.c
src/simdag/sd_global.c

index ef50ebe..eaf3e19 100644 (file)
@@ -207,12 +207,12 @@ MSG_error_t MSG_clean(void)
   /* initialization of the action module */
   _MSG_action_exit();
 
-  SIMIX_clean();
-
 #ifdef HAVE_TRACING
   TRACE_end();
 #endif
 
+  SIMIX_clean();
+
   return MSG_OK;
 }
 
index c24ce29..29dbf96 100644 (file)
@@ -410,15 +410,16 @@ void SD_exit(void)
     xbt_free(sd_global);
     sd_global = NULL;
 
+#ifdef HAVE_TRACING
+  TRACE_end();
+#endif
+
     DEBUG0("Exiting Surf...");
     surf_exit();
   } else {
     WARN0("SD_exit() called, but SimDag is not running");
     /* we cannot use exceptions here because xbt is not running! */
   }
-#ifdef HAVE_TRACING
-  TRACE_end();
-#endif
 }
 
 /**