Good people,

I am having a strange experience with NS2.34 on Ubuntu 12.04. I installed
pretty well; the validation went on fine and I could run all sorts of
simulations. I have now added a new protocol. I have run sudo ./configure,
make clean, and make. It has compiled nicely. But the validation no longer
works. It gives segmentation error for all the tests.

When I debug using GDB and run simple.tcl, I get the following error:

> Program received signal SIGSEGV, Segmentation fault.
> 0x082509ba in BiConnector::downtarget (this=0x0) at
> ./common/bi-connector.h:49
> 49        NsObject* downtarget() { return downtarget_; }
>

When I debug using GDB and run wireless.tcl, I get the following error:

> Starting program: /home/clement/NS2/bin/ns wireless.tcl
> num_nodes is set 50
> INITIALIZE THE LIST xListHead
> can't read "ragent_": no such variable
>     while executing
> "$ragent_ add-ll $ll_($t)"
>     (procedure "_o15" line 235)
>     (Object next line 235)
>     invoked from within
> "_o15 next _o11 _o12 LL Mac/802_11 CMUPriQueue 50 Phy/WirelessPhy
> Antenna/OmniAntenna _o13 {} {} {}"
>     ("eval" body line 1)
>     invoked from within
> "eval $self next $args"
>     (procedure "_o15" line 4)
>     (SRNode add-interface line 4)
>     invoked from within
> "$node add-interface $chan $prop $opt(ll) $opt(mac)      $opt(ifq)
> $opt(ifqlen) $opt(netif) $opt(ant) $topo  $inerrProc_ $outerrProc_
> $FECProc_ "
>     (procedure "dsr-create-mobile-node" line 31)
>     invoked from within
> "dsr-create-mobile-node $i"
>     invoked from within
> "if { [string compare $opt(rp) "dsr"] == 0} {
>     for {set i 0} {$i < $opt(nn) } {incr i} {
>         dsr-create-mobile-node $i
>     }
> } elseif { [string compare $op..."
>     (file "wireless.tcl" line 242)
>

I know its something to do with memory access violation, but I do not have
any clue as to how I can sort it out. If someone can give me some help, I
will really appreciate.

Kindest regards,

Clement

Reply via email to