[ns] [bug] Floating point exception in null.tcl example

Alexander Sayenko sayenko at cc.jyu.fi
Tue Sep 20 02:46:44 PDT 2005


[Bug Report]

-----------------------------
Category:  Run Time - Segmentation Fault
Package:   ns 2.28
OS:        Linux
Environment Variables:
LD_LIBRARY_PATH=
TCL_LIBRARY=
TK_LIBRARY=


-----------------------------
Description:

Description of Problem:

Every time one runs the null.tcl example from the DiffServ framework, the floating-point exception is generated

How Easily Reproducible:
(e.g. every time, intermittent, once only, etc.)

Every time

Steps to Reproduce:
(describe the minimal set of steps necessary to trigger the bug)
1. Run "ns null.tcl"
2. 
3. 


Actual Results:
(describe what the application did after performing the above steps)

"Floating point exception"

Expected Results:
(describe what the application should have done, were the bug not present)

Normal execution of a script and a table with the number of transmitted packets

Additional Information:
(the following infomation is helpful to debug:

Here is the patch file that fixes the problem.

--- null.tcl	Wed Jun 22 13:17:57 2005
+++ null.tcl	Wed Jun 22 13:25:25 2005
@@ -48,6 +48,7 @@
 
 # -------------------------------------------------
 $qBC set NumQueues_ 1
+$qBC meanPktSize 210
 $qBC setNumPrec 2
 
 $qBC addPolicyEntry [$client id] [$server id] TokenBucket 10 $cir 500
@@ -65,6 +66,7 @@
 # -------------------------------------------------
 
 $qCS set NumQueues_ 1
+$qCS meanPktSize 210
 $qCS setNumPrec 2
 
 $qCS addPHBEntry 10 0 0





More information about the Ns-users mailing list