From 2d6b3776bfdc6e21a092126b8f27072a34173e99 Mon Sep 17 00:00:00 2001 From: Pak Lui Date: Fri, 9 Feb 2007 16:39:30 +0000 Subject: [PATCH] * fix the SEGV described in trac #892 that the exit_status in the 200 range causes a strsignal to show NULL as a result. Still trying to determine why exit_status is in that range. This commit was SVN r13583. --- orte/tools/orterun/orterun.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/orte/tools/orterun/orterun.c b/orte/tools/orterun/orterun.c index 620eacdf99..128a64d213 100644 --- a/orte/tools/orterun/orterun.c +++ b/orte/tools/orterun/orterun.c @@ -615,14 +615,18 @@ static void dump_aborted_procs(orte_jobid_t jobid) } else { if (num_aborted < max_display_aborted) { #ifdef HAVE_STRSIGNAL - opal_show_help("help-orterun.txt", "orterun:proc-aborted-strsignal", false, + if (NULL != strsignal(WTERMSIG(exit_status))) { + opal_show_help("help-orterun.txt", "orterun:proc-aborted-strsignal", false, orterun_basename, (unsigned long)rank, (unsigned long)pid, node_name, WTERMSIG(exit_status), strsignal(WTERMSIG(exit_status))); -#else - opal_show_help("help-orterun.txt", "orterun:proc-aborted", false, + } else { +#endif + opal_show_help("help-orterun.txt", "orterun:proc-aborted", false, orterun_basename, (unsigned long)rank, (unsigned long)pid, node_name, WTERMSIG(exit_status)); +#ifdef HAVE_STRSIGNAL + } #endif } ++num_aborted;