[Bro-Dev] #1038: memory leak in input framework

Bro Tracker bro at tracker.bro.org
Mon Jul 15 11:09:24 PDT 2013


#1038: memory leak in input framework
------------------------+---------------------
 Reporter:  scampbell   |       Type:  Problem
   Status:  new         |   Priority:  High
Milestone:  Bro2.2      |  Component:  Bro
  Version:  git/master  |   Keywords:
------------------------+---------------------
 When using the input framework to read a data file and convert into an
 event stream, it seems that none of the objects instantiated for event
 generation are freed up.  For a file of ~ 5.25 M lines, I am seeing > 4 GB
 memory used.

 Version is 2.1-798

 A quick demo script looks like:

 event bro_init()
         {
         # input stream setup
         Input::add_event([$source=data_file, $reader=Input::READER_RAW,
 $mode=Input::STREAM, $name="issh", $fields=lineVals, $ev=sshLine]);
         }

 event sshLine(description: Input::EventDescription, tpe: Input::Event, LV:
 lineVals)
         {
         return;
         }

 thanks!
 scott

-- 
Ticket URL: <http://tracker.bro.org/bro/ticket/1038>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list