Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] [PATCH]Segmentation Fault occurs when the function called from MPI_Comm_spawn_multiple fails
From: Ralph Castain (rhc_at_[hidden])
Date: 2012-02-09 11:00:52


Thanks! I added the patch to the trunk and submitted it for the 1.6 update.

On Feb 8, 2012, at 10:20 PM, Y.MATSUMOTO wrote:

> Dear All,
>
> Next feedback is "MPI_Comm_spawn_multiple".
>
> When the function called from MPI_Comm_spawn_multiple failed,
> Segmentation fault occurs.
> In that condition, "newcomp" sets NULL.
> But member of "newcomp" is referred at following part.
> (ompi/mpi/c/comm_spawn_multiple.c)
> 176 /* set array of errorcodes */
> 177 if (MPI_ERRCODES_IGNORE != array_of_errcodes) {
> 178 for ( i=0; i < newcomp->c_remote_group->grp_proc_count; i++ ) {
> 179 array_of_errcodes[i]=rc;
> 180 }
> 181 }
> Attached patch fixes it. (Patch is for V1.4.x).
>
> Best regards,
> Yuki MATSUMOTO
> MPI development team,
> Fujitsu
>
> <comm_spawn_multi.patch>_______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel