[Bug Report]
-----------------------------
Category: Run Time - Segmentation Fault
Package: ns 2.31
OS: Ubuntu 7.04
Environment Variables:
LD_LIBRARY_PATH=
TCL_LIBRARY=
TK_LIBRARY=
-----------------------------
Description:
Description of Problem:
I am using ns-2 2.31 to simulate. My idea is to to disable some mobile
in the middle of the simulation. I found there is a method: $node
node-down. But every time I use this method, the tcl script got no
error. However, when it runing to the half of the simulation time, an
error popped out:
ns: _o14 node-down:
(_o19 cmd line 1)
invoked from within
"_o19 cmd node-down"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o19" line 2)
(SplitObject unknown line 2)
invoked from within
"$mac_(0) node-down"
(procedure "_o14" line 3)
(Node/MobileNode node-down line 3)
invoked from within
"_o14 node-down"
How Easily Reproducible: every time
(e.g. every time, intermittent, once only, etc.)
Steps to Reproduce:
(describe the minimal set of steps necessary to trigger the bug)
1. using wireless example tcl : ~/ns-2.31/tcl/ex/wireless-dsdv-newmodel.tcl
2. add: $ns_ at 10.0 "$node_(0) node-down"
3. run the script
Actual Results:
(describe what the application did after performing the above steps)
Expected Results:
(describe what the application should have done, were the bug not present)
Additional Information:
(the following infomation is helpful to debug:
1. simulation script, detailed output files, packet trace
2. patch file if you modify some source code
3. a backtrace from gdb if you get a segment fault
If they are big files, PLEASE put them in your web space and
include the URL here.)