Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] MPI_Irecv segmentation fault
From: Ake Sandgren (ake.sandgren_at_[hidden])
Date: 2009-09-22 02:28:31


On Mon, 2009-09-21 at 19:26 -0400, Everette Clemmer wrote:
> Hey all,
>
> I'm getting a segmentation fault when I attempt to receive a single
> character via MPI_Irecv. Code follows:
>
> void recv_func() {
> if( !MASTER ) {
> char buffer[ 1 ];
> int flag;
> MPI_Request request;
> MPI_Status status;
>
> MPI_Irecv( &buffer, 1, MPI_CHAR, 0, MPI_ANY_TAG, MPI_COMM_WORLD, &request);

It should be MPI_Irecv(buffer, 1, ...)

> The segfault disappears if I comment out the MPI_Irecv call in
> recv_func so I'm assuming that there's something wrong with the
> parameters that I'm passing to it. Thoughts?

-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake_at_[hidden]   Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se