Re: [tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel

2009-07-13 Thread Gianluca Varenni
Thanks Guy! GV - Original Message - From: "Guy Harris" To: Sent: Saturday, July 11, 2009 2:10 PM Subject: Re: [tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel On Jul 10, 2009, at 5:09 PM, Gianluca Varenni wrote: I think the routine usb_cleanup_

Re: [tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel

2009-07-11 Thread Guy Harris
On Jul 10, 2009, at 5:09 PM, Gianluca Varenni wrote: I think the routine usb_cleanup_linux_mmap(pcap_t* handle) should be modified as follows: ... I'm not too happy about querying again the fd for the RING_SIZE (it should be stored in the pcap_t structure), but I tried it on my VM

Re: [tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel

2009-07-10 Thread Gianluca Varenni
- Original Message - From: "Guy Harris" To: Sent: Friday, July 10, 2009 3:45 PM Subject: Re: [tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel On Jul 10, 2009, at 3:35 PM, Gianluca Varenni wrote: I just discovered an interesting leak with the libpc

Re: [tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel

2009-07-10 Thread Guy Harris
On Jul 10, 2009, at 3:35 PM, Gianluca Varenni wrote: I just discovered an interesting leak with the libpcap 1.0 or the current top-of-tree. On Fedora 10, kernel 2.6.27.5 or 2.6.27.12, there is a memory leak by which a simple program like this one will eventually use all the memory on the

[tcpdump-workers] Memory leak in libpcap (top of tree) and/or kernel

2009-07-10 Thread Gianluca Varenni
Hi all. I just discovered an interesting leak with the libpcap 1.0 or the current top-of-tree. On Fedora 10, kernel 2.6.27.5 or 2.6.27.12, there is a memory leak by which a simple program like this one will eventually use all the memory on the system (as reported by top) and eventually the a