[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Bug in ns-2.1b7?




 Thank you so much!!...i thought i was the only one who had observed this
bug...i had written apost earlier about this but it seemed no one else got
the problem...

I also wrote to debjyoti and he said that it was the users responsibility
to initilaise rng.....i compromised by adding the line rng_ as the first
line of the method command in pareto.cc and recompiled...no problems
since....

-Vikram


 > I think there is a bug in the modification introduced in
October 2000 > at pareto.cc.
> 
> The new member variable rng_ at the POO_Traffic class is uninitialised
> if the user does not specify his own RNG object, promoting a
> segmentation fault while running simulations which use the traffic
> generates according to a Pareto On/Off distribution.
> 
> This problem arises running ns-2.1b7 in an i386 Linux RedHat-7.0
> 
> The following patch resolves this problem:
> 
>     --- ../ns-2.1b7.orig/pareto.cc  Fri Oct 13 16:05:13 2000
>     +++ ./pareto.cc Sun Mar 18 19:08:20 2001
>     @@ -96,6 +96,7 @@
>             bind_bw("rate_", &rate_);
>             bind("shape_", &shape_);
>             bind("packetSize_", &size_);
>     +       rng_ = NULL;
>      }
>      
>      void POO_Traffic::init()
> 
> 
> Germ�n Madinabeitia Luque
> �rea de Ingenier�a Telem�tica
> Universidad de Sevilla
> SPAIN
> 
> 

-- 

Department of ECE, Rice University | 713 348 3786 (O)| 713 664 5650(H)
WWW: http://www.ece.rice.edu/~kanodia