#748972 libmilter1.0.1: Opendkim and opendmarc milters have allocation leaks; libmilter is common element #748972
- 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
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.
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
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.