SIGFPE:此错误的浮点异常回溯:0x7F70C71AF7D7 [英] SIGFPE: Floating-point exception backtrace for this error: 0x7F70C71AF7D7

查看:408
本文介绍了SIGFPE:此错误的浮点异常回溯:0x7F70C71AF7D7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 14.04下使用Fortran 90模型。 Ubuntu软件中心安装了gfortran 95编译器(gfortran 4:4.8.2-1ubuntu6)和gcc 4:4.8.2-1ubuntu6。在运行模型后,我得到以下错误信息:

pre $编程接收到的信号SIGFPE:浮点异常 - 错误的算术运算。此错误的
回溯:
#0 0x7F70C71AF7D7
#1 0x7F70C71AFDDE
#2 0x7F70C68EAD3F
#3 0x7F70C6EB6913

有人能解释一下这些backtrace代码是什么意思?如何处理这些错误?

解决方案

使用选项 -O -Wall -fcheck = all - g -fbacktrace 在编译和运行可执行文件。如果这不提供必要的信息,请尝试在gdb和/或valgrind下运行您的程序。


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?

解决方案

Use the options -O -Wall -fcheck=all -g -fbacktrace during compilation and run the executable. If this does not provide the necessary information, try running your program under gdb and/or valgrind.

这篇关于SIGFPE:此错误的浮点异常回溯:0x7F70C71AF7D7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