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

Re: [ns] Name Conflict?



>I've written a new multicast agent in ns, and things where going fine
>for a while, but it seems like I'm getting these unpredictible
>segmentation faults quite often. I believe that it may be some kind of
>namespace conflict or error. It seems to occur when I call a function
>that I've instantiated in TCL from within my c++ code. But the bug goes
>away if I call the function 10 seconds into the simulation. Its as if it
>takes the simulation a while to resolve the names, and once it has I can
>use these functions. But if I try it early I get the wonderful and ever
>helpful:
>segmentation fault
>message.
>Anyone ever experienced anything like this or am I in my own private
>hell?
> -Will
>

I haven't heard of that kind of a timing-dependent bug.
You should be able to look at a traceback (through the Tcl
invocations) in gdb and get a LOT more info, though.

   -John Heidemann