__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 */
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);
return simix_global->context_factory->self();
}
+ xbt_die("simix is not initialized, please call MSG_init first");
return NULL;
}
*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,
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);
}
}
! 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)
> 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