[Bug 205035] mail/dovecot2: Change default build options to prevent potential memory leak

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 5 11:51:41 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205035

            Bug ID: 205035
           Summary: mail/dovecot2: Change default build options to prevent
                    potential memory leak
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: adamw at FreeBSD.org
          Reporter: sebastian at wolfgarten.com
             Flags: maintainer-feedback?(adamw at FreeBSD.org)
          Assignee: adamw at FreeBSD.org

Hi,

I am on FreeBSD 10.1 and I keep seeing potential memory leaks with Dovecot
2.2.19. So /var/log/mail.log fills up with stuff like this (and this goes on
and on):

Oct 24 10:45:28 server1 dovecot: imap: Error: GC Warning: Repeated allocation
of very large block (appr. size 20480):
Oct 24 10:45:28 server1 dovecot: imap: Error:     May lead to memory leak and
poor performance.

>From talking to the Dovecot author, I believe the issue is caused by the
garbage collection with boehm-gc (see
https://www.mail-archive.com/search?l=dovecot@dovecot.org&q=subject:%22Memory+leak+or+misconfiguration%5C%3A+Repeated+allocation+of+very+large%09block%22&o=newest&f=1).
As such, I disabled the relevant lines in the Makefile of Dovecot 2 and since I
recompiled with these options, the memory leaks are gone. 

May I therefore propose to take this option out of the standard Makefile of
Dovecot2? Likewise, may I propose to add MySQL to the list of standard build
options for Dovecot 2?

Thanks.

Best regards
Sebastian

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list