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

Re: ns-2 apparent bug



I think that this bug has been fixed by initialize save_ to NULL in
TcpSink::TcpSink in the current snapshot:

TcpSink::TcpSink(Acker* acker) : Agent(PT_ACK), acker_(acker), save_(NULL)
{
...
}

- Haobo

On Fri, 6 Aug 1999, Bernie Minuk wrote:

> On Thu, 05 Aug 1999, you wrote:
> > >%_The script http-mod-ex core dumps:
> > 
> > 1.396291e+00     1       1       1       0.10000000000000001
> > 5.000000e+00     2       11      2       0.20000000000000001
> > Segmentation fault (core dumped)        
> 
> I have found that the object pointer save_ is not initialized to NULL when the
> TCPSink object is created.  I have worked around it in the http-mod script by
> adding a reset method call after creating the object.  I believe that adding a
> call to reset() in the object constructor may be a more permanent solution, but
> I am wary of any adverse side effects (I am not very familiar with the code).
>