[petsc-users] Strange program abort after PetscInitialize

TAY wee-beng zonexo at gmail.com
Thu Jan 9 22:42:00 CST 2014


Hi,

I have some problems with file writing when my code is about to end. To 
find out the problem, I now compiled and built in debug mode. However, 
now it can't even go past the 1st line of code:

call PetscInitialize(PETSC_NULL_CHARACTER,ierr)

The error I got is:

*/[0]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[0]PETSC ERROR: Caught signal number 8 FPE: Floating Point 
Exception,probably divide by zero/**/
/**/[0]PETSC ERROR: Try option -start_in_debugger or 
-on_error_attach_debugger/**/
/**/[0]PETSC ERROR: or see 
http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC 
ERROR: [21]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[21]PETSC ERROR: Caught signal number 8 FPE: Floating Point 
Exception,probably divide by zero/**/
/**/[21]PETSC ERROR: Try option -start_in_debugger or 
-on_error_attach_debugger/**/
/**/[21]PETSC ERROR: or see 
http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[21]PETSC 
ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to 
find memory corruption errors/**/
/**/[21]PETSC ERROR:   or try option -log_stack/**/
/**/[21]PETSC ERROR: --------------------- Error Message 
------------------------------------/**/
/**/[21]PETSC ERROR: Signal received!/**/
/**/[21]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[21]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013/**/
/**/[21]PETSC ERROR: See docs/changes/index.html for recent updates./**/
/**/[21]PETSC ERROR: See docs/faq.html for hints about trouble shooting./**/
/**/[21]PETSC ERROR: See docs/index.html for manual pages./**/
/**/[21]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[21]PETSC ERROR: ./a.out on a petsc-3.4.3_debug named fuji412 by 
exttaywb Fri Jan 10 12:31:27 2014/**/
/**/[21]PETSC ERROR: Libraries linked from 
/home01/xuser/exttaywb/DATA/lib/petsc-3.4.3_debug/lib/**/
/**/[21]PETSC ERROR: Configure run at Fri Dec 27 09:53:06 2013/**/
/**/[21]PETSC ERROR: Configure options --known-level1-dcache-size=32768 
--known-level1-dcache-linesize=64 --known-level1-dcache-assoc=8 
--known-memcmp-ok=1 --known-sizeof-char=1 --known-sizeof-void-p=8 
--known-sizeof-short=2 --known-sizeof-int=4 --known-sizeof-long=8 
--known-sizeof-long-long=8 --known-sizeof-float=4 
--known-sizeof-double=8 --known-sizeof-size_t=8 --known-bits-per-byte=8 
--known-sizeof-MPI_Comm=4 --known-sizeof-MPI_Fint=4 
--known-mpi-long-double=1 
--with-blas-lapack-dir=/opt/intel/mkl/2011.2.137/lib/intel64/ 
--with-debugging=1 
--prefix=/home01/xuser/exttaywb/DATA/lib/petsc-3.4.3_debug 
--with-cc=/opt/intel/impi/4.0.1.007/intel64/bin/mpiicc 
--with-fc=/opt/intel/impi/4.0.1.007/intel64/bin/mpiifort 
--with-cxx=/opt/intel/impi/4.0.1.007/intel64/bin/mpiicpc 
--download-hypre=1 --known-mpi-shared-libraries=0 --with-batch=1 
--with-shared-libraries=0/**/
/**/[21]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[21]PETSC ERROR: User provided function() line 0 in unknown 
directory unknown file/**/
/**/application called MPI_Abort(MPI_COMM_WORLD, 59) - process 21/**/
/**/[22]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[22]PETSC ERROR: Caught signal number 8 FPE: Floating Point 
Exception,probably divide by zero/**/
/**/[22]PETSC ERROR: Try option -start_in_debugger or 
-on_error_attach_debugger/**/
/**/[22]PETSC ERROR: or see 
http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[22]PETSC 
ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to 
find memory corruption errors/**/
/**/[22]PETSC ERROR:   or try option -log_stacor try http://valgrind.org 
on GNU/linux and Apple Mac OS X to find memory corruption errors/**/
/**/[0]PETSC ERROR:   or try option -log_stack/**/
/**/[0]PETSC ERROR: --------------------- Error Message 
------------------------------------/**/
/**/[0]PETSC ERROR: Signal received!/**/
/**/[0]PETSC ERROR: 
------------------------------------------------------------------------/**/
/**/[0]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013/**/
/**/[0]PETSC ERROR: See docs/changes/index.html for recent updates./*
...

Strangely, it happens only if I built in debug mode. I tried to built 
ex2f using the same way but it does not happen. It only happens if I run 
in mpi ie >1 cpu.

Do you have any idea what's going on?

Let me know if you need more info

Thanks!


-- 
Yours sincerely,

TAY wee-beng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140110/d73eb3e3/attachment.html>


More information about the petsc-users mailing list