From: Martin Quinson Date: Fri, 24 Mar 2023 22:33:21 +0000 (+0100) Subject: Use a portable name for SIGABRT X-Git-Tag: v3.34~261 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3b2c64cc73b0f7d5fb8e4dc842eaa243a4aad5d2 Use a portable name for SIGABRT --- diff --git a/src/mc/explo/Exploration.cpp b/src/mc/explo/Exploration.cpp index 1f0e24f98f..061a9b4473 100644 --- a/src/mc/explo/Exploration.cpp +++ b/src/mc/explo/Exploration.cpp @@ -71,8 +71,8 @@ XBT_ATTRIB_NORETURN void Exploration::report_crash(int status) XBT_INFO("**************************"); XBT_INFO("** CRASH IN THE PROGRAM **"); XBT_INFO("**************************"); - if (WIFSIGNALED(status)) - XBT_INFO("From signal: %s", strsignal(WTERMSIG(status))); + if (WIFSIGNALED(status)) // FreeBSD use "Abort trap" as a strsignal for SIGABRT that is part of our tests + XBT_INFO("From signal: %s", WTERMSIG(status) == SIGABRT ? "Aborted" : strsignal(WTERMSIG(status))); else if (WIFEXITED(status)) XBT_INFO("From exit: %i", WEXITSTATUS(status)); if (not xbt_log_no_loc)