Skip to content

Commit 1911d74

Browse files
author
Ralph Castain
committed
Prevent segfault when -debug given to mpirun
1 parent 7594b95 commit 1911d74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orte/tools/orterun/orterun.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ int orterun(int argc, char *argv[])
236236
opal_event_loop(orte_event_base, OPAL_EVLOOP_ONCE);
237237
}
238238
if (orte_debug_flag) {
239-
opal_output(0, "Job %s has launched", ORTE_JOBID_PRINT(launchst.jdata->jobid));
239+
opal_output(0, "Job %s has launched",
240+
(NULL == launchst.jdata) ? "UNKNOWN" : ORTE_JOBID_PRINT(launchst.jdata->jobid));
240241
}
241242
if (!orte_event_base_active || ORTE_SUCCESS != launchst.status) {
242243
goto DONE;

0 commit comments

Comments
 (0)