[tpop3d-discuss] Memory leak?

Chris Lightfoot chris at ex-parrot.com
Wed, 8 May 2002 09:02:47 +0100


On Tue, May 07, 2002 at 03:46:27PM -0700, Marc Lewis wrote:
> 
> We've been running tpop3d for about a week now, and find it to be
> excellent piece of software.
> 
> It has crashed on us twice, though, and I believe it may be because of a
> memory leak.
> 
> # ps auxw | grep tpop3d
> root     26088  4.3 46.1 476564 474164 ?     S    May06  55:45 tpop3d
    [...]
> The setup is for Maildir format.
> 
> I understand that tpop3d makes heavy use of mmap, but it doesn't seem to be
> munmaping them correctly in Maildir mode, and the parent process keeps
> growing as well, which has me concerned.
> 
> For completeness: The Maildir's are all over NFS, the systems are RedHat
> 7.2 with all of the updates from RH applied, the MTA is Postfix 1.1.7, and
> the local delivery agent is procmail 3.21.  Authentication is done via PAM
> with the nss_ldap module, the mail servers run their own slaved LDAP
> databases using OpenLDAP 2.0.21.
> 
> Suggestions/comments?

Can you tell me more about the configuration-- what
settings do you have in the config file? How is PAM
configured? 

The fact that the parent process is growing in size
suggests a leak in the authentication code. I can't
reproduce what you're seeing here, but I don't have any of
the PAM LDAP stuff. I don't think that there's a problem
with the mmap code.

What does the output of cat /proc/<tpop3d PID>/maps
indicate?

-- 
A bureaucrat's idea of cleaning up his files is
to make a copy of everything before he destroys it