[ns] segmentation fault (core dumped)

2015-05-26 Thread kavita pandey

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 where is the error . in .cc file or in .tcl file.
could someone please help me.
My work has been stucked and i searched a lot but didn't get anything.

please please .. help me .
Any hints -- how to proceed further ...

thanks a lot


Re: [ns] Segmentation fault (core dumped) error with NAM command in GPSR Keliu wireless-gpsr.tcl example

2015-05-16 Thread knudfl

Hi .

I guess the GPSR-KeLiu protocol isn't really supporting nam ?

There is a text file  TextFile-modify-wireless-gpsr about nam in the 
examples.
But I don't remember that anybody ever succeeded with a  GPSR-KeLiu nam 
file.

Latest examples :  GPSR-KeLiu-examples_01.2015.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNR3J6b3hxX19TTnM/view?usp=sharing

-

On Sunday, May 17, 2015 at 1:14:17 AM UTC+2, mima Amira wrote:

 Hi


 please, i get an error Segmentation fault (core dumped) error with NAM 
 command in GPSR Keliu wireless-gpsr.tcl example


 my OS is ubuntu 32bit, NS2.35 and I succfully patched GPSR keliu

 my problem in when I put nam nam-out.nam  the nam window is open but when 
 I run it I get this error and the nam window is closed


 thanks in advance






[ns] Segmentation fault (core dumped) problem in ns2 crcn tcl script

2012-06-14 Thread Khaled Elmishad


While compiling crcn tcl script the following error exisits

Segmentation fault (core dumped)
Consequences:
Trace file is not completed which leads to incomplete nam file.
Simulation time 50 sec and traffic connections end at 45 sec while trace file 
stopped at 0.003 sec.
I tried to change AODV to DSR where it stopped at 7 sec.
Please provide me with solution to this.



 Sincerely,Khaled Elmishad  

Senior Student, Communication Engineering ASU-CHEP


  


[ns] Segmentation fault (core dumped) ns2 crcn under differenet protocols

2012-06-14 Thread Khaled Elmishad



While compiling crcn tcl script the following error exisits

Segmentation fault (core dumped)
Consequences:
Trace file is not completed which leads to incomplete nam file.
Simulation time 50 sec and traffic connections end at 45 sec while trace file 
stopped at 0.003 sec.

Changing routing and or mac protocols the stopping time and segmentation error 
still exists 
But using DSR with Macng protocols it worked good error free.
Please provide me with solution to this problem.



 Sincerely,Khaled Elmishad  

Senior Student, Communication Engineering ASU-CHEP



  


[ns] segmentation fault core dumped in ns2-2.27 when I revise the variable of next hop

2011-05-26 Thread 兰天

hi,everyone
today I revise a little in one routing protocol,
before I revised ,the source code linkes follow:
ch-next_hop_ = -1; //Broadcast address
which means next hop is broadcast address,I want to indicate the next hop,for 
example,the topology likes this
node 0 -   node 1  — node 2 ,so node 0's next hop is node 1
so I revise the code linkes this
if(index_==0)
ch-next_hop_ = 1
else (index_==1)
ch-nedxt_hop_=2
I do this in order to fix the next hop,however,I recompile the ns2,everything 
goes ok,
but I use the same script to do the experimental,
the screen display : segementation fault (core dumped)
I check related website,and get the information that I may visit the memory I 
did not declared,
I think may be I use the node address as the ip address!
could any body tell me why ?
so Urgent!
Varrick

[ns] Segmentation fault (core dumped)

2011-05-01 Thread fauzan prasetyo eka putra

Hi, my friend
my Tcl code for a NS-2 simulation link error model when i run TCL file i get 


$ns script-olsr.tcl
Segmentation fault (core dumped)



Please advice.what i must to do..


Regards

n0mad



Re: [ns] Segmentation fault (core dumped)

2011-05-01 Thread fivos

debug it with eclipse.
http://wcms1.rz.tu-ilmenau.de/fakia/NS2-for-Eclipse.6025.0.html
or
http://hi.baidu.com/karashun/blog/item/cc4038d0f47db2359a50276d.html

On Mon, May 2, 2011 at 12:02 AM, fauzan prasetyo eka putra
n0mad_h...@yahoo.com wrote:

 Hi, my friend
 my Tcl code for a NS-2 simulation link error model when i run TCL file i get


 $ns script-olsr.tcl
 Segmentation fault (core dumped)



 Please advice.what i must to do..


 Regards

 n0mad





[ns] segmentation fault(core dumped) when making

2009-11-13 Thread jiantao Zhou

