LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Floating point exception (core dumped) in ns2 ?! (https://www.linuxquestions.org/questions/linux-software-2/floating-point-exception-core-dumped-in-ns2-4175563462/)

S A R A 01-08-2016 11:38 PM

Floating point exception (core dumped) in ns2 ?!
 
Hello everyone,

I try to develop new protocol in aqua-sim simulator by editing VBF protocol.
Then, I faced an error as follow:

Code:

the file name is vbf_example_5.data
the sending interval is 10.0
num_nodes is set 6
Width=100
Sara ****************VB initialized
INITIALIZE THE LIST xListHead
Sara ****************VB initialized
Sara ****************VB initialized
Sara ****************VB initialized
Sara ****************VB initialized
Sara ****************VB initialized
Node 5 is sending first!!
starting Simulation...
GOD: the old file name istest.data
GOD: the new file name isvbf_example_5.data
uw_sink:source(5,0) send packet 0 at 1.330000 : the coordinates of target is (500.000000,0.000000,0.000000) and range=100.000000 and my position (200.000000,0.000000,0.000000) and cx is(200.000000,0.000000,0.000000)  type is 2
Sara Vectorbasedforward...broadcast:size is 400  at  1.330025
SORTING LISTS ...DONE!
Floating point exception (core dumped)

Can anyone explain why this error occurs?&
How to solve it?

notice that error occurs even before editing the vbf_example_5.tcl.
Previously, vbf_example_5.tcl run successfully!!

knudfl 01-09-2016 04:50 PM

Quote:

Previously, vbf_example_5.tcl run successfully !!
Impossible to know what happened with the original vbf_example_5.tcl, "before and after".
? What's the difference between before and after ? Did you update the OS ?
... And which OS are you using ? Like CentOS 6 - 32bits, Ubuntu 12.04 - 64bits.


Generally ns2 has some limitations ...
. http://www.linuxquestions.org/questi...-4175552241/#2
. http://www.linuxquestions.org/questi...n20fault20ns2/

Be aware that any contemporary updated 'Linux OS' will fail with Aqua.Sim :
All simulations or some simulations.


-

S A R A 01-09-2016 11:47 PM

R#2

thanks for reply Sir,

until now I just add some printf(".."), no more !
OS: Ubuntu 14.04 - 64bits, I don't update it.

I run another tcl files and work successfully,
but vbf_example_5.tcl still show that error:
Floating point exception (core dumped)

knudfl 01-10-2016 02:21 AM

Re #3.

OK, you can try with e.g. Ubuntu 9.10 - 32bits. No newer updates exists !
Ubuntu 14.04 - 64bits is not supposed to do any Aqua-Sim.
Updating is also happening when you install g++ : libc6 gets updated !

Read post #34 here http://www.linuxquestions.org/questi...637/page3.html
... to know that Ubuntu 10.10 and 10.04 are too new to do all Aqua-Sim.
All INFO http://www.linuxquestions.org/questions/tags/aquasim/


-

S A R A 01-10-2016 09:40 AM

Re# 4

I re-install ns2 and recompile it again,
and the program runs OK.

Thanks sir @knudfl for information and replies.

Best regards,

rvvarthan 08-14-2017 09:16 AM

RMac:SortPeriodTable;node 2 sort period table Floating point exception (core dumped)
 
In vbf_example_5.tcl I made the following change.

#set opt(mac) Mac/UnderwaterMac/BroadcastMac
set opt(mac) Mac/UnderwaterMac/RMac

while running the code, I got the following..

RMac:SortPeriodTable;node 2 sort period table
Floating point exception (core dumped)

Please help to solve this issue.

Thank you in advance.

TB0ne 08-14-2017 09:48 AM

Quote:

Originally Posted by rvvarthan (Post 5748132)
In vbf_example_5.tcl I made the following change.

#set opt(mac) Mac/UnderwaterMac/BroadcastMac
set opt(mac) Mac/UnderwaterMac/RMac

while running the code, I got the following..

RMac:SortPeriodTable;node 2 sort period table
Floating point exception (core dumped)

Please help to solve this issue. Thank you in advance.

Open your own thread for your own question; read the "Question Guidelines" and the LQ Rules.

rvvarthan 08-14-2017 10:30 AM

Quote:

Originally Posted by TB0ne (Post 5748145)
Open your own thread for your own question; read the "Question Guidelines" and the LQ Rules.

I found my question is similar to this thread. Thanks for the enlightment and I opened my own thread for this question.

https://www.linuxquestions.org/quest...60#post5748160


All times are GMT -5. The time now is 04:40 PM.