Dear all , I am using gdb to deluging my tcl and c++ code. I used a function size_neighbord_list (), in node.cc node.h code. But after I remove it for my code node.cc node.h. When doing some simulation test a segmentation fault occur :
(gdb) continue Continuing. 4 is setting code to 0 Program received signal SIGSEGV, Segmentation fault. 0x081218fb in Node::size_neighbord_list () (gdb) bt #0 0x081218fb in Node::size_neighbord_list () #1 0x0821a014 in leachApp::decideClusterHead () #2 0x0821a52b in App::start () #3 0x0820b474 in CommonNodeApp::command () #4 0x082546c2 in TclClass::dispatch_cmd () #5 0x0825942c in OTclDispatch (cd=<value optimized out>, in=0x8456490, argc=3, argv=0xbfdbc58c) at otcl.c:434 #6 0x0826018e in TclInvokeStringCommand () #7 0x08261c82 in TclEvalObjvInternal () #8 0x0828bf01 in TclExecuteByteCode () #9 0x0829073c in TclCompEvalObj () #10 0x0828bda2 in TclExecuteByteCode () #11 0x0829073c in TclCompEvalObj () #12 0x082b8cde in TclObjInterpProc () #13 0x082b9122 in TclProcInterpProc () #14 0x082595b6 in OTclDispatch (cd=<value optimized out>, in=0x8456490, argc=2, argv=0xbfdbd16c) at otcl.c:477 #15 0x0826018e in TclInvokeStringCommand () #16 0x08261c82 in TclEvalObjvInternal () #17 0x08262245 in Tcl_EvalEx () #18 0x0826255c in Tcl_Eval () #19 0x082625f6 in Tcl_GlobalEval () #20 0x082571b9 in Tcl::eval () #21 0x0805494a in AtHandler::handle () #22 0x08054612 in Scheduler::dispatch () #23 0x0805485e in Scheduler::run () #24 0x08054b1d in Scheduler::command () #25 0x082546c2 in TclClass::dispatch_cmd () #26 0x0825942c in OTclDispatch (cd=<value optimized out>, in=0x8456490, argc=3, argv=0xbfdbe0c8) at otcl.c:434 #27 0x0826018e in TclInvokeStringCommand () ---Type <return> to continue, or q <return> to quit--- #28 0x08261c82 in TclEvalObjvInternal () #29 0x0828bf01 in TclExecuteByteCode () #30 0x0829073c in TclCompEvalObj () #31 0x0828bda2 in TclExecuteByteCode () #32 0x0829073c in TclCompEvalObj () #33 0x082b8cde in TclObjInterpProc () #34 0x082b9122 in TclProcInterpProc () #35 0x082595b6 in OTclDispatch (cd=<value optimized out>, in=0x8456490, argc=2, argv=0xbfdbe39c) at otcl.c:477 #36 0x0826018e in TclInvokeStringCommand () #37 0x08261c82 in TclEvalObjvInternal () #38 0x0828bf01 in TclExecuteByteCode () #39 0x0829073c in TclCompEvalObj () #40 0x082b8cde in TclObjInterpProc () #41 0x082b9122 in TclProcInterpProc () (gdb) I can not understand why i still have this error !!! Could any one give me any advice, pls ? I really appreciate it. Thank you