Hi
*I have installed the ns2 2.31 all in one version on cygwin in Windows Vista
environment.  I've added some modules to ns for my designed routing.Therer
is no error  in making however,when I run the below example, the ns2 will
segmentation fault (core dumped).I use GDB to find where the problem is,and
the GDB gives the information:
*Program received signal SIGSEGV, Segmentation fault.
0x0046370f in Queue::recv (this=0x39ac458, p=0x39d0a40) at
queue/queue.cc:137
137 downtarget_-recv(p, qh_);
Then i use bt to find the detail,it shows:
(gdb) bt
#0  0x0046370f in Queue::recv (this=0x39ac458, p=0x39d0a40)
at queue/queue.cc:137
#1  0x006a7514 in Connector::send (this=0x39af360, p=0x39d0a40, h=0x0)
at ./common/connector.h:56
#2  0x0040dd9d in Trace::recv (this=0x39af360, p=0x39d0a40, h=0x0)
at trace/trace.cc:432
#3  0x006a7514 in Connector::send (this=0x39ae708, p=0x39d0a40, h=0x0)
at ./common/connector.h:56
#4  0x0040c611 in Connector::recv (this=0x39ae708, p=0x39d0a40, h=0x0)
at common/connector.cc:103
#5  0x0040f189 in Classifier::recv (this=0x3999cb0, p=0x39d0a40, h=0x0)
at classifier/classifier.cc:151
#6  0x0041e81b in UdpAgent::sendmsg (this=0x39c5418, nbytes=1000, data=0x0,
flags=0x0) at apps/udp.cc:107
#7  0x006a639a in UdpAgent::sendmsg (this=0x39c5418, nbytes=1000, flags=0x0)
at apps/udp.h:61
#8  0x00414bad in Application::send (this=0x39c5ce8, nbytes=1000)
at apps/app.cc:111
#9  0x0041522c in TrafficGenerator::timeout (this=0x39c5ce8)
at tools/trafgen.cc:74
#10 0x004169a6 in CBR_Traffic::start (this=0x39c5ce8)
at tools/cbr_traffic.cc:101
#11 0x004149b8 in Application::command (this=0x39c5ce8, argc=2,
argv=0x22a22c)

My queue.cc is:
void Queue::recv(Packet* p, Handler*)
{
 double now = Scheduler::instance().clock();
 enque(p);
 //printQueue();
 if (!blocked_) {
  /*
   * We're not blocked.  Get a packet and send it on.
   * We perform an extra check because the queue
   * might drop the packet even if it was
   * previously empty!  (e.g., RED can do this.)
   */
  p = deque();
  if (p != 0) {
   utilUpdate(last_change_, now, blocked_);
   last_change_ = now;
   blocked_ = 1;
   downtarget_-recv(p, qh_);//here I made a change for my routing protocol
  }
 }
}

Thank you very much in advance !


set ns [new Simulator]
$ns color 1 Blue
$ns color 2 Red
set nf [open out.nam w]
$ns namtrace-all $nf
set nd [open out.tr w]
$ns trace-all $nd
proc finish {} {
global ns nf nd
$ns flush-trace
close $nf
close $nd
exec nam out.nam 
exit 0
}

set s1 [$ns node]
set s2 [$ns node]

set r [$ns node]

set d [$ns node]
$ns duplex-link $s1 $r 2Mb 10ms DropTail
$ns duplex-link $s2 $r 2Mb 10ms DropTail
$ns duplex-link $r $d 1.7Mb 20ms DropTail
$ns queue-limit $r $d 10

$ns duplex-link-op $s1 $r orient right-down
$ns duplex-link-op $s2 $r orient right-up
$ns duplex-link-op $r $d orient right
$ns duplex-link-op $r $d queuePos 0.5
set tcp [new Agent/TCP]
$ns attach-agent $s1 $tcp
set sink [new Agent/TCPSink]
$ns attach-agent $d $sink
$ns connect $tcp $sink
$tcp set fid_ 1

set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ftp set type_ FTP

set udp [new Agent/UDP]
$ns attach-agent $s2 $udp
set null [new Agent/Null]
$ns attach-agent $d $null
$ns connect $udp $null
$udp set fid_ 2

set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
$cbr set type_ CBR
$cbr set packet_size_ 1000
$cbr set rate_ 1mb
$cbr set random_ false

$ns at 0.1 $cbr start
$ns at 1.0 $ftp start
$ns at 4.0 $ftp stop
$ns at 4.5 $cbr stop
$ns at 4.5 $ns detach-agent $s1 $tcp ; $ns detach-agent $d $sink
$ns at 5.0 finish
$ns run


[ns] Segmentation fault (core dumped) for ping example

2009-10-11 Thread manoop talasila

 Hi NSusers,

I am new to ns2 and started learing from tutorial. I am using ns-2.34 in
windowsXP thru cygwin. In this version ping example for adding new protocol
comes with it with all settings already made in required files. So, I am
trying to add new protocol named link to ns2 using ns tutorial's
ping example steps.

