LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   floating point exception (core dumped) (https://www.linuxquestions.org/questions/linux-newbie-8/floating-point-exception-core-dumped-899988/)

aicaicai 08-29-2011 01:33 AM

floating point exception (core dumped)
 
Hello ,I add a ZBR(zigbee route) route protocol in NS2.29 on Cygwin.When I use script language,there is an error:
$ ns cyl.tcl
num_nodes is set 25
INITIALIZE THE LIST XListHead
Traffic :ftp
ackonwledgement for data:on

starting for simulation
channel.cc:sendup -cale highestantennaz_ and distcst_

sorting list ...down
floating point exception (core dumped)

SalmonEater 08-31-2011 11:42 PM

http://cygwin.com/cygwin-ug-net/using-utils.html

bhargavigoswami 05-10-2013 07:35 AM

Floating Point Error (Core Dumped) Solution:
 
You are getting the error "Floating Point Error ( Core Dump )".

This error comes when there is some expression dividing value by zero. eg. x=10 and y=0 and x/y. This means, x is divided by zero, which results to floating point error.

Please check is your code doing division by zero? Try to resolve this zero value before expression evaluation. And thats it. Your problem is solved.

I was facing the same error which got resolved by checking variable values not equal to zero before expression evaluation.

I wish people facing this error gets solution, hence writing this report.


All times are GMT -5. The time now is 09:57 PM.