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

泄露秘密 提交于 2019-12-10 17:21:46

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/28557952/sigfpe-floating-point-exception-backtrace-for-this-error-0x7f70c71af7d7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!