I just renamed 'ping' with 'link' in the ping example files.

   1. Copied link.cc, link.h files to folder ns-2/apps/
   2. Defined LINK packet type in ns-2/common/packet.h as per the tutorial
   ping example.
   3. Defined default value of LINK agent in ns-2/tcl/lib/ns-default.tcl
   as Agent/Link set packet_size 64
   4. Defined new packet type in ns-packet.tcl
   5. Added apps/link.o in Makefile
   6. under ns2 directory i ran make

And finally, typed $ns link.tcl to run the example script, then i see
below error. I looked into archives and didnot find why this issue is coming
for the ping example.

Why do we see this error.  Segmentation fault (core dumped) means what.
where can i see this stack trace atleat to find where it failed.
Please guide me in right direction to fix this.
I greatly appriciate your help.

Error from my cygwin window:
-
$ ns link.tcl warning: no class variable Agent/Link::packetSize_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/Link::off_link_

warning: no class variable Agent/Link::packetSize_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/Link::off_link_

Segmentation fault (core dumped)
---

 --
Regards,
Manoop Talasila


Re: [ns] segmentation fault (core dumped) using ZRP in ns-2.27

2008-10-04 Thread Mubashir Rehmani

HI Batbold Toiruul,

here is no the solution to *segmentation* *fault*s. From what I've seen on
this list and
in practice, there can be several causes:
1. you deleted a resource from within TCL, causing pointers in C++ to point
to
memory regions no longer in use. Fix: be careful what you delete in TCL.
2. you added or modified the ns2 source code:
a. there is a dependency problem and parts of your source have not been
recompiled. fix: type make clean and make to make ultimately
sure
that all code is within sync with each other
b. your additions are the cause of the memory violation. fix: fix!

how to find the location of your error?
a. first you have to convince your shell to produce a coredump when a
*segmentation* *fault* occurs. Usually this is done with the command
ulimit -c 10 which sets the limit of coredumps to really huge
so that they are allways produced.
b. add -g to the CFLAGS in the Makefile (and Makefile.in to make sure
your change is not removed when you ./configure ns2). This flag says
that
debugging code is compiled into the executable.
c. make clean  make to have the debugging code properly compiled in.

When a *segmentation* *fault* occurs, type: gdb -c core, then in gdb tell
it that you want to load symbols from the ns executable with file ns,
and then you can inspect the stack (bt), select a stack frame (select 0)
and inspect the values of variables in that stack frame. Use the online
help of gdb to get familiar with it.

This link may be useful to you.

http://article.gmane.org/gmane.network.simulator.isi/2766/match=segmentation
+fault


Good luck debugging!

3. May be you are accessing the wrong memory location while declaring your
data structures like linked list, arrays etc

Regards

Mubashir Husain Rehmani

2008/10/4 Batbold Toiruul [EMAIL PROTECTED]


 Dear ns-users,
 I installed Zone Routing Protocol (ZRP) on ns-2.27. However, when i use ZRP
 to run below example, I got the segmentation fault (Core Dumped).
 I don't know why this kind of error is occured. if anyone knows, please
 help
 me.

 thank you very much in advance
 sincerely,
Batbold


 set val(chan)   Ch.annel/WirelessChannel;#Channel Type
 set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
 model
 set val(netif)  Phy/WirelessPhy;# network interface
 type
 set val(mac)Mac/802_11 ;# MAC type
 set val(ifq)Queue/DropTail/PriQueue;# interface queue type
 set val(ll) LL ;# link layer type
 set val(ant)Antenna/OmniAntenna;# antenna model
 set val(ifqlen) 500 ;# max packet in ifq
 set val(nn) 22 ;# number of mobilenodes
 set val(rp) ZRP;# routing protocol
 set val(x)1000
 set val(y)[expr ($val(nn)+1)*250]

 # Initialize Global Variables
 set ns_[new Simulator]
 set tracefd [open mo4.tr w]
 $ns_ trace-all $tracefd

 set namtrace [open mo4.nam w]
 $ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

 # set up topography object
 set topo   [new Topography]

 $topo load_flatgrid $val(x) $val(y)

 # Create God
 create-god $val(nn)

 # New API to config node:
 # 1. Create channel (or multiple-channels);
 # 2. Specify channel in node-config (instead of channelType);
 # 3. Create nodes for simulations.

 # Create channel #1 and #2
 set chan_1_ [new $val(chan)]
 set chan_2_ [new $val(chan)]

 # Create node(0) attached to channel #1

 # configure node, please note the change below.
 $ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace ON \
