The following issue has been RESOLVED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=743 
====================================================================== 
Reported By:                niki
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   743
Category:                   LMTP daemon
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
target:                      
Resolution:                 fixed
Fixed in Version:           2.3.6
====================================================================== 
Date Submitted:             06-Dec-08 14:42 CET
Last Modified:              25-Jan-09 13:31 CET
====================================================================== 
Summary:                    Memory leak in lmtpd
Description: 
I have done a valgrind run on lmtpd after seing some slow memory increases
on lmtp during mail delivery
====================================================================== 

---------------------------------------------------------------------- 
 paul - 06-Dec-08 16:43  
---------------------------------------------------------------------- 
Niki,

I've committed a partial fix for leakage in lmtpd. I use
test-scripts/testlmtp.py to stress-test lmtpd. That's a threaded lmtp
client I wrote myself to push this deamon. 

Some minor leakage still remains it seems. I can't see where this is
coming from. Something subtle. 

---------------------------------------------------------------------- 
 niki - 06-Dec-08 20:42  
---------------------------------------------------------------------- 
Hi Paul.

I have uploaded a new valgrind log after compiling with your fix. 

---------------------------------------------------------------------- 
 niki - 07-Dec-08 04:20  
---------------------------------------------------------------------- 
The patch I have uploaded is based on the patch I uploaded for bug
http://www.dbmail.org/mantis/view.php?id=744,
where it doesn't belong, as it fixes a file descriptor leak in lmptd, not
imapd.

Any comment on this patch ? 

---------------------------------------------------------------------- 
 paul - 07-Dec-08 11:44  
---------------------------------------------------------------------- 
Niki,

I see three sources of leakage in your logs. They align with the 'minor'
leakage I reported in my earlier comment.

Your logs are not very useful in themselves. I recognise the leakage from
my own logs. To produce more useful logs you should compile dbmail static
and with debugging symbols:

env CFLAGS="-g" ./configure --enable-static=yes --enable-shared=no ...

 

---------------------------------------------------------------------- 
 paul - 07-Dec-08 14:08  
---------------------------------------------------------------------- 
Niki,

please try again. 

---------------------------------------------------------------------- 
 paul - 25-Jan-09 13:31  
---------------------------------------------------------------------- 
closing this bug 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-Dec-08 14:42 niki           New Issue                                    
06-Dec-08 14:42 niki           File Added: lmtpd.memcheck-1                    
06-Dec-08 15:20 jasb           Issue Monitored: jasb                        
06-Dec-08 16:43 paul           Note Added: 0002688                          
06-Dec-08 16:43 paul           Assigned To               => paul            
06-Dec-08 16:43 paul           Status                   new => assigned     
06-Dec-08 20:40 niki           File Added: lmtpd.memcheck-2                    
06-Dec-08 20:42 niki           Note Added: 0002689                          
07-Dec-08 04:17 niki           File Added:
743-dbmail-lmtpd_filedescriptor_leak.patch                    
07-Dec-08 04:20 niki           Note Added: 0002694                          
07-Dec-08 11:44 paul           Note Added: 0002695                          
07-Dec-08 14:08 paul           Note Added: 0002697                          
25-Jan-09 13:31 paul           Note Added: 0002731                          
25-Jan-09 13:31 paul           Status                   assigned => resolved
25-Jan-09 13:31 paul           Resolution               open => fixed       
25-Jan-09 13:31 paul           Fixed in Version          => 2.3.6           
======================================================================

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to