LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-25-2012, 04:13 AM   #1
simz
LQ Newbie
 
Registered: Apr 2012
Posts: 10

Rep: Reputation: Disabled
Segmentation fault (core dumped) error in mobiwan script


hi... i installed mobiwan on ns-2.33 and when i tried to run simple-mipv6.tcl example i faced an error shown below:


"
[root@riaz tcl_scripts]# ns-mobiwan simple-mipv6.tcl
num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

>-------------------- NS Addressing --------------------<
Domains (domain_num) : 2
Clusters (cluster_num) : 1 5
Nodes (nodes_num) : 1 1 3 1 1 1
>-------------------------------------------------------<

Segmentation fault (core dumped)
[root@riaz tcl_scripts]#
"

please help .... thanks
 
Old 02-08-2015, 02:03 PM   #2
drek92
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
I am also facing the same problem except that my output before error is :-

num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

>-------------------- NS Addressing --------------------<
Domains (domain_num) : 2
Clusters (cluster_num) : 1 5
Nodes (nodes_num) : 1 1 3 1 1 1
>-------------------------------------------------------<

SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
62.0024 get_coa for BS 1.2.0:4198400 Current location: 27.3644, 420.787 Destination: 393.546, 400.769
63 Send BU to HA
Segmentation fault (core dumped)
diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33/tcl/mobiwan$


I already had NS2.35 on ubuntu 12.04 and have installed NS2.33 along with mobiwan patch for ipv6 simulation but while running simple-mipv6.tcl i got error. I ran the script by :-

diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33/tcl/mobiwan$ /home/diwakar/NS2.33/ns-allinone-2.33/ns-2.33/ns simple-mipv6.tcl

Could somebody please help me with this??
 
Old 02-08-2015, 03:17 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #2, @drek92 : Welcome to LQ.

Which "Ubuntu 12.04" ? ? 64bits (x86_64) or 32bits (i686) ?

All my mobiwan examples are working OK here.
Example, the 64bits Ubuntu 12.04.3 : ns-2.33/tcl/mobiwan/ \
{ 2-Basic-Mobile-IPv6-example.tcl mobiwan_test_bidirct.tcl,
mobiwan_test_faster.tcl mobiwan_test_mntomn.tcl simple-mipv6.tcl}.
* The executable ns233-mobiwan1 (built from mobiwan-1) was used.

Which mobiwan version ? mobiwan-1 or mobiwan-an ?
( ns-233-mobiwan-1.patch, ns-2.33-mobiwan-an-110617.patch.)


P.S. : Bold types → Please use for one word only.
An error output / terminal output, like post #2,
is supposed to be in CODE tags ...
. http://www.linuxquestions.org/questi....php?do=bbcode
. http://www.linuxquestions.org/questi...gs-4175464257/
I.e. use the ` # ī button in the 'Advanced Editor'.
Or simply type [/code] at text end, and [code] at error text start.


-

Last edited by knudfl; 02-08-2015 at 03:24 PM.
 
Old 02-09-2015, 01:50 AM   #4
drek92
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
Thank you for your reply
I am using ubuntu 12.04 64bits

i patched mobiwan-1 followed by mobiwan-rfc3775 from the link below :-
https://sites.google.com/site/peeraz...llation-in-ns2

i was running simple-mipv6.tcl in tcl/mobiwan folder and was getting the output mentioned in Post #2.
Additional information - The code did generate the trace file for the time it ran and the simulation ran for about 63 seconds.

I didn't make any changes to the code, that was a first time run.

I also doubt whether I am using NS2.33 or NS2.35. Could you please check my syntax from post #2.(the location for NS2.33 is correct)

I'll tell the motive of my work and need some guidance.I want to simulate an IOT network and build some kind of framework. I would be working on these three layers:-
1) Network layer - ipv6 protocol and routing protocol
2) Link layer - error corction techs and mac layer protocol
3) physical layer - some modulation schemes and power or energy restrictions.

That was background of whats needs to be done and my friend suggested to go for NS3 which supports all that needs to be done.Can you suggest somthing in this regard.

P.S :- I'll use code feature from my next post.Sorry!

Last edited by drek92; 02-09-2015 at 02:01 AM.
 
Old 02-09-2015, 02:43 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #4.
Quote:
I also doubt whether I am using NS2.33 or NS2.35
When you have more than one version of ns2, the file name 'ns' should not be used.
$ cd ns-allinone-2.33/ns-2.33/
$ cp ns ns-mobiwan-r
$ sudo cp ns-mobiwan-r /usr/local/bin/
... All simulations will work OK like $ ns-mobiwan-r simple-mipv6.tcl ,
etc. etc., unless you have a newish OS like Ubuntu 12.04 :
All examples will show `Segmentation faultī with mobiwan-an,
may be also with the mobiwan-rfc3775 extension.
Only the old "mobiwan-1" works perfectly in a contemporary OS.