-channel $chan_1_


 # node_(1) can also be created with the same configuration, or with a
 different
 # channel specified.
 # Uncomment below two lines will create node_(1) with a different channel.
 #  $ns_ node-config \
 # -channel $chan_2_
 #set node_(0) [$ns_ node]
 #set node_(8) [$ns_ node]

 #$node_(0) random-motion 0
 #$node_(8) random-motion 0

 for {set i 0} {$i  $val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0
$ns_ initial_node_pos $node_($i) 20
 }

 #
 # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
 #
 #$node_(0) set X_  500.0
 #$node_(0) set Y_  250.0
 #$node_(0) set Z_ 0.0
 #...
 #$node_(8) set X_  500.0
 #$node_(8) set Y_ 2250.0
 #$node_(8) set Z_ 0.0

 for {set i 0} {$i  10 } {incr i} {
   $node_($i) set X_  750.0
   $node_($i) set Y_ [expr $i*250+5]
   $node_($i) set Z_ 0.0
 }
 for {set i 10} {$i  20 } {incr i} {
   $node_($i) set X_ 250.0
   $node_($i) set 

[ns] segmentation fault (core dumped) using ZRP in ns-2.27

2008-10-03 Thread Batbold Toiruul

Dear ns-users,
I installed Zone Routing Protocol (ZRP) on ns-2.27. However, when i use ZRP
to run below example, I got the segmentation fault (Core Dumped).
I don't know why this kind of error is occured. if anyone knows, please help
me.

thank you very much in advance
sincerely,
Batbold


set val(chan)   Ch.annel/WirelessChannel;#Channel Type
set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
model
set val(netif)  Phy/WirelessPhy;# network interface type
set val(mac)Mac/802_11 ;# MAC type
set val(ifq)Queue/DropTail/PriQueue;# interface queue type
set val(ll) LL ;# link layer type
set val(ant)Antenna/OmniAntenna;# antenna model
set val(ifqlen) 500 ;# max packet in ifq
set val(nn) 22 ;# number of mobilenodes
set val(rp) ZRP;# routing protocol
set val(x)1000
set val(y)[expr ($val(nn)+1)*250]

# Initialize Global Variables
set ns_[new Simulator]
set tracefd [open mo4.tr w]
$ns_ trace-all $tracefd

set namtrace [open mo4.nam w]
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

# set up topography object
set topo   [new Topography]

$topo load_flatgrid $val(x) $val(y)

# Create God
create-god $val(nn)

# New API to config node:
# 1. Create channel (or multiple-channels);
# 2. Specify channel in node-config (instead of channelType);
# 3. Create nodes for simulations.

# Create channel #1 and #2
set chan_1_ [new $val(chan)]
set chan_2_ [new $val(chan)]

# Create node(0) attached to channel #1

# configure node, please note the change below.
$ns_ node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace ON \
-channel $chan_1_


# node_(1) can also be created with the same configuration, or with a
different
# channel specified.
# Uncomment below two lines will create node_(1) with a different channel.
#  $ns_ node-config \
# -channel $chan_2_
#set node_(0) [$ns_ node]
#set node_(8) [$ns_ node]

#$node_(0) random-motion 0
#$node_(8) random-motion 0

for {set i 0} {$i  $val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0
$ns_ initial_node_pos $node_($i) 20
}

#
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
#
#$node_(0) set X_  500.0
#$node_(0) set Y_  250.0
#$node_(0) set Z_ 0.0
#...
#$node_(8) set X_  500.0
#$node_(8) set Y_ 2250.0
#$node_(8) set Z_ 0.0

for {set i 0} {$i  10 } {incr i} {
   $node_($i) set X_  750.0
   $node_($i) set Y_ [expr $i*250+5]
   $node_($i) set Z_ 0.0
}
for {set i 10} {$i  20 } {incr i} {
   $node_($i) set X_ 250.0
   $node_($i) set Y_ [expr ($i-10)*250+5]
   $node_($i) set Z_ 0.0
}

$node_(20) set X_ 500.0
$node_(20) set Y_ 5.0
$node_(20) set Z_ 0.0

$node_(21) set X_ 500.0
$node_(21) set Y_ 505.0
$node_(21) set Z_ 0.0

#for {set i 0} {$i  3} {incr i} {
  #for {set j 0} {$j  3} {incr j} {
#$node_([expr $i+$j*3]) set X_ [expr $i*250]
#$node_([expr $i+$j*3]) set Y_ [expr $j*250]
#$node_([expr $i+$j*3]) set Z_ 0.0
  #}
#}


# Now produce some simple node movements
# Node_(1) starts to move towards node_(0)
#
#$ns_ at 3.0 $node_(5) setdest 100.0 500.0 05.0
#$ns_ at 100.0 $node_(5) setdest 100.0 500.0 00.0
#$ns_ at 200.0 $node_(5) setdest 005.0 700.0 05.0
#$ns_ at 3.0 $node_(0) setdest 48.0 38.0 5.0

# Node_(1) then starts to move away from node_(0)
#$ns_ at 20.0 $node_(1) setdest 490.0 480.0 30.0

# Setup traffic flow between nodes
#TCP connections between node_(0) and node_(1)

set udp [new Agent/UDP]
$udp set fid_ 2
set sink [new Agent/Null]
$ns_ attach-agent $node_(10) $udp
$ns_ attach-agent $node_(9) $sink
$ns_ connect $udp $sink

set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
$cbr set type_ CBR
$cbr set packet_size_ 100
$cbr set rate_ 10kb
$cbr set random_ false
$ns_ at 10.0 $cbr start
$ns_ at 100.0 $cbr stop

#set tcp [new Agent/TCP]
#$tcp set class_ 1
#$tcp set fid_ 2
#set sink [new Agent/TCPSink]
#$ns_ attach-agent $node_(2) $tcp
#$ns_ attach-agent $node_(5) $sink
#$ns_ connect $tcp $sink

#set ftp [new Application/FTP]
#$ftp attach-agent $tcp
#$ftp set type_ FTP
#$ns_ at 23.0 $ftp start
#$ns_ at 173.0 $ftp stop

Mac/802_11 set dataRate_ 1Mb

for {set i 0} {$i  $val(nn) } {incr i} {
 set r_($i) [$node_($i) set ragent_]
  $ns_ at 0.0 $r_($i) radius 2.0
 # @@@ $ns_ at 0.4 $r_($i) beacon_period 12.0
 # @@@ $ns_ at 0.0 $r_($i) radius 1.0
 }

#
# Tell nodes when the simulation ends
#
for {set i 0} {$i  $val(nn) } {incr i} {
$ns_ at 100.0 $node_($i) reset;
}
$ns_ at 100.0 stop

[ns] segmentation fault (core dumped) in ns-2.27

2008-10-02 Thread Batbold Toiruul

Dear ns-users,
I installed ZRP on ns-2.27. However, when I using ZRP to run example, the
ns2 will segmentation fault (core dumped).
*if *anyone knows about this error, help me

thank you for helping

sincerely,
   Bold
*
*


Re: [ns] segmentation fault (core dumped) in ns-2.27

2008-10-02 Thread Rithu


The fault occured due to a part of code making invalid access to memory (
obviously ! ) but inorder to know which part of the code.. pl install gdb in
ns.. so that when you run  'x.tcl' you will be able to get loads of info
which might help you to spot which part of code leads to seg fault.
 

Batbold Toiruul-2 wrote:
 
 
 Dear ns-users,
 I installed ZRP on ns-2.27. However, when I using ZRP to run example, the
 ns2 will segmentation fault (core dumped).
 *if *anyone knows about this error, help me
 
 thank you for helping
 
 sincerely,
Bold
 *
 *
 
 

-- 
View this message in context: 
http://www.nabble.com/segmentation-fault-%28core-dumped%29-in-ns-2.27-tp19775436p19777041.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] segmentation fault(core dumped) error

2008-03-14 Thread SS Mukaka

I'm having problems with the above mentioned error when the number of nodes
in my simulation is more than 30.
I'm simulating my own protocol and it works well  with nodes less than 30...


Regards...


Re: [ns] segmentation fault(core dumped) error

2008-03-14 Thread Arturo Servin


I have 69 nodes, it was working well until yesterday that I added one  
line to create a new variable. After the value set up the simulation  
crash around the middle, if I remove the line, it works well. The  
offending line could be something as silly as:

set dummy 0

I wonder if any body knows any limits in the number of nodes (as the  
original e-mail), number of procedures, variables that the ns can  
handle in a tcl script.

Thanks,
-as
On 14 Mar 2008, at 05:59, SS Mukaka wrote:


 I'm having problems with the above mentioned error when the number  
 of nodes
 in my simulation is more than 30.
 I'm simulating my own protocol and it works well  with nodes less  
 than 30...


 Regards...



[ns] segmentation fault(core dumped)

2008-03-08 Thread SS Mukaka

I have written and compiled a new protocol for NS2 When I'm running my
tcl script i get this error message before the simulation ends [segmentation
fault (core dumped)]

I have noted also that my nodes are able to send packets but they are not
receiving... i dont know if there is a connection between these two errors.


Please help


[ns] Segmentation fault (core dumped)

2008-01-02 Thread muhamad faiz arief budianto

Segmentation fault (core dumped)
what is it? after googling , it's about memory.
but how to solve it
HELP!!

-- 
jho


Re: [ns] Segmentation fault (core dumped)

2007-08-02 Thread wayan mustika

Please check your tcl script, if you are using DSR routing protocol you must 
set the interface queue type with CMUPriQueue.

Instead of,
set opt(ifq)Queue/DropTail/PriQueue;
use:
set opt(ifq)CMUPriQueue;

Hope this helps!

Regards,
Wayan

Onyekachi [EMAIL PROTECTED] wrote: 
Hello NS-Users,
Please I need urgent help concerning the above-named subject.
I am trying to run a DSR ad-hoc simulation involving 3 mobile nodes. the 
tcl script briefly runs but suddenly terminates with the following 
error: Segmentation fault (core dumped)
i would appreciate any help to resolve this.

regards.

Kachi.



   
-
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.


Re: [ns] Segmentation fault (core dumped)

2007-07-13 Thread Onyekachi

Hello NS-Users,
Please I need urgent help concerning the above-named subject.
I am trying to run a DSR ad-hoc simulation involving 3 mobile nodes. the 
tcl script briefly runs but suddenly terminates with the following 
error: Segmentation fault (core dumped)
i would appreciate any help to resolve this.

regards.

Kachi.



[ns] segmentation fault(core dumped)

2006-08-28 Thread Tufan BIYIKTAS

Hi,

 

I have downloaded and setup ns-allinone-2.26 with cygwin and made some
changes to run Ping Agent as it was described at HYPERLINK
http://www.isi.edu/nsnam/ns/tutorial/http://www.isi.edu/nsnam/ns/tutorial/
I can run the example script in the website. Also I can run other scripts I
wrote.

 

Then I tried to write a script and it  became a very big problem for me.
When I try to run it says segmentation fault(core dumped) and I could not
solve the problem.

 

I hope somebody can help me :)

 

