Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
comments, debugs and other minor glitches
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 22 Nov 2012 23:04:19 +0000 (00:04 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 22 Nov 2012 23:04:19 +0000 (00:04 +0100)
src/simix/smx_global.c
src/simix/smx_private.h
src/simix/smx_process.c
src/simix/smx_smurf.c
teshsuite/xbt/parallel_log_crashtest.tesh

index 728da6f..3315b51 100644 (file)
@@ -92,7 +92,6 @@ void SIMIX_global_init(int *argc, char **argv)
     __xbt_running_ctx_fetch = SIMIX_process_get_running_context;
     __xbt_ex_terminate = SIMIX_process_exception_terminate;
 
-    /* Initialize the SIMIX network module */
     SIMIX_network_init();
 
     /* Prepare to display some more info when dying on Ctrl-C pressing */
@@ -107,7 +106,6 @@ void SIMIX_global_init(int *argc, char **argv)
     simix_timers = xbt_heap_new(8, &free);
   }
 
-  XBT_DEBUG("ADD SIMIX LEVELS");
   SIMIX_HOST_LEVEL = xbt_lib_add_level(host_lib,SIMIX_host_destroy);
 
   atexit(SIMIX_clean);
index 59f4342..9cbceaa 100644 (file)
@@ -313,6 +313,7 @@ static XBT_INLINE smx_context_t SIMIX_context_self(void)
     return simix_global->context_factory->self();
   }
 
+  xbt_die("simix is not initialized, please call MSG_init first");
   return NULL;
 }
 
index 657c817..e9418a4 100644 (file)
@@ -214,7 +214,7 @@ void SIMIX_process_create(smx_process_t *process,
   *process = NULL;
   smx_host_t host = SIMIX_host_get_by_name(hostname);
 
-  XBT_DEBUG("Start process %s on host %s", name, hostname);
+  XBT_DEBUG("Start process %s on host '%s'", name, hostname);
 
   if (!SIMIX_host_get_state(host)) {
     XBT_WARN("Cannot launch process '%s' on failed host '%s'", name,
index c049f29..67dc288 100644 (file)
@@ -25,6 +25,7 @@ void SIMIX_simcall_push(smx_process_t self)
               SIMIX_simcall_name(self->simcall.call), (int)self->simcall.call);
     SIMIX_process_yield(self);
   } else {
+    XBT_DEBUG("I'm the maestro, execute the simcall directly");
     SIMIX_simcall_pre(&self->simcall, 0);
   }
 }
index 0f18b71..cb7605e 100644 (file)
@@ -1,7 +1,6 @@
 
 ! timeout 20
 p Try to crash the log mecanism by using it in parallel with a lot of threads
-! setenv GRAS_NO_WARN_EXPERIMENTAL=1
 $ xbt/parallel_log_crashtest "--log=root.fmt:%m%n"
 > XXX (XX|XX|XX|XX|XX|XX|XX|XX|XX)
 > XXX (XX|XX|XX|XX|XX|XX|XX|XX|XX)
@@ -9804,4 +9803,3 @@ $ xbt/parallel_log_crashtest "--log=root.fmt:%m%n"
 > XXX (XX|XX|XX|XX|XX|XX|XX|XX|XX)
 > XXX (XX|XX|XX|XX|XX|XX|XX|XX|XX)
 > XXX (XX|XX|XX|XX|XX|XX|XX|XX|XX)
-> Exiting GRAS