[petsc-users] noknow petsc error after kspsolve

Barry Smith bsmith at mcs.anl.gov
Fri Sep 10 19:19:32 CDT 2010


  How is valgrind "no use". Use valgrind but also pass the option -malloc_debug no to the PETSc program. Send the output to petsc-maint at mcs.anl.gov 

   Barry

On Sep 10, 2010, at 4:27 PM, NAN ZHAO wrote:

> Dear all,
> 
> An error message from petsc comes after the kspsolve:
> 
> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
> [0]PETSC ERROR: Invalid pointer!
> [0]PETSC ERROR: Invalid Pointer: Parameter # 2!
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49 CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760
> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [0]PETSC ERROR: See docs/index.html for manual pages.
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Unknown Name on a linux-gnu named perc.ices.utah.edu by nan Fri Sep 10 11:06:35 2010
> [0]PETSC ERROR: Libraries linked from /usr/local/petsc-2.3.3-p15-nox11/lib/linux-gnu-cxx-debug
> [0]PETSC ERROR: Configure run at Tue Aug 17 14:47:03 2010
> [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
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: KSPGetDiagonalScaleFix() line 1748 in src/ksp/ksp/interface/itfunc.c
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
> [0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
> [0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC ERROR: or try http://valgrind.org on linux or man libgmalloc on Apple to find memory corruption errors
> [0]PETSC ERROR: likely location of problem given in stack below
> [0]PETSC ERROR: ---------------------  Stack Frames ------------------------------------
> [0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,
> [0]PETSC ERROR:       INSTEAD the line number of the start of the function
> [0]PETSC ERROR:       is given.
> [0]PETSC ERROR: [0] KSPGetDiagonalScaleFix line 1746 src/ksp/ksp/interface/itfunc.c
> [0]PETSC ERROR: [0] KSPGetDiagonalScale line 1667 src/ksp/ksp/interface/itfunc.c
> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
> [0]PETSC ERROR: Signal received!
> --------
> [0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49 CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760
> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [0]PETSC ERROR: See docs/index.html for manual pages.
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: Unknown Name on a linux-gnu named perc.ices.utah.edu by nan Fri Sep 10 11:05:07 2010
> [0]PETSC ERROR: Libraries linked from /usr/local/petsc-2.3.3-p15-nox11/lib/linux-gnu-cxx-debug
> [0]PETSC ERROR: Configure run at Tue Aug 17 14:47:03 2010
> [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
> [0]PETSC ERROR: ------------------------------------------------------------------------
> [0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file
> application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
> 
> 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.
> 
> Thanks,
> 
> Nan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100910/0df81fc4/attachment.htm>


More information about the petsc-users mailing list