Thanks for your time and attention 

 

 

Sincerely ...

 

R.A. Tufan BIYIKTAŞ

 



#TCL CODE HERE 



# CHECK COMMAND LINE PARAMETERS

if { $argc!=6} {

  puts Missing parameters!!! 

  puts ns ptrain.tcl initial_gap_time ms packet_size byte
train_length train_number result_filename simulation_time sec

  exit 1

}

 

# GET COMMAND LINE PARAMETERS

set initialGapTime [lindex $argv 0]

set packetSize [lindex $argv 1]

set trainLength[lindex $argv 2]

set trainNumber[lindex $argv 3]

set resultFileName [lindex $argv 4]

set simulationTime [lindex $argv 5]

 

# --- GLOBAL VARIABLES --- #

set startSendTime 0.20

set trafficPacketSize 800

set trafficSourceInterval 0.001950

set trafficRate1Mb

 

set nodeNumber 6

 

set topoDimX 600

set topoDimY 600

 

set pingSenderNodeX 50 

set pingSenderNodeY 50

set pingSenderNodeY 0

 

set pingReceiverNodeX 500

set pingReceiverNodeY 350

set pingReceiverNodeZ 0

 

set leftGatewayNodeX 200

set leftGatewayNodeY 200

set leftGatewayNodeZ 0

 

