简体   繁体   English

SIGFPE:此错误的浮点异常回溯:0x7F70C71AF7D7

[英]SIGFPE: Floating-point exception backtrace for this error: 0x7F70C71AF7D7

I use a Fortran 90 model under Ubuntu 14.04.我在 Ubuntu 14.04 下使用 Fortran 90 模型。 The gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6) and the gcc 4:4.8.2-1ubuntu6 are installed by Ubuntu Software Center. gfortran 95 编译器 (gfortran 4:4.8.2-1ubuntu6) 和 gcc 4:4.8.2-1ubuntu6 由 Ubuntu 软件中心安装。 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?我该如何处理这些错误?

Use the options -O -Wall -fcheck=all -g -fbacktrace during compilation and run the executable.在编译期间使用选项-O -Wall -fcheck=all -g -fbacktrace并运行可执行文件。 If this does not provide the necessary information, try running your program under gdb and/or valgrind.如果这没有提供必要的信息,请尝试在 gdb 和/或 valgrind 下运行您的程序。

I had the same error, when I compiled a Fortran95 code.当我编译 Fortran95 代码时,我遇到了同样的错误。 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.我希望它能帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM