Hi All,
         I ran NS-2 simulation using one TCP source and one TCP sink i.e.
just two nodes. I started simulation at 10 and end time is 50. I got the
following error almost at the end of simulation i.e. at time 49.986260487

Program received signal SIGSEGV, Segmentation fault.
0x000000000066de51 in Tcl_Write ()

The following is the result of gdb backtrace

#0  0x000000000066de51 in Tcl_Write ()
#1  0x0000000000585012 in BaseTrace::dump (this=0xe5cba0)
    at trace/basetrace.cc:82
#2  0x00000000004f1760 in CMUTrace::recv (this=0xe58470, p=0xe922f0, h=0x0)
    at trace/cmu-trace.cc:1234
#3  0x00000000004cd309 in Mac_IFControl::recvDATA (this=0xe3c380,
p=0xe922f0)
    at mac/mac-ifcontrol.cc:1807
#4  0x00000000004ccba9 in Mac_IFControl::recv (this=0xe3c380, p=0xe922f0,
    h=0x0) at mac/mac-ifcontrol.cc:1584
#5  0x00000000004ebc76 in InterferencePhy::recv_handler (this=0xe3a760)
    at mac/interference-phy.cc:172
#6  0x00000000004eb7aa in PhyRecvTimer::expire (this=0xe3a9a8, e=0xe3a9b8)
    at mac/interference-phy.cc:78
#7  0x000000000040b67c in TimerHandler::handle (this=0xe3a9a8, e=0xe3a9b8)
    at common/timer-handler.cc:99
#8  0x000000000040bab8 in Scheduler::dispatch (this=0xda4340, p=0xe3a9b8,
    t=50.006452486851273) at common/scheduler.cc:150
#9  0x000000000040b9db in Scheduler::run (this=0xda4340)
    at common/scheduler.cc:129
#10 0x000000000040bbda in Scheduler::command (this=0xda4340, argc=2,
    argv=0x7fffffffcc68) at common/scheduler.cc:198
#11 0x0000000000603466 in TclClass::dispatch_cmd(void*, Tcl_Interp*, int,
char const**) ()
#12 0x0000000000607d9d in OTclDispatch (cd=<optimized out>, in=0xab4090,
    argc=3, argv=0xab5480) at otcl.c:455
#13 0x000000000060bc8c in TclInvokeStringCommand ()
#14 0x00000000006100f8 in TclEvalObjvInternal ()
#15 0x0000000000654324 in TclExecuteByteCode ()
#16 0x000000000065bef0 in TclCompEvalObj ()
#17 0x0000000000654777 in TclExecuteByteCode ()
#18 0x0000000000694a83 in TclObjInterpProcCore ()
#19 0x000000000060bdd8 in TclInvokeObjectCommand ()
#20 0x0000000000607ee5 in OTclDispatch (cd=<optimized out>, in=0xab4090,
    argc=2, argv=0xab5280) at otcl.c:498
#21 0x000000000060bc8c in TclInvokeStringCommand ()
#22 0x00000000006100f8 in TclEvalObjvInternal ()
#23 0x0000000000654324 in TclExecuteByteCode ()
#24 0x0000000000694a83 in TclObjInterpProcCore ()
#25 0x000000000060bdd8 in TclInvokeObjectCommand ()
#26 0x0000000000607d9d in OTclDispatch (cd=<optimized out>, in=0xab4090,
    argc=2, argv=0xab5060) at otcl.c:455
#27 0x000000000060bc8c in TclInvokeStringCommand ()
#28 0x00000000006100f8 in TclEvalObjvInternal ()
#29 0x0000000000611bb1 in TclEvalEx ()
#30 0x00000000006122f6 in Tcl_EvalEx ()
#31 0x000000000067765e in Tcl_FSEvalFileEx ()

when I googled this problem I found similar post at
http://old.nabble.com/segmentation-fault-while-running-ns2.29-on-cygwin-and-instvar-global-scope-error-when-running-on-RHL-9-td29486777.html
but no body posted a solution.

Thanks
Shravan

Reply via email to