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

Re: [ns] segmentation fault (fwd)



I presume by 'changing ns_tcl' you mean you've changed some scripts under
tcl/ then recompile. gen/ns_tcl.cc is automatically generated and should
not be manually editted.

If I were you I'd look at the way your bound variable is initialized and
where it is first accessed. Seems like during ns initialization some of
your bound variable was accessed incorrectly. If you are still not sure,
build a debugging version of tclcl (make clean then change -O2 in Makefile
to -g), link it against ns, set a breakpoint in InstVarReal::set() or
TracedDouble::assign() (tracedvar.{h,cc}) and see what's going on.

On Tue, 29 Aug 2000, Kaleelazhicathu R R Kumar wrote:

> 
> 
> hi all,
>   i am getting a segmentation fault after i made some changes in red.cc.i
> am trying to add two logical queues.for this i have declared two average
> queue lengths as TracedDouble..i think i am getting the problem when i bind these
> variables but am unable to figure out the problem looking at the gdb
> output.i am attaching the file containing the gdb output.i have made changes in
> red.cc,red.h,ns-default and ns_tcl.is there anything more which i need to
> change for adding these variables which is causing this problem.also
> please let me know how can i put breakpoints in the program?i am new to
> otcl with  c++ debugging.any help will be appreciated.
>    thanks
>    Renjish. 
> 
>