SIGFPE: Floating-point exception backtrace for this error: 0x7F70C71AF7D7
Asked Answered
M

3

9

I use a Fortran 90 model under Ubuntu 14.04. The gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6) and the gcc 4:4.8.2-1ubuntu6 are installed by Ubuntu Software Center. After I ran the model I get the following error message:

Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.
Backtrace for this error:
#0  0x7F70C71AF7D7
#1  0x7F70C71AFDDE
#2  0x7F70C68EAD3F
#3  0x7F70C6EB6913

Could someone explain me what these backtrace codes mean? How can I handle these errors?

Margueritamarguerite answered 17/2, 2015 at 8:51 Comment(2)
Those numbers are values of the instruction pointer that some stack unwinding procedure found on the stack. You may (or may not) be able to feed them through addr2line to get function names and line numbers out of them.Ptero
I tried addr2line and gdb to get the function names and line numbers but neither found it. (gdb) info symbol 0x7F2B31E0D7D7 No symbol matches 0x7F2B31E0D7D7, gdb) info line *0x7F2B31E0D7D7 No line number information available for address 0x7f2b31e0d7d7, addr2line -e KiD_SC_2D.exe 0x7F2B31E0D7D7 ??:0. Is there any other way to handle this error?Margueritamarguerite
D
9

Use the options -O -Wall -fcheck=all -g -fbacktrace for the gfortran compiler or equivalent options for other compilers during compilation and run the executable. For example, for the Intel compiler it would be -warn -check -g -traceback.

If this does not provide the necessary information, try running your program under gdb and/or valgrind.

Denson answered 23/2, 2015 at 8:43 Comment(0)
D
0

I had the same error, when I compiled a Fortran95 code. In my case, I just debugged my code. There was a wrong mathematical operation (division by zero). Once I fixed it, the compilation error was gone. Try to check your code for math error. I hope it can help you.

Depth answered 28/8, 2020 at 9:45 Comment(0)
K
0

I got a similar error. When I reduced the number of processors, the model started running.

Kallman answered 17/4, 2024 at 18:29 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.