Dear everyone,

I tried to do simulation with the semantic queue in ns2.26. I changed
nothing in ns2 original code. I set PacketQueue/Semantic in the tcl
script, but got the segmentation fault. By using gdb, i got the
following report for error:

Program received signal SIGSEGV, Segmentation fault.
0x08054564 in Scheduler::dispatch(Event*, double) ()
(gdb) bt
#0  0x08054564 in Scheduler::dispatch(Event*, double) ()
#1  0x080544c9 in Scheduler::run() ()
#2  0x08054665 in Scheduler::command(int, char const* const*) ()
#3  0x081f28ea in TclClass::dispatch_cmd(void*, Tcl_Interp*, int,
char**) ()
#4  0x081f63e2 in OTclDispatch (cd=0x855c080, in=0x83b2e90, argc=3,
argv=0xbfffdf00)
    at otcl.c:420
#5  0x081fabeb in TclInvokeStringCommand ()
#6  0x08214d72 in TclExecuteByteCode ()
#7  0x081fb599 in Tcl_EvalObjEx ()
#8  0x08214f60 in TclExecuteByteCode ()
#9  0x081fb599 in Tcl_EvalObjEx ()
#10 0x082366e5 in TclObjInterpProc ()
#11 0x08236294 in TclProcInterpProc ()
#12 0x081f657e in OTclDispatch (cd=0x855c080, in=0x83b2e90, argc=2,
argv=0xbfffe750)
    at otcl.c:463
#13 0x081fabeb in TclInvokeStringCommand ()
#14 0x08214d72 in TclExecuteByteCode ()
#15 0x081fb599 in Tcl_EvalObjEx ()
#16 0x082366e5 in TclObjInterpProc ()
#17 0x08236294 in TclProcInterpProc ()
#18 0x081f63e2 in OTclDispatch (cd=0x8559590, in=0x83b2e90, argc=2,
argv=0xbfffee20)
    at otcl.c:420
#19 0x081fabeb in TclInvokeStringCommand ()
#20 0x0822fde8 in EvalObjv ()
#21 0x08230477 in Tcl_EvalEx ()
#22 0x08227ad2 in Tcl_EvalFile ()
#23 0x0822a5b0 in Tcl_Main ()
#24 0x0804e6ab in main ()
#25 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6


Could anybody tell me where's the segmentation fault?

Your help is highly appreciated,
Min

Reply via email to