Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] RFC: about dynamic/intercomm_create test from ibm test suite
From: Gilles Gouaillardet (gilles.gouaillardet_at_[hidden])
Date: 2014-05-27 02:27:42


Folks,

currently, the dynamic/intercomm_create test from the ibm test suite output
the following messages :

dpm_base_disconnect_init: error -12 in isend to process 1

the root cause it task 0 tries to send messages to already exited tasks.

one way of seeing things is that this is an application issue :
task 0 should have MPI_Comm_free'd all its communicator before calling
MPI_Comm_disconnect.
This can be achieved via the attached patch

an other way of seeing things is that this is a bug in OpenMPI.
In this case, what would be the the right approach ?
- automatically free communicators (if needed) when MPI_Comm_disconnect is
invoked ?
- simply remove communicators (if needed) from ompi_mpi_communicators when
MPI_Comm_disconnect is invoked ?
  /* this causes a memory leak, but the application can be seen as
responsible of it */
- other ?

Thanks in advance for your feedback,

Gilles