Ns 2 Segmentation Fault Error

i'm new to linux and ns2 platform, i'm doing my thesis and trying to run AODV code, i got the following error, anyone can sort me out

thanks in advance

$ ns DSR.tcl
num_nodes is set 50
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
Segmentation fault (core dumped)


Similar Content



Nam Error (not Running) With Ns2.32 On Ubuntu 12.04

I am working on LAR protocol, ns2 version = 2.32
OS = ubuntu 12.04

i successfully installed LAR NS on my system . but nam does not qork with ns-2.32 . so i tried to install with the following command

sudo make install nam ===> it successfully installed namv1.15 . but when i run box.tcl it is giving me the following error

SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 220.0
Segmentation fault (core dumped)

then i tried to remove the nam with this command sudo apt-get remove nam ==> removed
then i installed this nam from (nam_1.14_amd64.deb) . when i write nam it shows me network animator window v1.14 but segmentataion fault error remains the same .

I also tried to install nam-1.14.i586.tar.gz , first untar it and then the following command sudo cp nam /usr/local/bin but still the error .
i also tried with nam-1.14-x86_64.tar.gz but still no success.

if i dont use nam , then my box file runs successfully.
plz suggest me how to rectify this error.

Segmentation Fault (core Dumped ) Error In Ns2.34

I did some changes in the LAR protocol and suppose the new protocol is named as ABC .
When i am doing make clean and then make.
object file "ABC.o" was successfully created.
Then i tried to run tcl file , nothing has been written in the trace file and it gave me the following error

21052015$ ns234 new.tcl scen1 setting other default settings...
removing unecessary packet headers...
num_nodes is set 100
INITIALIZE THE LIST xListHead
loading mobility file
loading traffic file
Starting Simulation...
Segmentation fault (core dumped)

I tried a lot but unable to find out where is the error. I am unable to find out the point of error . Is it in .cc file or in .tcl file.
Could someone please help me.
My work is stucked and i searched a lot but didn't get anything.

please please .............. help me

Zrp Installation Problem

INITIALIZE THE LIST xListHead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
using backward compatible Agent/CBR; use Application/Traffic/CBR instead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...


** what does this means??***

No Data Sent In Pegasis.out (NS2)

Hi all,

I was wondering did anyone try running PEGASIS simulation on NS-2.34? I am using Ubuntu 10.04 and I tried running it with the LEACH+PEGASIS patch from exidus, but the pegasis output does not seem right, although the leach output seems fine.
As seen there is not data sent and the nodes alive stays 10 (used only 10 nodes) with energy still intact. Any input/thoughts are appreciated, thanks!

Code:
Creating sensor nodes... - uAMPS.tcl
0 1 2 3 4 5 6 7 8 9 (10 == BS) - uAMPS.tcl
*** NOTE: no connection pattern specified. - wireless.tcl
Loading scenario file... - wireless.tcl
Node 0: (3.6149593552644173,36.078549379519444)
Node 1: (58.871299055810688,72.899243455798938)
Node 2: (66.192033079542227,78.762060347368035)
Node 3: (26.408279047537725,13.096542662520214)
Node 4: (69.871280002347788,8.1301262174407611)
Node 5: (59.175824494648644,20.065448163107714)
Node 6: (23.120326699279399,59.510628627385309)
Node 7: (35.061642916436142,75.71922716485301)
Node 8: (10.49768087011654,98.860375722339555)
Node 9: (28.928238399759049,88.984149177085683)
Max Distance for this Simulation is 113.0
Load complete... - wireless.tcl
Starting Simulation... - wireless.tcl
BS received info: (3.6149593552644173 36.078549379519444 2) from Node 0  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 1 - mit/uAMPS/ns-bsapp.tcl
BS received info: (58.871299055810688 72.899243455798938 2) from Node 1  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 2 - mit/uAMPS/ns-bsapp.tcl
BS received info: (66.192033079542227 78.762060347368035 2) from Node 2  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 3 - mit/uAMPS/ns-bsapp.tcl
BS received info: (26.408279047537725 13.096542662520214 2) from Node 3  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 4 - mit/uAMPS/ns-bsapp.tcl
BS received info: (69.871280002347788 8.1301262174407611 2) from Node 4  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 5 - mit/uAMPS/ns-bsapp.tcl
BS received info: (59.175824494648644 20.065448163107714 2) from Node 5  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 6 - mit/uAMPS/ns-bsapp.tcl
BS received info: (23.120326699279399 59.510628627385309 2) from Node 6  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 7 - mit/uAMPS/ns-bsapp.tcl
BS received info: (35.061642916436142 75.71922716485301 2) from Node 7  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 8 - mit/uAMPS/ns-bsapp.tcl
BS received info: (10.49768087011654 98.860375722339555 2) from Node 8  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 9 - mit/uAMPS/ns-bsapp.tcl
BS received info: (28.928238399759049 88.984149177085683 2) from Node 9  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 10 - mit/uAMPS/ns-bsapp.tcl