Oldish OSīs for later mobiwan+ns2 : CentOS 6.6 -i686 (supported till 2017),
Or the old Ubuntuīs 10.10 -i686 and 10.04.4 -i686 (unsupported, unsafe.)

Simulation examples ( for ns-2.3x/tcl/mobiwan/) : mobiwan-examples.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing



ns3 : Please ask in the ns3 Forum , "ns-3-users" →
https://groups.google.com/forum/?fro...rum/ns-3-users
* Generally, ns3 is to be used if it can do the job.
* ns3 is constantly being developed, updated. Current is version 3.22.
* ns2 has not really been maintained for years. Only small adjustments are added.


-
 
Old 02-09-2015, 03:22 AM   #6
drek92
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
i tried what you have mentioned. Below is the output.I am still getting error.

Code:
diwakar@diwakar:~$  cd ns-allinone-2.33/ns-2.33/
bash: cd: ns-allinone-2.33/ns-2.33/: No such file or directory
diwakar@diwakar:~$ cd NS2.33/ns-allinone-2.33/ns-2.33/
diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33$ cp ns ns-mobiwan-r 
diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33$ sudo cp ns-mobiwan-r /usr/local/bin/
[sudo] password for diwakar: 
diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33$ cd tcl/mobiwan/
diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33/tcl/mobiwan$ ns-mobiwan-r simple-mipv6.tcl 
num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

  >-------------------- NS Addressing --------------------<
  Domains (domain_num) : 2
  Clusters (cluster_num) : 1 5
  Nodes (nodes_num) :  1 1 3 1 1 1
  >-------------------------------------------------------<

SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
62.0024 get_coa for BS 1.2.0:4198400 Current location: 27.3644, 420.787 Destination: 393.546, 400.769
63 Send BU to HA
Segmentation fault (core dumped)
diwakar@diwakar:~/NS2.33/ns-allinone-2.33/ns-2.33/tcl/mobiwan$ ns-mobiwan-r simple-mipv6.tcl
I guess it may be rfc3775 patch. Could you tell me how to revert back to only mobiwan-1 patch.
 
Old 02-09-2015, 04:49 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #6.
Quote:
how to revert back to only mobiwan-1 patch.
$ man patch http://linux.die.net/man/1/patch

Theoretically, you should do like ...
$ cd ns-allinone-2.33/
$ patch -p1 -R < ns-2.33-mobiwan-an-110617.patch

May be not worth the effort, when you easily can do :
cd /home/[user-name]/<new-folder>/
tar xvf ns-allinone-2.33.tar.gz
cd ns-allinone-2.33/
patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
ln -s ns-2.33/ ns-2.33-mobiwan
patch -p0 < ns-233-mobiwan-1.patch
export CC=gcc-4.4 CXX=g++-4.4 && ./install
cd ns-2.33/
cp ns ns-mobiwan1
sudo cp ns-mobiwan1 /usr/local/bin/


-
 
  


Reply

Tags
mobiwan, ns2


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
After du -akL command on a directorI get the error: Segmentation Fault - core dumped jglenton Solaris / OpenSolaris 0 11-23-2010 09:03 AM
Segmentation fault (core dumped) mayankladoia Programming 4 07-17-2010 02:11 AM
Segmentation Fault (core dumped) doing su - Blinker_Fluid Solaris / OpenSolaris 5 10-07-2008 06:04 PM
Segmentation fault (core dumped) eytan *BSD 3 04-27-2005 08:38 PM
Segmentation fault (core dumped) plisken Linux - General 8 09-17-2003 03:32 AM

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

All times are GMT -5. The time now is 07:41 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