<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
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:<br>
<br>
call PetscInitialize(PETSC_NULL_CHARACTER,ierr)<br>
<br>
The error I got is:<br>
<br>
<b><i>[0]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: Caught signal number 8 FPE: Floating
Point Exception,probably divide by zero</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: Try option -start_in_debugger or
-on_error_attach_debugger</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: or see
<a class="moz-txt-link-freetext" href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a>[0]PETSC
ERROR: [21]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: Caught signal number 8 FPE:
Floating Point Exception,probably divide by zero</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: Try option -start_in_debugger or
-on_error_attach_debugger</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: or see
<a class="moz-txt-link-freetext" href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a>[21]PETSC
ERROR: or try <a class="moz-txt-link-freetext" href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS
X to find memory corruption errors</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: or try option -log_stack</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: --------------------- Error Message
------------------------------------</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: Signal received!</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: Petsc Release Version 3.4.3, Oct,
15, 2013</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: See docs/changes/index.html for
recent updates.</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: See docs/faq.html for hints about
trouble shooting.</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: See docs/index.html for manual
pages.</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: ./a.out on a petsc-3.4.3_debug
named fuji412 by exttaywb Fri Jan 10 12:31:27 2014</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: Libraries linked from
/home01/xuser/exttaywb/DATA/lib/petsc-3.4.3_debug/lib</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: Configure run at Fri Dec 27
09:53:06 2013</i></b><b><i><br>
</i></b><b><i>[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</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[21]PETSC ERROR: User provided function() line 0 in
unknown directory unknown file</i></b><b><i><br>
</i></b><b><i>application called MPI_Abort(MPI_COMM_WORLD, 59) -
process 21</i></b><b><i><br>
</i></b><b><i>[22]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[22]PETSC ERROR: Caught signal number 8 FPE:
Floating Point Exception,probably divide by zero</i></b><b><i><br>
</i></b><b><i>[22]PETSC ERROR: Try option -start_in_debugger or
-on_error_attach_debugger</i></b><b><i><br>
</i></b><b><i>[22]PETSC ERROR: or see
<a class="moz-txt-link-freetext" href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a>[22]PETSC
ERROR: or try <a class="moz-txt-link-freetext" href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS
X to find memory corruption errors</i></b><b><i><br>
</i></b><b><i>[22]PETSC ERROR: or try option -log_stacor try
<a class="moz-txt-link-freetext" href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find
memory corruption errors</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: or try option -log_stack</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: --------------------- Error Message
------------------------------------</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: Signal received!</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR:
------------------------------------------------------------------------</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: Petsc Release Version 3.4.3, Oct,
15, 2013</i></b><b><i><br>
</i></b><b><i>[0]PETSC ERROR: See docs/changes/index.html for
recent updates.</i></b><br>
...<br>
<br>
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.<br>
<br>
Do you have any idea what's going on?<br>
<br>
Let me know if you need more info<br>
<br>
Thanks!<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Yours sincerely,
TAY wee-beng</pre>
</body>
</html>