CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Infinite loop error message when an error occur in OF 2.1 installed in Mac OS X 10.9 (https://www.cfd-online.com/Forums/openfoam-installation/142386-infinite-loop-error-message-when-error-occur-2-1-installed-mac-os-x-10-9-a.html)

Pagoda September 29, 2014 14:11

Infinite loop error message when an error occur in OF 2.1 installed in Mac OS X 10.9
 
Dear All,
I have successfully installed OF 2.1 in my new macbook pro, everything works fine, except one thing:
when an error occurs in a parallel run the following error message is written on the screen:

Code:

*** Process received signal ***
Signal: Floating point exception: 8 (8)
Signal code: Floating point underflow (3)
Failing at address: 0x1043c389a
*** End of error message ***

The problem is not the error itself but the fact that it is written infinite times with an endless loop.

How can I fix it? Any ideas?

Thanks,
Matteo

alexeym September 30, 2014 02:32

Hi,

as there's no official (or reference) release for OS X, you have to describe how did you build the software. Post the case where the error happens for other people to confirm the behavior and maybe propose a fix.

Pagoda September 30, 2014 04:13

Thanks Alexey for the suggestion.
I have installed OF 2.1.1 on Mac OS X 10.9.5 with the following patches:

- OpenFOAM-2.1.x-Mac-gcc46.patch
- OpenFOAM-2.1.x-Mac_20121009.patch

following step by step what is suggested in

http://openfoamwiki.net/index.php/In...OpenFOAM_2.1.x

So, if I type "gcc -v", I get:
Code:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

if I type "gcc-mp-4.6 -v"
Code:

Using built-in specs.
COLLECT_GCC=gcc-mp-4.6
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin13/4.6.4/lto-wrapper
Target: x86_64-apple-darwin13
Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc46/gcc46/work/gcc-4.6.4/configure --prefix=/opt/local --build=x86_64-apple-darwin13 --enable-languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc46 --includedir=/opt/local/include/gcc46 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.6 --with-gxx-include-dir=/opt/local/include/gcc46/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --with-pkgversion='MacPorts gcc46 4.6.4_5'
Thread model: posix
gcc version 4.6.4 (MacPorts gcc46 4.6.4_5)

and finally, if I type "mpirun -V"
Code:

mpirun (Open MPI) 1.5.3

Report bugs to http://www.open-mpi.org/community/help/

Do you think these informations are enough or something is still missing?

Tnx,
Matteo

alexeym September 30, 2014 05:09

Well, more or less. Now you have to wait till someone will bother to install 2.1.1 on OS X 10.9 using gcc46 from Macports and try to reproduce the error.

Btw does this infinite loop happens every time when error occurs in parallel run? I.e. person can just take random case from tutorial, correct settings for FPE to occur, and run the case in parallel. Or this infinite loop happens only with special solver?

Pagoda September 30, 2014 07:19

Ok, in my installation the procedure to get this infinite loop is the following:

- in the cavity test case set the viscosity "nu" equal to a negative value
- if you run on it "icoFoam", after some solving loop you get the following error message:
Code:

Segmentation fault: 11
- now, if you run it in parallel you get the following error
Code:

*** Process received signal ***
Signal: Segmentation fault: 11 (11)
Signal code:  (0)
Failing at address: 0x0
*** End of error message ***

written on the screen with an endless loop.


Anyone can experience this? Any idea on the reason of this behavior?

Thanks,
Matteo

alexeym October 1, 2014 15:38

Hi,

I was able to reproduce the error. As a workaround I can propose

Code:

$ export -n $FOAM_SIGFPE
(or comment out 'export FOAM_SIGFPE=' in $WM_PROJECT_DIR/etc/bashrc)

I'll post a patch here as soon as I figure out the reason for the error and make the patch.

Pagoda October 2, 2014 04:03

Great, it works!

I am looking forward getting your patch.

Thanks a lot.
M


All times are GMT -4. The time now is 17:01.