<div dir="ltr"><div><br></div>I am going over ex44f.F90 with petsc-3.4.2 built with fortran data types and compiled with intel compilers. Minor code modifications were made:<div>type(Vec) as opposed to Vec and so on. I also added CHKERRQ(ierr) wherever it needed to go and increased the DMDA size (I used 32).</div>

<div><br></div><div>The ierr value at the KSPSolve was 78, and stdout had the error message below. I must be doing something wrong. Anyone has any thoughts on what that might be? </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/documentation/faq.html#valgrind[1]PETSC">http://www.mcs.anl.gov/petsc/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>[1]PETSC ERROR: PetscMallocValidate: error detected at  PetscSignalHandlerDefault() line 149 in /work/02453/saswata/yye00/src/petsc-3.4.2/src/sys/error/signal.c</div><div>[1]PETSC ERROR: Memory at address 0x89cfa0 is corrupted</div>

<div>[1]PETSC ERROR: Probably write past beginning or end of array</div><div>[1]PETSC ERROR: Last intact block allocated in PetscObjectListAdd() line 119 in /work/02453/saswata/yye00/src/petsc-3.4.2/src/sys/objects/olist.c</div>

<div>[1]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[1]PETSC ERROR: Memory corruption!</div><div>[1]PETSC ERROR:  !</div><div>[1]PETSC ERROR: ------------------------------------------------------------------------</div>

<div>[1]PETSC ERROR: Petsc Release Version 3.4.2, Jul, 02, 2013 </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: /work/02453/saswata/yye00/src/petsc-3.4.2/src/ksp/ksp/examples/tutorials/ex44f on a arch-linux2-cxx-debug named <a href="http://c545-501.stampede.tacc.utexas.edu">c545-501.stampede.tacc.utexas.edu</a> by saswata Mon Oct  7 12:52:32 2013</div>

<div>[1]PETSC ERROR: Libraries linked from /work/02453/saswata/yye00/lib</div><div>[1]PETSC ERROR: Configure run at Mon Oct  7 11:27:02 2013</div><div>[1]PETSC ERROR: Configure options --prefix=/work/02453/saswata/yye00/ --with-log=1 --with-info=1 --with-ctable=1 --with-clanguage=C++ --with-fortran-datatypes=1 --with-fortran=1 --with-debugging=1 --with-debugger=1 --with-shared-libraries=1 --with-debugger=gdb --with-blas-lapack-dir=/opt/apps/intel/13/composer_xe_2013.2.146/mkl/lib/intel64 --with-mpi=1 --with-mpi-compilers=1 --with-x=0 --with-sieve=1 --download-scientificpython --download-fiat --download-generator --download-triangle --with-ctetgen --download-chaco --download-boost=1 --with-parmetis=1 --download-parmetis=1 --download-fiat=1 --download-scalapack=1 --download-hypre=1 --download-pastix=1 --download-superlu_dist=1 --download-mumps=1 --download-exodusii=1 --download-netcdf=1 --download-hdf5=1 --download-moab=1 --download-umfpack=1 --download-metis --download-ctetgen --download-ptscotch</div>

<div>[1]PETSC ERROR: ------------------------------------------------------------------------</div><div>[1]PETSC ERROR: PetscMallocValidate() line 137 in /work/02453/saswata/yye00/src/petsc-3.4.2/src/sys/memory/mtr.c</div>

<div>[1]PETSC ERROR: PetscSignalHandlerDefault() line 149 in /work/02453/saswata/yye00/src/petsc-3.4.2/src/sys/error/signal.c</div><div>[cli_1]: aborting job:</div><div>application called MPI_Abort(MPI_COMM_WORLD, 0) - process 1</div>

<div>^C[c545-501.stampede.tacc.utexas.edu:mpirun_rsh][signal_processor] Caught signal 2, killing job</div><div>TACC: MPI job exited with code: 1</div><div> </div><div>TACC: Shutdown complete. Exiting.</div></div><div><br>

</div><div><br></div><div><br></div><div><div><div><div><br>Regards<br>Yaakoub El Khamra<br></div>
</div>
</div>
</div></div>