Sometimes we don't have a valid error code, so don't segv if
ompi_mpi_errnum_get_string() returns a NULL. This commit was SVN r19670.
Этот коммит содержится в:
родитель
77fa3b5d4c
Коммит
70b02a0178
@ -98,7 +98,8 @@ ompi_mpi_abort(struct ompi_communicator_t* comm,
|
|||||||
|
|
||||||
/* Notify the debugger that we're about to abort */
|
/* Notify the debugger that we're about to abort */
|
||||||
|
|
||||||
if (asprintf(&msg, "[%s:%d] aborting with MPI error %s%s",
|
if (errcode < 0 ||
|
||||||
|
asprintf(&msg, "[%s:%d] aborting with MPI error %s%s",
|
||||||
host, (int) pid, ompi_mpi_errnum_get_string(errcode),
|
host, (int) pid, ompi_mpi_errnum_get_string(errcode),
|
||||||
ompi_mpi_abort_print_stack ?
|
ompi_mpi_abort_print_stack ?
|
||||||
" (stack trace available on stderr)" : "") < 0) {
|
" (stack trace available on stderr)" : "") < 0) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user