Dear all,<div><br></div><div><b>An error message from petsc comes after the kspsolve:</b></div><div><br></div><div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[<b>0]PETSC ERROR: Invalid pointer!</b></div>
<div><b>[0]PETSC ERROR: Invalid Pointer: Parameter # 2!</b></div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49 CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760</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: Unknown Name on a linux-gnu named <a href="http://perc.ices.utah.edu">perc.ices.utah.edu</a> by nan Fri Sep 10 11:06:35 2010</div>
<div>[0]PETSC ERROR: Libraries linked from /usr/local/petsc-2.3.3-p15-nox11/lib/linux-gnu-cxx-debug</div><div>[0]PETSC ERROR: Configure run at Tue Aug 17 14:47:03 2010</div><div>[0]PETSC ERROR: <b>Configure options --prefix=/usr/local/petsc-2.3.3-p15-nox11 --with-mpi-dir=/usr/local/mpich2-1.2.1-install --with-blas-lib=/usr/lib64/libblas.a --with-lapack-lib=/usr/lib64/liblapack.a --with-fc=0 --with-x11=0 --with-x=0 --with-clanguage=cxx --with-cxx=mpicxx --with-cc=mpicc --with-debugging=1 COPTFLAGS=-O3 --with-shared=0</b></div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: KSPGetDiagonalScaleFix() line 1748 in src/ksp/ksp/interface/itfunc.c</div></div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div><div>[0]PETSC ERROR: <b>Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</b></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/troubleshooting.html#Signal[0]PETSC">http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC</a> ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on linux or man libgmalloc on Apple 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] KSPGetDiagonalScaleFix line 1746 src/ksp/ksp/interface/itfunc.c</div>
<div>[0]PETSC ERROR: [0] KSPGetDiagonalScale line 1667 src/ksp/ksp/interface/itfunc.c</div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[0]PETSC ERROR: Signal received!</div>
</div><div>--------</div><div><div>[0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49 CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760</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: Unknown Name on a linux-gnu named <a href="http://perc.ices.utah.edu">perc.ices.utah.edu</a> by nan Fri Sep 10 11:05:07 2010</div><div>[0]PETSC ERROR: Libraries linked from /usr/local/petsc-2.3.3-p15-nox11/lib/linux-gnu-cxx-debug</div>
<div>[0]PETSC ERROR: Configure run at Tue Aug 17 14:47:03 2010</div><div>[0]PETSC ERROR: Configure options --prefix=/usr/local/petsc-2.3.3-p15-nox11 --with-mpi-dir=/usr/local/mpich2-1.2.1-install --with-blas-lib=/usr/lib64/libblas.a --with-lapack-lib=/usr/lib64/liblapack.a --with-fc=0 --with-x11=0 --with-x=0 --with-clanguage=cxx --with-cxx=mpicxx --with-cc=mpicc --with-debugging=1 COPTFLAGS=-O3 --with-shared=0</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><div><br></div><div><b><span class="Apple-style-span" style="font-size: large;">I tried vlgrind, it just no use. I think I put some CHKMEMQ in my code, sometimes it runs. Can someone give a hint on this problem.</span></b></div>
<div><br></div><div>Thanks,</div><div><br></div><div>Nan</div>