[petsc-users] ex44f.F90 with fortran data types running with 2 cores

Jed Brown jedbrown at mcs.anl.gov
Mon Oct 7 13:49:09 CDT 2013


Yaakoub El Khamra <yye00 at tacc.utexas.edu> writes:

> 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:
> type(Vec) as opposed to Vec 

This example is meant to be usable with normal variable declarations
(i.e., without data types).  Unfortunately, the same code can't work
both ways.

> and so on. I also added CHKERRQ(ierr) wherever it needed to go and
> increased the DMDA size (I used 32).
>
> The ierr value at the KSPSolve was 78, 

That is not a valid return code so memory was corrupt by that time.  I
recommend following the instructions and using Valgrind to find the bug.

> and stdout had the error message below. I must be doing something
> wrong. Anyone has any thoughts on what that might be?
>
> [1]PETSC ERROR:
> ------------------------------------------------------------------------
> [1]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation,
> probably memory access out of range
> [1]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
> [1]PETSC ERROR: or see
> http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[1]PETSC ERROR:
> or try http://valgrind.org on GNU/linux and Apple Mac OS X to find memory
> corruption errors
> [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
> [1]PETSC ERROR: Memory at address 0x89cfa0 is corrupted
> [1]PETSC ERROR: Probably write past beginning or end of array
> [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
> [1]PETSC ERROR: --------------------- Error Message
> ------------------------------------
> [1]PETSC ERROR: Memory corruption!
> [1]PETSC ERROR:  !
> [1]PETSC ERROR:
> ------------------------------------------------------------------------
> [1]PETSC ERROR: Petsc Release Version 3.4.2, Jul, 02, 2013
> [1]PETSC ERROR: See docs/changes/index.html for recent updates.
> [1]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [1]PETSC ERROR: See docs/index.html for manual pages.
> [1]PETSC ERROR:
> ------------------------------------------------------------------------
> [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 c545-501.stampede.tacc.utexas.edu by
> saswata Mon Oct  7 12:52:32 2013
> [1]PETSC ERROR: Libraries linked from /work/02453/saswata/yye00/lib
> [1]PETSC ERROR: Configure run at Mon Oct  7 11:27:02 2013
> [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
> [1]PETSC ERROR:
> ------------------------------------------------------------------------
> [1]PETSC ERROR: PetscMallocValidate() line 137 in
> /work/02453/saswata/yye00/src/petsc-3.4.2/src/sys/memory/mtr.c
> [1]PETSC ERROR: PetscSignalHandlerDefault() line 149 in
> /work/02453/saswata/yye00/src/petsc-3.4.2/src/sys/error/signal.c
> [cli_1]: aborting job:
> application called MPI_Abort(MPI_COMM_WORLD, 0) - process 1
> ^C[c545-501.stampede.tacc.utexas.edu:mpirun_rsh][signal_processor] Caught
> signal 2, killing job
> TACC: MPI job exited with code: 1
>
> TACC: Shutdown complete. Exiting.
>
>
>
>
> Regards
> Yaakoub El Khamra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131007/32924bc8/attachment.pgp>


More information about the petsc-users mailing list