At 10: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 20: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 30: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 40: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 50: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 60: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 70: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 80: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 90: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 100: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 110: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 120: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 130: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 140: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 150: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 160: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 170: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 180: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 190: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 200: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 210: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 220: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 230: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 240: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 250: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 260: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 270: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 280: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 290: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 300: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 310: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 320: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 330: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 340: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 350: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 360: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 370: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 380: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 390: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 400: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 410: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 420: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 430: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 440: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 450: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 460: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 470: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 480: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 490: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 500: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 510: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 520: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 530: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 540: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 550: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 560: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 570: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 580: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 590: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 600: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


Simulation complete. - mit/uAMPS/stats.tcl

num_nodes is set 11
mac/channel.cc: sendUp - Calc highestAntennaZ_ and distCST_
mac/channel.cc: highestAntennaZ_ = 1.5,  distCST_ = 160.8

TORA Simulation Segmentation Fault For Nodes <= 100 In NS-2.35 On Ubuntu 12.04

i am trying to simulate Tora for 50, 110, 170 and 200 number of nodes. but for 50 number of nodes trace file become so large that it does give segmentation fault error when i tried to extract results with awk file. for 100 number of nodes simulation never comes an end. please help me... if m missing something ...

Using Gdb To Detect Segmentation Fault In Sh?

I am using scientific linux. In the directory user/project/Build, after I ran 'make' to compile and link all the cpp files,I had no problems. But then, when I went to directory user/run/run.sh, which runs the project binary in user/project/Build/bin/project, I get a segmentation fault error. In the directory user/run, I enter 'gdb' in the command prompt and get the message "*** No targets specified and no makefile found. Stop."

What am I supposed to do to detect the segmentation fault?

Segmentation Fault (core Dump)

Hi
i ve installed ns2.35 in ubantu14.04,
i hav successfully run tcl script, bt when i've tried to execute nam command, it gave me " Segmentation fault (core dump)" .
although i can sucessfully run awk & Xgraph commands, bt unable to run nam
plz help me out...

Help Me!!!

Hi,

Whenever I run xgraph command, the output is
[1] 6177
For 2nd instance, the output is
[2] 6179
[1] Segmentation fault (core dumped)
and so on.
The command which I have used is "exec xgraph Throughput &"

If i use command "xgraph Throughput &", I get
Segmentation fault (core dumped)

I am unable to get the graph.
Please help me!!!

Error While Executing Ns2

i had added my own red.cc to ns2.34 when i run the tcl script it runs correctly, but after adding my own varible to red.cc and red.h the tcl script showing segmentation fault
please help me to remove the error

How To Share Mac Parameters In Routing Protocol

when i try to access macSuperframeOrder in new routing protocol, i am getting segmentation fault(core dumped). kindly tell me , how to access macSuperframeOrder in my newroutingprotcol.cc and to change the value based on some condition.