[Xorp-hackers] valgrind detected libxorp leaks

Bruce M Simpson bms at incunabulum.net
Sat Feb 9 01:21:39 PST 2008


Bruce M Simpson wrote:
> Briefly looking at the code it looks like there is the opportunity for 
> TaskNodes to be leaked as TaskList has no destructor.
>   

Valgrind results with FreeBSD have been inconclusive. Valgrind results 
with Linux 2.6 turned up surprisingly few positives -- the STL 
implementation shipping with gcc 4.1 and above seems to produce smaller 
and possibly less leaky code.

Currently there are no major leaks in the OLSR code as profiled on 
Linux;  however there have been a few hits in libxorp and libxipc.

I'll post more detailed results if I get a chance to sit down and do 
more profiling.

> P.S. If anyone can suggest a way of tricking the Router Manager into 
> running my routing process under Valgrind, I would like to know
>   
I resolved this by using a wrapper script from the template file 
(%modinfo path).

cheers
BMS



More information about the Xorp-hackers mailing list