[ns] floating point exception

Motaz K. Saad motaz.saad at gmail.com
Tue May 6 09:03:56 PDT 2008


Thanks for reply.

Yes, it is divide by zero error (the dumb file is below).

I am trying to anticipate what I wrote in the tcl code that lead to divide
by zero operation.

ion: STATUS_FLOAT_DIVIDE_BY_ZERO at eip=00532A23
eax=00CF5B10 ebx=00CF7998 ecx=00CF5BA8 edx=00CF5B00 esi=0022B310
edi=0022B370
ebp=0022B0C8 esp=0022B0C4
program=C:\cygwin\home\motaz\ns-2\ns-allinone-2.32\ns-2.32\ns.exe, pid 3764,
thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022B0C8  00532A23  (00CF5B00, 00000000, 412E8480, 00000000)
0022B0E8  0053030F  (00CF5A78, 007A4137, 00000000, 00000209)
0022B108  004087C4  (00CF5A78, 00000002, 0022B31C, 004087C4)
0022B128  0040C5E5  (00CF5A78, 00000002, 0022B31C, 0040C5E5)
0022B158  00531A49  (00CF5A78, 00000002, 0022B31C, 0022B1D8)
0022B178  0053326F  (00CF5A78, 00000002, 0022B31C, 00000003)
0022B198  005B3086  (00CF5A78, 00A82090, 00000005, 0022B310)
0022B348  005B67D2  (00CF2768, 00A82090, 00000003, 0022B370)
0022B3D8  005C2537  (00CF2820, 00A82090, 00000003, 00A844A4)
0022B428  005C353F  (00A82090, 00000003, 00A844A4, 00000000)
0022B5F8  005EA2A5  (00A82090, 00D0F7D8, 0022B628, 005D20B7)
0022B628  005E997C  (00A82090, 00D0D098, 00000005, 00000000)
0022B7F8  005EA37E  (00A82090, 00B39C08, 0022B828, 005D8386)
0022B828  005E997C  (00A82090, 00A8B528, 00A8AC18, 00000001)
0022BB48  005D67E5  (00A965B8, 00A82090, 00000005, 0022BB70)
0022BBD8  005D630D  (00A965B8, 00A82090, 00000005, 0022BC90)
End of stack trace (more stack frames may be present)

On Tue, May 6, 2008 at 6:27 PM, Bethel Mutanga <bethelmutanga at gmail.com>
wrote:

> I dont think the error is coming from TRCL but its coming C++ code of your
> protocol... (if you have implemented your own protocol).
> I think its a rin time error coming from some calculations that are done
> during simulation.
> One example could be division by zero...
>
> On 5/6/08, Motaz K. Saad <motaz.saad at gmail.com> wrote:
> >
> >
> > Hello,
> >
> > I got the error message "Floating point exception (core dumped)" when I
> > run
> > my simulator on the TCL file. Is there any why to determine where is the
> > problem is the TCL code??!
> >
> > Any help would be appreciated
> > --
> > Motaz K. Saad
> >
>
>
>
> --
> Bethel Mutanga
> Centre for Mobile e-services
> Cell: +27722657439
> Tel: +27359026706
> -------------------------------------------------------
> "My grandfather once told me that there are two kinds of people: those who
> work and those who take the credit. He told me to try to be in the first
> group; there was less competition there."
>



-- 
Motaz K. Saad


More information about the Ns-users mailing list