set rightGatewayNodeX 400

set rightGatewayNodeY 200

set rightGatewayNodeZ 0

 

set trafficSenderNodeX 50

set trafficSenderNodeY 350

set trafficSenderNodeZ 0

 

set trafficReceiverNodeX 550

set trafficReceiverNodeY 50

set trafficReceiverNodeZ 0

 

# CREATE SIMULATOR OBJECT

set ns [new Simulator]

 

# CREATE FILES (NAM, TRACE, RESULT)

set namfile [open out.nam w]

set trfile  [open out.tr  w]

set resultFile [open $resultFileName w]

 

# --- SETUP WIRESLESS ENVIROMENT --- #

 

# CREATE NEW TOPOLOGRAPH OBJECT

set topography [new Topography]

 

$ns trace-all $trfile

$ns namtrace-all-wireless $namfile $topoDimX $topoDimY

 

$topography load_flatgrid $topoDimX $topoDimY

 

# CREATE GOD

set god_ [create-god $nodeNumber]

 

# GLOBAL NODE SETTINGS

$ns node-config -adhocRouting DSR \

 -llType LL \

 -macType Mac/802_11 \

 -ifqType Queue/DropTail/PriQueue \

 -ifqLen 50 \

 -antType Antenna/OmniAntenna \

 -propType Propagation/TwoRayGround \

 -phyType Phy/WirelessPhy \

 -channel [new Channel/WirelessChannel] \

 -topoInstance $topography \

 -agentTrace ON \

 -routerTrace OFF \

 -macTrace ON

 

# CREATE WIRELESS NODES

set pingSenderNode   [$ns node]

set pingReceiverNode [$ns node]

set leftGatewayNode  [$ns node]

set rightGatewayNode [$ns node]

set trafficSenderNode [$ns node]

set trafficReceiverNode [$ns node]

 

# PING SENDER NODE

$pingSenderNode set X_ $pingSenderNodeX

$pingSenderNode set Y_ $pingSenderNodeX

$pingSenderNode set Z_ $pingSenderNodeX

 

# PING RECEIVER NODE

