From: Michael Pernice <pernice@chpc.utah.edu>
Newsgroups: comp.parallel.mpi
Subject: Re: MPICH / MPI_PROC_NULL problem
Date: Sat, 24 Apr 1999 12:09:17 -0600
Organization: Center for High Performance Computing
Message-Id: <372208CD.4321011F@chpc.utah.edu>
References: <7fra2l$2hq$1@nnrp1.dejanews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:4979


palarz@my-dejanews.com wrote:
> 
> I am seeing strange behavior when receiving messages from MPI_PROC_NULL.
> I am using MPICH 1.1.2 and have the same problem on SunOS 5.6 and
> Redhat Linux 5.1.  In the Fortran 77 code I was writing it did things
> like change the index of a do-loop it was in.  In this program
> here it just crashes:
> 
>       program main
>       include 'mpif.h'
>       call MPI_INIT( ierr )
>       do i = 1, 2
>           call MPI_RECV( ival, 1, MPI_INTEGER, MPI_PROC_NULL,
>      $    i, MPI_COMM_WORLD, ierr)
>       end do
>       call MPI_FINALIZE( ierr )
>       end
> 
> Here is the error:
> p0_17001:  p4_error: interrupt SIGSEGV: 11
> 

You seem to be missing the STATUS argument in the call to MPI_RECV.

-- 
Michael Pernice                  Center for High Performance Computing
pernice@chpc.utah.edu            http://www.chpc.utah.edu/~pernice

