Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SPF: Devel
Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak?
 

Index | Next | Previous | View Flat


pettai at nordu

Oct 24, 2008, 9:02 AM


Views: 2055
Permalink
Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak?

Hi,

According to tests done by some people in the milter-greylist community, libspf2
(and possible libspf_alt) causes memory leaks on some OSes. See a cut version
from the posts below:

>On Fri, Oct 24, 2008 at 02:07:58AM +0900, Hajimu UMEMOTO wrote:
>>>>>> On Thu, 23 Oct 2008 14:31:15 +0200
>>>>>> Petar Bogdanovic <petar[at]smokva.net> said:
>
> petar> The situation even got worse with libspf2 from another point of view
> petar> -- milter-greylist using libspf_alt claimed about 15% of the CPU when
> petar> it had to deal with 900 simultaneous connections while the same
> petar> situation ate every second of the available CPU-time when linked
> petar> against libspf2. That's why I wasn't able to drop the same amounth
> petar> of mails through milter-greylist+libspf2: the CPU was the
> petar> bottleneck.
>
>> The BIND9's resolver requires res_ndestroy() for cleanup res_state.
>> However, libspf2 doesn't issue res_ndestroy() but issues res_nclose().
>> It causes memory leak. The FreeBSD port of libspf2 has a patch to
>> address this issue.
>
>Thanks, I applied all patches (~10) from the FreeBSD Ports tree and the
>problem is gone. The memory usage of milter-greylist is actually frozen
>now, no matter how hard I try. Also, the claimed cpu-time is much lower.

This has been fixed by a patch in the FreeBSD Ports tree. See (and specifically
patch submission [2]):
ftp://ftp.freebsd.org/pub/FreeBSD/development/FreeBSD-CVS/ports/mail/libspf2/files/patch-src_libspf2_spf__dns__resolv.c,v

AFAICS, this fix doesn't seem to be in the latest version of the libspf2-1.2.8
source. Maybe someone can add it to libspf2's main CVS branch instead?

(Someone mentioned that this also seems to be the case in the older (and perhaps
unmaintained libspf_alt, but I don't know if anyone cared to test that).

Regards,
Fredrik


-------------------------------------------
Sender Policy Framework: http://www.openspf.org
Modify Your Subscription: http://www.listbox.com/member/
Archives: https://www.listbox.com/member/archive/1007/=now
RSS Feed: https://www.listbox.com/member/archive/rss/1007/
Powered by Listbox: http://www.listbox.com

Subject User Time
Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? pettai at nordu Oct 24, 2008, 9:02 AM
    Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? scott at kitterman Oct 24, 2008, 9:30 AM
    Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? ume at mahoroba Oct 24, 2008, 9:48 AM
        Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? hannah at schlund Oct 27, 2008, 6:52 AM
            Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? ume at mahoroba Oct 29, 2008, 10:39 AM
                Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? spf at anarres Nov 4, 2008, 8:31 AM
        Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? johann+spfdevel at klasek Oct 27, 2008, 7:15 PM
            Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? hannah at schlund Oct 28, 2008, 6:27 AM
                Re: Fwd: [milter-greylist] HEADS-UP: libspf2 causes milter-greylist memory leak? hannah at schlund Oct 28, 2008, 6:40 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.