$pingReceiverNode set X_ $pingReceiverNodeX

$pingReceiverNode set Y_ $pingReceiverNodeY

$pingReceiverNode set Z_ $pingReceiverNodeZ

 

# LEFT GATEWAY NODE

$leftGatewayNode  set X_ $leftGatewayNodeX

$leftGatewayNode  set Y_ $leftGatewayNodeY

$leftGatewayNode  set Z_ $leftGatewayNodeZ

 

# RIGHT GATEWAY NODE

$rightGatewayNode  set X_ $rightGatewayNodeX

$rightGatewayNode  set Y_ $rightGatewayNodeY

$rightGatewayNode  set Z_ $rightGatewayNodeZ

 

# TRAFFIC SENDER NODE

$trafficSenderNode set X_ $trafficSenderNodeX $trafficSenderNode set Y_
$trafficSenderNodeY $trafficSenderNode set Z_ $trafficSenderNodeZ

 

# TRAFFIC RECEIVER NODE

$trafficReceiverNode set X_ $trafficReceiverNodeX $trafficReceiverNode set
Y_ $trafficReceiverNodeY $trafficReceiverNode set Z_ $trafficReceiverNodeZ

 

 

#Define a 'recv' function for the class 'Agent/Ping'

Agent/Ping instproc recv {from rtime stime} {

  $self instvar node_

global resultFile

 

  puts  $resultFile $rtime $stime

 

  #puts node [$node_ id] received ping answer from \

#  $from with round-trip-time $rtime $stime ms.

}

 

# --- CREATE AGENTS --- #

 

# CREATE PING AGENT

set pingAgent [new Agent/Ping]

$ns attach-agent $pingSenderNode $pingAgent

 

# CREATE ECHO AGENT

set echoAgent [new Agent/Ping]

$ns attach-agent $pingReceiverNode $echoAgent

 

# CREATE CROSS TRAFFIC SENDER AGENT

set trafficSenderAgent [new Agent/UDP]

$ns attach-agent  $trafficSenderNode $trafficSenderAgent

 

 

# CREATE CROSS TRAFFIC RECEIVER AGENT

set trafficReceiverAgent [new 

Re: [ns] segmentation fault(core dumped)

2006-08-28 Thread Touseef Liaqat

This problem has been addressed many times in this list. See 
http://mailman.isi.edu/pipermail/ns-users/2003-August/034824.html for solution.

You can not use DSR and Queue/DropTail/PriQueue at the same time instead 
use CMUPriQueue as ifqType.


Best Regards,
Touseef Liaqat


Tufan BIYIKTAS [EMAIL PROTECTED] wrote: 
Hi,

 

I have downloaded and setup ns-allinone-2.26 with cygwin and made some
changes to run Ping Agent as it was described at HYPERLINK
http://www.isi.edu/nsnam/ns/tutorial/http://www.isi.edu/nsnam/ns/tutorial/
I can run the example script in the website. Also I can run other scripts I
wrote.

 

Then I tried to write a script and it  became a very big problem for me.
When I try to run it says segmentation fault(core dumped) and I could not
solve the problem.

 

I hope somebody can help me :)

 

Thanks for your time and attention 

 

 

Sincerely ...

 

R.A. Tufan BIYIKTAª

 



#TCL CODE HERE 



# CHECK COMMAND LINE PARAMETERS

if { $argc!=6} {

  puts Missing parameters!!! 

  puts ns ptrain.tcl  

   

  exit 1

}

 

# GET COMMAND LINE PARAMETERS

set initialGapTime [lindex $argv 0]

set packetSize [lindex $argv 1]

set trainLength[lindex $argv 2]

set trainNumber[lindex $argv 3]

set resultFileName [lindex $argv 4]

set simulationTime [lindex $argv 5]

 

# --- GLOBAL VARIABLES --- #

set startSendTime 0.20

set trafficPacketSize 800

set trafficSourceInterval 0.001950

set trafficRate1Mb

 

set nodeNumber 6

 

set topoDimX 600

set topoDimY 600

 

set pingSenderNodeX 50 

set pingSenderNodeY 50

set pingSenderNodeY 0

 

set pingReceiverNodeX 500

set pingReceiverNodeY 350

set pingReceiverNodeZ 0

 

set leftGatewayNodeX 200

set leftGatewayNodeY 200

set leftGatewayNodeZ 0

 

set rightGatewayNodeX 400

set rightGatewayNodeY 200

set rightGatewayNodeZ 0

 

set trafficSenderNodeX 50

set trafficSenderNodeY 350

set trafficSenderNodeZ 0

 

set trafficReceiverNodeX 550

set trafficReceiverNodeY 50

set trafficReceiverNodeZ 0

 

# CREATE SIMULATOR OBJECT

set ns [new Simulator]

 

# CREATE FILES (NAM, TRACE, RESULT)

