Dear All,<div> I hope you're having a nice weekend.</div><div> I got a problem with /ksp/ksp/example/tutorial. I was trying to execute this example with petsc-dev in a share memory dell workstation with 8 cores. The parameter for DMDACreate2d is 500, 500, which means it generates a 1997*1997 2d grid. It is fine to run it with single process with either "./ex29" or "mpiexec -np 1 ./exe29". However, it came across a error when I tempted to run it with more than 1 process. The error message is like this, when I was trying to execute it with 4 processes. I was thinking about if the 'stack size' is the problem, so I enlarge it to 1000000000 with 'ulimit' command. However, the same error message keeps showing up.</div>
<div><br></div><div><div>[1]PETSC ERROR: ------------------------------------------------------------------------</div><div>[1]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div>
<div>[1]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[1]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[1]PETSC">http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[1]PETSC</a> ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div>
<div>[2]PETSC ERROR: ------------------------------------------------------------------------</div><div>[2]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div><div>[2]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div>
<div>[2]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[2]PETSC">http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[2]PETSC</a> ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div>
<div>[1]PETSC ERROR: likely location of problem given in stack below</div><div>[1]PETSC ERROR: --------------------- Stack Frames ------------------------------------</div><div>[2]PETSC ERROR: likely location of problem given in stack below</div>
<div>[2]PETSC ERROR: --------------------- Stack Frames ------------------------------------</div><div>[1]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div><div>[1]PETSC ERROR: INSTEAD the line number of the start of the function</div>
<div>[1]PETSC ERROR: is given.</div><div>[1]PETSC ERROR: [1] VecView_VTK line 231 src/ksp/ksp/examples/tutorials/ex29.c</div><div>[1]PETSC ERROR: --------------------- Error Message ------------------------------------</div>
<div>[1]PETSC ERROR: Signal received!</div><div>[1]PETSC ERROR: ------------------------------------------------------------------------</div><div>[1]PETSC ERROR: Petsc Development HG revision: 85e6055943e0711fccdec2d08caeba48971d3d55 HG Date: Fri Sep 23 14:46:14 2011 -0700</div>
<div>[1]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[1]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div>[1]PETSC ERROR: See docs/index.html for manual pages.</div><div>
[1]PETSC ERROR: ------------------------------------------------------------------------</div><div>[1]PETSC ERROR: ./ex29 on a arch-linu named <a href="http://l2118a-linux.soecs.ku.edu">l2118a-linux.soecs.ku.edu</a> by zlwei Sat Apr 7 16:33:21 2012</div>
<div>[1]PETSC ERROR: Libraries linked from /home/zlwei/soft/mercurial/petsc-dev/arch-linux2-c-debug/lib</div><div>[1]PETSC ERROR: Configure run at Fri Sep 23 17:13:32 2011</div><div>[1]PETSC ERROR: Configure options --download-f-blas-lapack=1 --download-mpich=1 --with-cc=gcc --with-fc=gfortran PETSC_ARCH=arch-linux2-c-debug</div>
<div>[1]PETSC ERROR: ------------------------------------------------------------------------</div><div>[1]PETSC ERROR: User provided function() line 0 in unknown directory unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 1</div>
<div>[cli_1]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 1</div><div>[2]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div><div>[2]PETSC ERROR: INSTEAD the line number of the start of the function</div>
<div>[2]PETSC ERROR: is given.</div><div>[2]PETSC ERROR: [2] VecView_VTK line 231 src/ksp/ksp/examples/tutorials/ex29.c</div><div>[2]PETSC ERROR: --------------------- Error Message ------------------------------------</div>
<div>[2]PETSC ERROR: Signal received!</div><div>[2]PETSC ERROR: ------------------------------------------------------------------------</div><div>[2]PETSC ERROR: Petsc Development HG revision: 85e6055943e0711fccdec2d08caeba48971d3d55 HG Date: Fri Sep 23 14:46:14 2011 -0700</div>
<div>[2]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[2]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div>[2]PETSC ERROR: See docs/index.html for manual pages.</div><div>
[2]PETSC ERROR: ------------------------------------------------------------------------</div><div>[2]PETSC ERROR: ./ex29 on a arch-linu named <a href="http://l2118a-linux.soecs.ku.edu">l2118a-linux.soecs.ku.edu</a> by zlwei Sat Apr 7 16:33:21 2012</div>
<div>[2]PETSC ERROR: Libraries linked from /home/zlwei/soft/mercurial/petsc-dev/arch-linux2-c-debug/lib</div><div>[2]PETSC ERROR: Configure run at Fri Sep 23 17:13:32 2011</div><div>[2]PETSC ERROR: Configure options --download-f-blas-lapack=1 --download-mpich=1 --with-cc=gcc --with-fc=gfortran PETSC_ARCH=arch-linux2-c-debug</div>
<div>[2]PETSC ERROR: ------------------------------------------------------------------------</div><div>[2]PETSC ERROR: User provided function() line 0 in unknown directory unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 2</div>
<div>[cli_2]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 2</div><div>[3]PETSC ERROR: ------------------------------------------------------------------------</div><div>[3]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div>
<div>[3]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[3]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[3]PETSC">http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[3]PETSC</a> ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div>
<div>[3]PETSC ERROR: likely location of problem given in stack below</div><div>[3]PETSC ERROR: --------------------- Stack Frames ------------------------------------</div><div>[3]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div>
<div>[3]PETSC ERROR: INSTEAD the line number of the start of the function</div><div>[3]PETSC ERROR: is given.</div><div>[3]PETSC ERROR: [3] VecView_VTK line 231 src/ksp/ksp/examples/tutorials/ex29.c</div><div>
[3]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[3]PETSC ERROR: Signal received!</div><div>[3]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[3]PETSC ERROR: Petsc Development HG revision: 85e6055943e0711fccdec2d08caeba48971d3d55 HG Date: Fri Sep 23 14:46:14 2011 -0700</div><div>[3]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[3]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div>
<div>[3]PETSC ERROR: See docs/index.html for manual pages.</div><div>[3]PETSC ERROR: ------------------------------------------------------------------------</div><div>[3]PETSC ERROR: ./ex29 on a arch-linu named <a href="http://l2118a-linux.soecs.ku.edu">l2118a-linux.soecs.ku.edu</a> by zlwei Sat Apr 7 16:33:21 2012</div>
<div>[3]PETSC ERROR: Libraries linked from /home/zlwei/soft/mercurial/petsc-dev/arch-linux2-c-debug/lib</div><div>[3]PETSC ERROR: Configure run at Fri Sep 23 17:13:32 2011</div><div>[3]PETSC ERROR: Configure options --download-f-blas-lapack=1 --download-mpich=1 --with-cc=gcc --with-fc=gfortran PETSC_ARCH=arch-linux2-c-debug</div>
<div>[3]PETSC ERROR: ------------------------------------------------------------------------</div><div>[3]PETSC ERROR: User provided function() line 0 in unknown directory unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 3</div>
<div>[cli_3]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 3</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div>
<div>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[0]PETSC">http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[0]PETSC</a> ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div>
<div>[0]PETSC ERROR: likely location of problem given in stack below</div><div>[0]PETSC ERROR: --------------------- Stack Frames ------------------------------------</div><div>[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div>
<div>[0]PETSC ERROR: INSTEAD the line number of the start of the function</div><div>[0]PETSC ERROR: is given.</div><div>[0]PETSC ERROR: [0] VecView_VTK line 231 src/ksp/ksp/examples/tutorials/ex29.c</div><div>
[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[0]PETSC ERROR: Signal received!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[0]PETSC ERROR: Petsc Development HG revision: 85e6055943e0711fccdec2d08caeba48971d3d55 HG Date: Fri Sep 23 14:46:14 2011 -0700</div><div>[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div>
<div>[0]PETSC ERROR: See docs/index.html for manual pages.</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: ./ex29 on a arch-linu named <a href="http://l2118a-linux.soecs.ku.edu">l2118a-linux.soecs.ku.edu</a> by zlwei Sat Apr 7 16:33:21 2012</div>
<div>[0]PETSC ERROR: Libraries linked from /home/zlwei/soft/mercurial/petsc-dev/arch-linux2-c-debug/lib</div><div>[0]PETSC ERROR: Configure run at Fri Sep 23 17:13:32 2011</div><div>[0]PETSC ERROR: Configure options --download-f-blas-lapack=1 --download-mpich=1 --with-cc=gcc --with-fc=gfortran PETSC_ARCH=arch-linux2-c-debug</div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0</div>
<div>[cli_0]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0</div></div><div><br></div><div>thanks in advance,</div><div>Alan</div>