<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2>Barry,<br><br>This is what valgrind gives me. Any idea ? What is confusing me is that I get the crash after several GMRES iterations.<br><br><br>[2]PETSC ERROR: ------------------------------------------------------------------------<br>[3]PETSC ERROR: Caught signal number 15 Terminate: Somet process (or the batch system) has told this process to end<br>[3]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>------------------------------------------------------------------------<br>[3]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[3]PETSC ERROR: or try http://valgrind.org on linux or man libgmalloc on Apple to find memory corruption errors<br>[2]PETSC ERROR: Caught signal number 1 Hang up: Some other process (or the batch system) has told this process to end<br>[2]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>[2]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[2]PETSC ERROR: or try http://valgrind.org on linux or man libgmalloc on Apple to find memory corruption errors<br>[0]PETSC ERROR: ------------------------------------------------------------------------<br>[0]PETSC ERROR: Caught signal number 15 Terminate: Somet process (or the batch system) has told this process to end<br>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>[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<br>[3]PETSC ERROR: likely location of problem given in stack below<br>[3]PETSC ERROR: --------------------- Stack Frames ------------------------------------<br>------------------------------------------------------------------------<br>[1]PETSC ERROR: [2]PETSC ERROR: Caught signal number 15 Terminate: Somet process (or the batch system) has told this process to end<br>likely location of problem given in stack below<br>[1]PETSC ERROR: [2]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>--------------------- Stack Frames ------------------------------------<br>[1]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[1]PETSC ERROR: or try http://valgrind.org on linux or man libgmalloc on Apple to find memory corruption errors<br>[0]PETSC ERROR: likely location of problem given in stack below<br>[0]PETSC ERROR: --------------------- Stack Frames ------------------------------------<br>[1]PETSC ERROR: likely location of problem given in stack below<br>[1]PETSC ERROR: --------------------- Stack Frames ------------------------------------<br>[3]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>[3]PETSC ERROR: INSTEAD the line number of the start of the function<br>[3]PETSC ERROR: is given.<br>[2]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>[3]PETSC ERROR: [2]PETSC ERROR: INSTEAD the line number of the start of the function<br>[2]PETSC ERROR: is given.<br>[3] PCApply_Shell line 122 src/ksp/pc/impls/shell/shellpc.c<br>[3]PETSC ERROR: [3] PCApply line 346 src/ksp/pc/interface/precon.c<br>[3]PETSC ERROR: [3] PCApplyBAorAB line 539 src/ksp/pc/interface/precon.c<br>[3]PETSC ERROR: [3] GMREScycle line 133 src/ksp/ksp/impls/gmres/gmres.c<br>[2]PETSC ERROR: [0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>[2] PCApply_Shell line 122 src/ksp/pc/impls/shell/shellpc.c<br>[0]PETSC ERROR: INSTEAD the line number of the start of the function<br>[2]PETSC ERROR: [2] PCApply line 346 src/ksp/pc/interface/precon.c<br>[0]PETSC ERROR: is given.<br>[2]PETSC ERROR: [2] PCApplyBAorAB line 539 src/ksp/pc/interface/precon.c<br>[2]PETSC ERROR: [2] GMREScycle line 133 src/ksp/ksp/impls/gmres/gmres.c<br>[1]PETSC ERROR: [0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>[0] PCApply_Shell line 122 src/ksp/pc/impls/shell/shellpc.c<br>[1]PETSC ERROR: INSTEAD the line number of the start of the function<br>[0]PETSC ERROR: [0] PCApply line 346 src/ksp/pc/interface/precon.c<br>[0]PETSC ERROR: [1]PETSC ERROR: is given.<br>[0] PCApplyBAorAB line 539 src/ksp/pc/interface/precon.c<br>[0]PETSC ERROR: [0] GMREScycle line 133 src/ksp/ksp/impls/gmres/gmres.c<br>[1]PETSC ERROR: [1] PCApply_Shell line 122 src/ksp/pc/impls/shell/shellpc.c<br>[1]PETSC ERROR: [1] PCApply line 346 src/ksp/pc/interface/precon.c<br>[1]PETSC ERROR: [3]PETSC ERROR: [1] PCApplyBAorAB line 539 src/ksp/pc/interface/precon.c<br>--------------------- Error Message ------------------------------------<br>[1]PETSC ERROR: [1] GMREScycle line 133 src/ksp/ksp/impls/gmres/gmres.c<br>[2]PETSC ERROR: --------------------- Error Message ------------------------------------<br>[0]PETSC ERROR: --------------------- Error Message ------------------------------------<br>[3]PETSC ERROR: Signal received!<br>[3]PETSC ERROR: ------------------------------------------------------------------------<br>[3]PETSC ERROR: Petsc Release Version 2.3.3, Patch 8, Fri Nov 16 17:03:40 CST 2007 HG revision: 414581156e67e55c761739b0deb119f7590d0f4b<br>[3]PETSC ERROR: See docs/changes/index.html for recent updates.<br>[3]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br><br>Thanks<br><br>Rgds,<br>Amit<br></FONT>