[Click] minor Hub bug
Bart Braem
bart.braem at ua.ac.be
Wed Aug 5 09:03:06 EDT 2009
On 24 Jul 2009, at 20:53, Ian Rose wrote:
> have a simple Hub element bug to report, but I'm not sure what the
> proper avenue for that is...
>
> Synposis: Hub will memory leak if used with only 1 input/output pair.
>
> Here is a configuration that will demonstrate the problem:
>
>> FromDump(<some big pcap file>, STOP true)
>> -> cnt::Counter
>> -> hub::Hub
>> -> Print("hub output 0 (should never happen)")
>> -> Discard;
>>
>> DriverManager(pause,
>> read cnt.count,
>> print "exitting in 10s",
>> wait 10,
>> print "goodbye");
>
> Once you see "exitting in 10s", go check the process' memory footprint
> and it should be quite large. If you add a second input/output pair
> to
> the Hub element in this configuration, the problem should disappear.
I can fully confirm this bug, valgrind also complains about memory
leaks in this script.
Regards,
Bart
--
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.27
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.38.82
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be
More information about the click
mailing list