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

ns-2 apparent bug



The script http-mod-ex core dumps:

1.396291e+00     1       1       1       0.10000000000000001
5.000000e+00     2       11      2       0.20000000000000001
Segmentation fault (core dumped)        

uname -a:
Linux localhost.localdomain 2.2.5-22 #1 Wed Jun 2 09:17:03 EDT 1999 i686 unknown


(xxgdb) print * sf
Cannot access memory at address 0x3ec.

Output of bt (backtrace):

#0  0x8064a68 in TcpSink::ack (this=0x8411f28, opkt=0x84086d0) at tcp-sink.cc:165
#1  0x8064d29 in TcpSink::recv (this=0x8411f28, pkt=0x84086d0) at tcp-sink.cc:202
#2  0x80544bf in Classifier::recv (this=0x8413720, p=0x84086d0, h=0x0) at classifier.cc:135
#3  0x80544bf in Classifier::recv (this=0x82d8b90, p=0x84086d0, h=0x0) at classifier.cc:135
#4  0x80529a3 in Connector::send (this=0x83d19a8, p=0x84086d0, h=0x0) at connector.h:54
#5  0x8053720 in Trace::recv (this=0x83d19a8, p=0x84086d0, h=0x0) at trace.cc:375
#6  0x80529a3 in Connector::send (this=0x83cfa20, p=0x84086d0, h=0x0) at connector.h:54
#7  0x81007d1 in TTLChecker::recv (this=0x83cfa20, p=0x84086d0, h=0x0) at ttl.cc:81
#8  0x804f281 in NsObject::handle (this=0x83cfa20, e=0x84086d0) at object.cc:109
#9  0x804d574 in Scheduler::dispatch (this=0x82a9890, p=0x84086d0, t=0.28693333333333332) at scheduler.cc:102
#10 0x804d59d in Scheduler::dispatch (this=0x82a9890, p=0x84086d0) at scheduler.cc:108
#11 0x804d4dd in Scheduler::run (this=0x82a9890) at scheduler.cc:84
#12 0x804d678 in Scheduler::command (this=0x82a9890, argc=2, argv=0xbfffdb9c) at
scheduler.cc:138
#13 0x80b8b6d in TclClass::dispatch_cmd () at gen/ptypes.cc:104
#14 0x80badfc in OTclDispatch (cd=0x82ca320, in=0x8239708, argc=3, argv=0xbfffdbd8) at otcl.c:421
#15 0x80beec4 in TclInvokeStringCommand () at gen/ptypes.cc:104
#16 0x80d6984 in TclExecuteByteCode () at gen/ptypes.cc:104
#17 0x80bf6cc in Tcl_EvalObj () at gen/ptypes.cc:104
#18 0x80d6b87 in TclExecuteByteCode () at gen/ptypes.cc:104
#19 0x80bf6cc in Tcl_EvalObj () at gen/ptypes.cc:104
#20 0x80f216c in TclObjInterpProc () at gen/ptypes.cc:104
#21 0x80f1da0 in TclProcInterpProc () at gen/ptypes.cc:104
#22 0x80baf8b in OTclDispatch (cd=0x82ca320, in=0x8239708, argc=2, argv=0xbfffe8d8) at otcl.c:464
#23 0x80beec4 in TclInvokeStringCommand () at gen/ptypes.cc:104
#24 0x80d6984 in TclExecuteByteCode () at gen/ptypes.cc:104
#25 0x80bf6cc in Tcl_EvalObj () at gen/ptypes.cc:104
#26 0x80f216c in TclObjInterpProc () at gen/ptypes.cc:104
#27 0x80f1da0 in TclProcInterpProc () at gen/ptypes.cc:104
#28 0x80badfc in OTclDispatch (cd=0x82da5d8, in=0x8239708, argc=2, argv=0xbffff1fc) at otcl.c:421
#29 0x80beec4 in TclInvokeStringCommand () at gen/ptypes.cc:104
#30 0x80d6984 in TclExecuteByteCode () at gen/ptypes.cc:104
#31 0x80bf6cc in Tcl_EvalObj () at gen/ptypes.cc:104
#32 0x80e7cec in Tcl_EvalFile () at gen/ptypes.cc:104
#33 0x80e9a63 in Tcl_Main () at gen/ptypes.cc:104
#34 0x804ae95 in main (argc=2, argv=0xbffffcd4) at tclAppInit.cc:60
#35 0x4014fcb3 in __libc_start_main (main=0x804ae80 <main>, argc=2, argv=0xbffffcd4, init=0x804a308 <_init>, fini=0x81171b8 <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffccc) at ../sysdeps/generic/libc-start.c:78

(xxgdb) info all-registers
     eax:      0x3f3        1011
     ecx:      0x3f3        1011
     edx:      0x3ec        1004
     ebx:  0x8409e10   138452496
     esp: 0xbfffd85c -1073751972
     ebp: 0xbfffd8c8 -1073751864
     esi:  0x8409e00   138452480
     edi:  0x83d19a8   138221992
     eip:  0x8064a68   134629992
  eflags:    0x10286 IOPL: 0; flags: PF SF IF RF
orig_eax: 0xffffffff          -1
      cs:       0x23          35
      ss:       0x2b          43
      ds:       0x2b          43
      es:       0x2b          43
      fs:       0x2b          43
      gs:       0x2b          43
     st0: 0x3fe4d10b460000000000  Empty Normal 1.216796441383394267177e-08
     st1: 0xbfff8000000000000000  Empty Normal -1
     st2: 0x3fe4d10b460000000000  Empty Normal 1.216796441383394267177e-08
     st3: 0xbfff8000000000000000  Empty Normal -1
     st4: 0x3ffda85f1ba19ea57000  Empty Normal 0.3288506159581839893846
     st5: 0x3ffe8000000000000000  Empty Normal 0.5
     st6: 0x4012f424000000000000  Empty Normal 1000000
     st7: 0x3ffcccccccccccccd000  Empty Normal 0.2000000000000000111022
  fctrl:     0x037f 64 bit; NEAR; mask INVAL DENOR DIVZ OVERF UNDER LOS;
   fstat:     0x0020 flags 0000; top 0; excep LOS
    ftag:     0xffff
     fip: 0x080649a5
     fcs: 0x05190023
  fopoff: 0x08409e08
  fopsel:     0x002b

