#748972 libmilter1.0.1: Opendkim and opendmarc milters have allocation leaks; libmilter is common element

Package:
libmilter1.0.1
Source:
sendmail
Description:
Sendmail Mail Filter API (Milter)
Submitter:
James Cloos
Date:
2015-07-14 11:15:08 UTC
Severity:
normal
#748972#5
Date:
2014-05-22 18:25:48 UTC
From:
To:
I’m not certain which package is at fault.  I’m starting here because both milters
use libmilter1.0.1.

The bug is socket-type agnostic.  It occurs with unix domain and with tcp sockets.

Every milter event allocates ram which is not free(2)d.  (It shows up in VmData in
/proc/$pid/status.)  I estimate that the process vm grows about 10k-20k per message.

Rss doesn’t grow. If swap usage grows, it doesn’t do so fast enough to confirm.
So the allocated pages may be untouched.

Eventually the milter gets a segv.  The forensics are insufficient to confirm
whether the leak causes or even contributes to the segv.

#748972#10
Date:
2015-07-10 17:28:52 UTC
From:
To:
Hi James,

Is this still occurring with the libmilter from jessie, stretch, sid, or
experimental? I.e. version 8.14.4-8 or newer.


Andreas

#748972#17
Date:
2015-07-11 03:34:33 UTC
From:
To:
AB> Is this still occurring with the libmilter from jessie, stretch, sid, or
AB> experimental? I.e. version 8.14.4-8 or newer.

Yes, sid still shows this.

And since the last two updates to opendkim, it crashes daily again.
Some days multiple times per day.

It hadn't been crashing for a while before that.  But the Virt still
grows constantly.