Package: python-pcapy
Version: 0.10.4-2
Severity: important

Hello,

it seems that there is a memory leak in python-pcapy. Try the
following program:

import pcapy
r = pcapy.open_live("eth0", 1500, True, 0)
while True:
 print r.next()[0]

and observe it for a while (start a ping flood or something to
generate packets). The memory usage never goes down as far as I can
see (RSS in ps xau). Large packets makes the memory usage go up faster
than small packets, so I suppose the packets themselves are never
freed.

I've written two different programs that use pcapy, and both of them
consume more memory as time goes on. I left one program running over
the weekend, and today it was using half a gigabyte of memory. Maybe
the memory leak is in my code, but I doubt it. This bug makes it kind
of difficult to use pcapy for anything long-running, so I set the
severity to important.

Regards,

-- 
Göran Weinholt,
Network Administrator,
Chalmers Studentbostäder



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to