SIGSERV in MPI_Comm_rank

Adolph J. Vogel ajvogel at tuks.co.za
Tue Jul 29 01:31:57 CDT 2008


Hi Aron,

It seems you where correct. There was something wrong with my installation. 
After removing every thing and reinstalling it worked. All the tests also 
pass now.

Thank you for your assistance.

Adolph

On Monday 28 July 2008 15:29:02 Aron Ahmadia wrote:
> Hi Adolph,
>
> What are the results of running make test after you've completed PETSc
> installation?  Do those tests pass?  If so, you should try copying over an
> example makefile and using that to build your code.  If they fail,
> something is wrong with your PETSc installation and you should send a copy
> of your configure.log to petsc-maint at mcs.anl.gov for more help.
>
> http://www-unix.mcs.anl.gov/petsc/petsc-as/documentation/installation.html
>
> A SIGSEGV is a segmentation violation, usually caused by your program
> attempting to access a zero'd memory location.  You can run it through the
> debugger to get a better feel for what's not being initialized, but I think
> in this case it wouldn't be too helpful.
>
> ~A
>
> On Mon, Jul 28, 2008 at 7:29 AM, Adolph J. Vogel <ajvogel at tuks.co.za> wrote:
> > Hi,
> >
> > I'm having trouble when running a hello world example program with PETSc.
> > Running the same type of program with plain MPI works. This lead me to
> > believe that the error lies with my PETSc setup.
> >
> > I get the following error:
> >
> > $ ./hello
> > MPI process rank 0 (n0, p28410) caught a SIGSEGV in MPI_Comm_rank.
> > Rank (0, MPI_COMM_WORLD): Call stack within LAM:
> > Rank (0, MPI_COMM_WORLD):  - MPI_Comm_rank()
> > Rank (0, MPI_COMM_WORLD):  - main()
> >
> > and:
> >
> > $ mpirun -np 2 hello
> >
> > -------------------------------------------------------------------------
> >---- One of the processes started by mpirun has exited with a nonzero exit
> > code.  This typically indicates that the process finished in error. If
> > your process did not finish in error, be sure to include a "return 0" or
> > "exit(0)" in your C code before exiting the application.
> >
> > PID 28430 failed on node n0 (127.0.0.1) due to signal 11.
> >
> > -------------------------------------------------------------------------
> >----
> >
> > Does anyone have any idea what the error might be?
> >
> > Thank  you in advance.
> >
> > Adolph
> >
> > PS: hello.c:
> > #include "petsc.h"
> > #include <stdio.h>
> >
> > int main( int argc, char *argv[] )
> > {
> >  PetscInitialize( &argc, &argv, 0, 0 );
> >  PetscPrintf( PETSC_COMM_WORLD, "Hello World\n" );
> >  PetscFinalize();
> >  return 0;
> > }
> >
> > --
> > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> > Adolph J. Vogel                          ajvogel at tuks.co.za
> >
> > Department Mechanical and Aeronautical Engineering
> > University of Pretoria, South Africa
> > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Adolph J. Vogel                          ajvogel at tuks.co.za

Department Mechanical and Aeronautical Engineering
University of Pretoria, South Africa
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




More information about the petsc-users mailing list