[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Bug in ns-2.1b7?
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