Quote:
Originally Posted by berndbausch
Some output is missing here.
OK, this is the missing text. Why is it mixed with other output?
I suggest you first ensure that executable and source code have the same version.
|
i had try same version but not working, when i run using gdb, the detail message error as below :
Starting program: /usr/local/bin/ns Ujicobaprog.tcl
warning: Script debugging disabled. Reconfigure with --with-tcldebug, and recompile.
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Starting Simulation...
0 - command: calling set_destination()
0 - set_destination: calling log_movement()
( 1) - 0 sending Route Request, dst: 1
( 2) - 0 sending Route Request, dst: 1, tout 1.800000 ms
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
( 3) - 0 sending Route Request, dst: 1
( 4) - 0 sending Route Request, dst: 1, tout 3.600000 ms
( 5) - 0 sending Route Request, dst: 1
( 6) - 0 sending Route Request, dst: 1, tout 5.400000 ms
( 7) - 0 sending Route Request, dst: 1
( 8) - 0 sending Route Request, dst: 1, tout 7.200000 ms
( 9) - 0 sending Route Request, dst: 1
(10) - 0 sending Route Request, dst: 1, tout 1.800000 ms
(11) - 0 sending Route Request, dst: 1
(12) - 0 sending Route Request, dst: 1, tout 3.600000 ms
(13) - 0 sending Route Request, dst: 1
(14) - 0 sending Route Request, dst: 1, tout 5.400000 ms
1 - command: calling set_destination()
1 - set_destination: calling log_movement()
(15) - 0 sending Route Request, dst: 1
(16) - 0 sending Route Request, dst: 1, tout 7.200000 ms
(17) - 0 sending Route Request, dst: 1
(18) - 0 sending Route Request, dst: 1, tout 1.800000 ms
1 - recvRequest: destination sending reply
sending Reply from 1 at 103.00
1 - arpresolve
0 - arpinput
op: 1, sha: 1, tha: 0, spa: 1, tpa: 0
1 - arpinput
op: 2, sha: 0, tha: 1, spa: 0, tpa: 1
sending HELD packet.
0 - recvReply: received a REPLY
Program received signal SIGSEGV, Segmentation fault.
AODV::forward (this=0xebdaf0, rt=0xf51620, p=0xf4ea60, delay=0)
at aodv/aodv.cc:1025
1025 #endif // DEBUG
(gdb) bt
#0 AODV::forward (this=0xebdaf0, rt=0xf51620, p=0xf4ea60, delay=0)
at aodv/aodv.cc:1025
#1 0x00000000006097a3 in AODV::recvReply (this=0xebdaf0, p=0xf4eb50)
at aodv/aodv.cc:911
#2 0x000000000051d186 in Scheduler::run (this=0xe876c0)
at common/scheduler.cc:129
#3 0x000000000051dccc in Scheduler::command (this=0xe876c0,
argc=<optimized out>, argv=<optimized out>) at common/scheduler.cc:198
#4 0x00000000006cf5d5 in OTclDispatch (cd=<optimized out>, in=0xb72f00,
argc=3, argv=0xb742f0) at otcl.c:455
#5 0x00000000006d4b90 in TclInvokeStringCommand ()
#6 0x00000000006d8ee7 in TclEvalObjvInternal ()
#7 0x000000000071ed1b in TclExecuteByteCode ()
#8 0x00000000007257e7 in TclCompEvalObj ()
#9 0x000000000071faf1 in TclExecuteByteCode ()
#10 0x000000000075cf5b in TclObjInterpProcCore ()
#11 0x00000000006d4cdd in TclInvokeObjectCommand ()
#12 0x00000000006cf705 in OTclDispatch (cd=<optimized out>, in=0xb72f00,
argc=2, argv=0xb740f0) at otcl.c:498
#13 0x00000000006d4b90 in TclInvokeStringCommand ()
#14 0x00000000006d8ee7 in TclEvalObjvInternal ()
#15 0x000000000071ed1b in TclExecuteByteCode ()
#16 0x000000000075cf5b in TclObjInterpProcCore ()
---Type <return> to continue, or q <return> to quit---
#17 0x00000000006d4cdd in TclInvokeObjectCommand ()
#18 0x00000000006cf5d5 in OTclDispatch (cd=<optimized out>, in=0xb72f00,
argc=2, argv=0xb73ed0) at otcl.c:455
#19 0x00000000006d4b90 in TclInvokeStringCommand ()
#20 0x00000000006d8ee7 in TclEvalObjvInternal ()
#21 0x00000000006daa8b in TclEvalEx ()
#22 0x00000000006dafc6 in Tcl_EvalEx ()
#23 0x000000000073f3ca in Tcl_FSEvalFileEx ()
#24 0x0000000000744f13 in Tcl_Main ()
#25 0x00000000006cb63e in nslibmain (argc=<optimized out>,
argv=<optimized out>) at common/tclAppInit.cc:67
#26 0x00007ffff700ef45 in __libc_start_main (
main=0x514270 <main(int, char**)>, argc=2, argv=0x7fffffffdd18,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7fffffffdd08) at libc-start.c:287
#27 0x0000000000514305 in _start ()
i do not know how to trace that, can you help me to trace my issue?