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

Re: [ns] memory leak problem



> I managed to get results by running the exact same simulation with ns in gdb. If
> you don't care about speed or convenience (shell scripts/etc) you might give
> that a try. For whatever reason (gdb doing garbage collection? Obscure timing
> issues? I don't know...) simulations which died running natively ran fine and
> gave results when run in gdb. Worth a try, if you haven't.
> 
> If I ever get my hands on a solaris box around here, I'd just use a tool like
> purify to track any leaks... unfortunately I don't know of a good tool for
> Linux/x86 that does the same thing and works with C++. (Assuming the error is in
> C++...) If anybody does know of such a beast, let me know.

You can use dmalloc (www.dmalloc.com); ns supports that. Although it's not
as conveinent as purify it's the best available on fbsd/linux, i think.

- Haobo