Maybe this will improve the code coverage analysis.
switch(fork()){
case 0:
// We are the child process -- run the actual program
- abort();
+ xbt_abort();
break;
case -1:
if (!msg_global) {
fprintf(stderr,
"ERROR: Please call MSG_init() before using MSG_config()\n");
- abort();
+ xbt_abort();
}
va_start(pa, name);
xbt_cfg_set_vargs(_surf_cfg_set, name, pa);
static void dax_parse_error(char *msg)
{
fprintf(stderr, "Parse error on line %d: %s\n", dax_lineno, msg);
- abort();
+ xbt_abort();
}
static double dax_parse_double(const char *string)
void SIMIX_process_exception_terminate(xbt_ex_t * e)
{
xbt_ex_display(e);
- abort();
+ xbt_abort();
}
smx_context_t SIMIX_process_get_context(smx_process_t p) {
{
if(!simix_global) {
fprintf(stderr,"You must run MSG_init or gras_init before using MSG or GRAS\n"); // I would have loved using xbt_die but I can't since it is not initialized yet... :)
- abort();
+ xbt_abort();
}
smx_simcall_t simcall = SIMIX_simcall_mine();
char* value = getenv("SMPI_GLOBAL_SIZE");
if(!value) {
- fprintf(stderr, "Please set env var SMPI_GLOBAL_SIZE to expected number of processes.\n");
- abort();
+ fprintf(stderr, "Please set env var SMPI_GLOBAL_SIZE to expected number of processes.\n");
+ xbt_abort();
}
return atoi(value);
}
} else if (min_diff > 0 && max_diff < 0) {
XBT_CWARN(surf_lagrange_dichotomy,
"The impossible happened, partial_diff(min) > 0 && partial_diff(max) < 0");
- abort();
+ xbt_abort();
} else {
XBT_CWARN(surf_lagrange_dichotomy,
"diffmin (%1.20f) or diffmax (%1.20f) are something I don't know, taking no action.",
min_diff, max_diff);
- abort();
+ xbt_abort();
}
}
XBT_VERB("Fire a first command: '%s'", cmd);
pipe = popen(cmd, "r");
if (!pipe) {
- XBT_CRITICAL("Cannot fork addr2line to display the backtrace");
- abort();
+ xbt_die("Cannot fork addr2line to display the backtrace");
}
for (i = 0; i < e->used; i++) {
XBT_VERB("Fire a new command: '%s'", subcmd);
subpipe = popen(subcmd, "r");
if (!subpipe) {
- XBT_CRITICAL("Cannot fork addr2line to display the backtrace");
- abort();
+ xbt_die("Cannot fork addr2line to display the backtrace");
}
fgets_res = fgets(line_func, 1024, subpipe);
if (fgets_res == NULL)
void __xbt_ex_terminate_default(xbt_ex_t * e)
{
xbt_ex_display(e);
-
- abort();
+ xbt_abort();
}
/* the externally visible API */
/* Do not want to use xbt_die() here, as it uses the logging
* infrastucture and may fail to allocate memory too. */
fprintf(stderr, "bprintf: vasprintf failed. Aborting.\n");
- abort();
+ xbt_abort();
}
return res;
}
static void _os_thread_ex_terminate(xbt_ex_t * e)
{
xbt_ex_display(e);
-
- abort();
+ xbt_abort();
/* FIXME: there should be a configuration variable to choose to kill everyone or only this one */
}