LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2016, 11:38 PM   #1
S A R A
LQ Newbie
 
Registered: Sep 2015
Location: Oman
Posts: 7

Rep: Reputation: Disabled
Question 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!!

Last edited by S A R A; 01-09-2016 at 12:17 AM.
 
Old 01-09-2016, 04:50 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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.


-
 
Old 01-09-2016, 11:47 PM   #3
S A R A
LQ Newbie
 
Registered: Sep 2015
Location: Oman
Posts: 7

Original Poster
Rep: Reputation: Disabled
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)
 
Old 01-10-2016, 02:21 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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/


-

Last edited by knudfl; 01-10-2016 at 02:24 AM.
 
Old 01-10-2016, 09:40 AM   #5
S A R A
LQ Newbie
 
Registered: Sep 2015
Location: Oman
Posts: 7

Original Poster
Rep: Reputation: Disabled
Re# 4

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

Thanks sir @knudfl for information and replies.

Best regards,
 
Old 08-14-2017, 09:16 AM   #6
rvvarthan
LQ Newbie
 
Registered: Jul 2017
Location: Coimbatore, India
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 08-14-2017, 09:48 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,820

Rep: Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978
Quote:
Originally Posted by rvvarthan View Post
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.
 
Old 08-14-2017, 10:30 AM   #8
rvvarthan
LQ Newbie
 
Registered: Jul 2017
Location: Coimbatore, India
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Evalvid ns2.35: error Floating point exception (core dumped) hbenlabbes Linux - Software 1 11-14-2015 12:53 PM
Floating point exception (core dumped) getting this error while running zishan.tcl Md Zishan Khan Linux - Networking 1 05-11-2015 04:20 PM
floating point exception (core dumped) aicaicai Linux - Newbie 2 05-10-2013 07:35 AM
firefox 2.0 Floating Point Exception (core dumped) error on Ubuntu 6.10 maximum Ubuntu 1 12-28-2006 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration