[petsc-users] petsc freezes

Jed Brown jed at 59A2.org
Sat Mar 27 09:50:54 CDT 2010


On Sat, 27 Mar 2010 10:31:58 +0100, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> After a long period with no problems, suddenly my program freezes with
> - -np>1, right after:
> 
> int main(int argc, char** argv)
> {
> 	int myid=0, np=1;
> 	PetscErrorCode ierr;
> 	ierr = PetscInitialize(&argc, &argv, (char *)0, (char *)0);CHKERRQ(ierr);
> 	// this is never reached
> 	// ...
> }
> 
> This was with Petsc 3.0.0-p9. I have just downloaded and compiled the
> latest version (3.1-p0) to find out that "make ... test" freezes as well:
> 
> > make PETSC_DIR=/home/domel/pack/petsc-3.1-p0
> PETSC_ARCH=linux-gnu-c-release test
> Running test examples to verify correct installation
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1
> MPI process
> 
> [FREEZE]
> 
> I am using 64bit Ubuntu 9.10. How can I investigate what is happening?

I suspect a problem with your MPI configuration.  Can you run a simple
MPI program in parallel?  To investigate, run in a debugger or attach a
debugger after it has hung.

  mpiexec -n 2 ./app -start_in_debugger

OR

  mpiexec -n 2 xterm -e gdb --args ./app

OR

  mpiexec -n 2 ./app &
  gdb -pid `pgrep app`

What does the stack trace look like?

Jed


More information about the petsc-users mailing list