Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2009 14:35:29 +0200
From:      Artis Caune <artis.caune@gmail.com>
To:        freebsd-pf@freebsd.org
Cc:        samm@os2.kiev.ua
Subject:   openbsd spamd is leaking memory?
Message-ID:  <9e20d71e0902250435y6e090fb0rc138233242fe7d60@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

we are running spamd-4.1.2 on amd64 boxes for a week now and one of
it's processes are getting bigger and bigger:
spamd: (pf <spamd-white> update) (spamd)
    SIZE: 836M
    RES: 773M

we use redundant firewalls and they have the same problem.

grey count is 500'000 - 1'000'000
white count is 80'000 and growing
200 - 600 concurrent connections to spamd
/var/db/spamd is 170M




I look at spamd/grey.c and found that while traversing SLIST in
do_changes() function, entry is removed from head but not freed:
    while (!SLIST_EMPTY(&db_changes)) {
        dbc = SLIST_FIRST(&db_changes);
        ...
        free(dbc->key);
        free(dbc->data);
        SLIST_REMOVE_HEAD(&db_changes, entry);
    }

there is no "free(dbc);"




-- 
regards,
Artis Caune

<----. CCNA | BSDA
<----|====================
<----' didii FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e20d71e0902250435y6e090fb0rc138233242fe7d60>