Lisandro,

i assume you are running OpenMPI 1.8

r31554 fixes this issue (and some others)
https://svn.open-mpi.org/trac/ompi/changeset/31554/branches/v1.8/ompi/communicator/comm_cid.c

the root cause was an unitialized variable (rc in
ompi/communicator/comm_cid.c), and the issue only occured when using a
communicator of size 1.

Gilles

On 2014/04/30 2:48, Dave Goodell (dgoodell) wrote:
> Thanks for the bug report.  It seems that nobody has time to work on this at 
> the moment, so I've filed a ticket so that we don't lose track of it:
>
> https://svn.open-mpi.org/trac/ompi/ticket/4577
>
> On Apr 21, 2014, at 9:55 AM, Lisandro Dalcin <[email protected]> wrote:
>
>> A very basic test for MPI_Comm_create_group() is failing for me. I'm
>> pasting the code, the failure, and output from valgrind.
>>
>> [dalcinl@kw2060 openmpi]$ cat comm_create_group.c
>> #include <mpi.h>
>> int main(int argc, char *argv[])
>> {
>>  MPI_Group group;
>>  MPI_Comm comm;
>>  MPI_Init(&argc, &argv);
>>  MPI_Comm_group(MPI_COMM_WORLD, &group);
>>  MPI_Comm_create_group(MPI_COMM_WORLD, group, 0, &comm);
>>  MPI_Comm_free(&comm);
>>  MPI_Group_free(&group);
>>  MPI_Finalize();
>>  return 0;
>> }
>>

Reply via email to