Attached is validate.nam
V -t * -v 1.0a5 -a 0
A -t * -n 1 -p 0 -o 16777215 -c 30 -a 1
A -t * -h 1 -m 63 -s 24
c -t * -i 17 -n black
c -t * -i 18 -n blue
c -t * -i 1 -n red
c -t * -i 20 -n green
c -t * -i 19 -n red
c -t * -i 2 -n green
c -t * -i 21 -n yellow
c -t * -i 3 -n yellow
c -t * -i 22 -n brown
c -t * -i 4 -n brown
c -t * -i 23 -n black
c -t * -i 5 -n black
c -t * -i 24 -n blue
c -t * -i 6 -n blue
c -t * -i 25 -n red
c -t * -i 7 -n red
c -t * -i 26 -n green
c -t * -i 8 -n green
c -t * -i 27 -n yellow
c -t * -i 9 -n yellow
c -t * -i 10 -n brown
c -t * -i 28 -n brown
c -t * -i 11 -n black
c -t * -i 30 -n blue
c -t * -i 29 -n black
c -t * -i 12 -n blue
c -t * -i 13 -n red
c -t * -i 14 -n green
c -t * -i 15 -n yellow
c -t * -i 16 -n brown
n -t * -a 0 -s 0 -S UP -v circle -c black
n -t * -a 1 -s 1 -S UP -v circle -c black
n -t * -a 2 -s 2 -S UP -v circle -c black
n -t * -a 3 -s 3 -S UP -v circle -c black
n -t * -a 4 -s 4 -S UP -v circle -c black
n -t * -a 5 -s 5 -S UP -v circle -c black
n -t * -a 6 -s 6 -S UP -v circle -c black
n -t * -a 7 -s 7 -S UP -v circle -c black
n -t * -a 8 -s 8 -S UP -v circle -c black
n -t * -a 9 -s 9 -S UP -v circle -c black
n -t * -a 10 -s 10 -S UP -v circle -c black
n -t * -a 11 -s 11 -S UP -v circle -c black
l -t * -s 0 -d 1 -S UP -r 1500000 -D 0.040000000000000001 -c black -o left
l -t * -s 0 -d 2 -S UP -r 10000000 -D 0.02 -c black -o up
l -t * -s 0 -d 3 -S UP -r 10000000 -D 0.02 -c black -o right-up
l -t * -s 0 -d 4 -S UP -r 10000000 -D 0.02 -c black -o right
l -t * -s 0 -d 5 -S UP -r 10000000 -D 0.02 -c black -o right-down
l -t * -s 0 -d 6 -S UP -r 10000000 -D 0.02 -c black -o down
l -t * -s 1 -d 7 -S UP -r 10000000 -D 0.02 -c black -o up
l -t * -s 1 -d 8 -S UP -r 10000000 -D 0.02 -c black -o left-up
l -t * -s 1 -d 9 -S UP -r 10000000 -D 0.02 -c black -o left
l -t * -s 1 -d 10 -S UP -r 10000000 -D 0.02 -c black -o left-down
l -t * -s 1 -d 11 -S UP -r 10000000 -D 0.02 -c black -o down
+ -t 0.1 -s 4 -d 0 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
- -t 0.1 -s 4 -d 0 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
h -t 0.1 -s 4 -d 0 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 -1 ------- null}
r -t 0.1208 -s 4 -d 0 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
+ -t 0.1208 -s 0 -d 1 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
- -t 0.1208 -s 0 -d 1 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
h -t 0.1208 -s 0 -d 1 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 -1 ------- null}
r -t 0.166133 -s 0 -d 1 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
+ -t 0.166133 -s 1 -d 9 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
- -t 0.166133 -s 1 -d 9 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
h -t 0.166133 -s 1 -d 9 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 -1 ------- null}
r -t 0.186933 -s 1 -d 9 -p tcp -e 1000 -c 1 -i 0 -a 1 -x {4.0 9.0 0 ------- null}
+ -t 0.186933 -s 9 -d 1 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 0 ------- null}
- -t 0.186933 -s 9 -d 1 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 0 ------- null}
h -t 0.186933 -s 9 -d 1 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 -1 ------- null}
+ -t 0.2 -s 6 -d 0 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 0 ------- null}
- -t 0.2 -s 6 -d 0 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 0 ------- null}
h -t 0.2 -s 6 -d 0 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 -1 ------- null}
r -t 0.206965 -s 9 -d 1 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 0 ------- null}
+ -t 0.206965 -s 1 -d 0 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 0 ------- null}
- -t 0.206965 -s 1 -d 0 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 0 ------- null}
h -t 0.206965 -s 1 -d 0 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 -1 ------- null}
r -t 0.2208 -s 6 -d 0 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 0 ------- null}
+ -t 0.2208 -s 0 -d 1 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 0 ------- null}
- -t 0.2208 -s 0 -d 1 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 0 ------- null}
h -t 0.2208 -s 0 -d 1 -p tcp -e 1000 -c 2 -i 2 -a 2 -x {6.0 11.0 -1 ------- null}
r -t 0.247179 -s 1 -d 0 -p ack -e 40 -c 1 -i 1 -a 1 -x {9.0 4.0 0 ------- null}
+ -t