set namfile [open out.nam w]

set trfile  [open out.tr  w]

set resultFile [open $resultFileName w]

 

# --- SETUP WIRESLESS ENVIROMENT --- #

 

# CREATE NEW TOPOLOGRAPH OBJECT

set topography [new Topography]

 

$ns trace-all $trfile

$ns namtrace-all-wireless $namfile $topoDimX $topoDimY

 

$topography load_flatgrid $topoDimX $topoDimY

 

# CREATE GOD

set god_ [create-god $nodeNumber]

 

# GLOBAL NODE SETTINGS

$ns node-config -adhocRouting DSR \

 -llType LL \

 -macType Mac/802_11 \

 -ifqType Queue/DropTail/PriQueue \

 -ifqLen 50 \

 -antType Antenna/OmniAntenna \

 -propType Propagation/TwoRayGround \

 -phyType Phy/WirelessPhy \

 -channel [new Channel/WirelessChannel] \

 -topoInstance $topography \

 -agentTrace ON \

 -routerTrace OFF \

 -macTrace ON

 

# CREATE WIRELESS NODES

set pingSenderNode   [$ns node]

set pingReceiverNode [$ns node]

set leftGatewayNode  [$ns node]

set rightGatewayNode [$ns node]

set trafficSenderNode [$ns node]

set trafficReceiverNode [$ns node]

 

# PING SENDER NODE

$pingSenderNode set X_ $pingSenderNodeX

$pingSenderNode set Y_ $pingSenderNodeX

$pingSenderNode set Z_ $pingSenderNodeX

 

# PING RECEIVER NODE

$pingReceiverNode set X_ $pingReceiverNodeX

$pingReceiverNode set Y_ $pingReceiverNodeY

$pingReceiverNode set Z_ $pingReceiverNodeZ

 

# LEFT GATEWAY NODE

$leftGatewayNode  set X_ $leftGatewayNodeX

$leftGatewayNode  set Y_ $leftGatewayNodeY

$leftGatewayNode  set Z_ $leftGatewayNodeZ

 

# RIGHT GATEWAY NODE

$rightGatewayNode  set X_ $rightGatewayNodeX

$rightGatewayNode  set Y_ $rightGatewayNodeY

$rightGatewayNode  set Z_ $rightGatewayNodeZ

 

# TRAFFIC SENDER NODE

$trafficSenderNode set X_ $trafficSenderNodeX $trafficSenderNode set Y_
$trafficSenderNodeY $trafficSenderNode set Z_ $trafficSenderNodeZ

 

# TRAFFIC RECEIVER NODE

$trafficReceiverNode set X_ $trafficReceiverNodeX $trafficReceiverNode set
Y_ $trafficReceiverNodeY $trafficReceiverNode set Z_ $trafficReceiverNodeZ

 

 

#Define a 'recv' function for the class 'Agent/Ping'

Agent/Ping instproc recv {from rtime stime} {

  $self instvar node_

global resultFile

 

  puts  $resultFile $rtime $stime

 

  #puts node [$node_ id] received ping answer from \

#  $from with round-trip-time $rtime $stime ms.

}

 

# --- CREATE AGENTS --- #

 

# CREATE PING AGENT

set pingAgent [new Agent/Ping]

$ns attach-agent $pingSenderNode $pingAgent

 

# CREATE ECHO AGENT

set echoAgent [new Agent/Ping]

$ns attach-agent $pingReceiverNode 

[ns] segmentation fault(core dumped)

2006-02-14 Thread Yaser Mahmood


i have made a simple wireless ad hoc networks with 50 nodes,1000s simulation 
time..but there is a fault not allowed to run the program for 1000s and program 
is terminated with a fault known as segmentation fault(core dumped)..please any 
one can help me..

yas..



Re: [ns] segmentation fault(core dumped)

2006-02-14 Thread Michael Sidiropoulos


Hello Yaser,
I think you have run out of memory.
Try save some by disabling some trace options from your trace
file( you can do that from your tcl script).
Another suggestion would be to disable some packet headers
Look for this at chapter 12 in the ns-2 manual as ns includes
all packets headers of all protocols in every packet by default.
This a lot of overhead.
Another idea also would be to use also hierarchical routing
( look in chapter 29).This is a way to reduce memory requirements
for your simulation.

Hope the above will help you!
regards,
 Michael 
 




  

Yaser Mahmood [EMAIL PROTECTED] έγραψε:  

i have made a simple wireless ad hoc networks with 50  nodes,1000s simulation 
time..but there is a fault not allowed to run  the program for 1000s and 
program is terminated with a fault known as  segmentation fault(core 
dumped)..please any one can help me..

yas..




-
 Χρησιμοποιείτε Yahoo!
 Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την 
καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
 http://login.yahoo.com/config/mail?.intl=gr