A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=701 
====================================================================== 
Reported By:                asianux-liuxiao
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   701
Category:                   Database layer
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             15-May-08 05:33 CEST
Last Modified:              22-May-08 09:00 CEST
====================================================================== 
Summary:                    Work with sqlite and add forward, when use
dbmail-users -l <forward user>, it crash
Description: 
dbmail + sqlite + postfix
if add forward, like:  
dbmail-users -x [EMAIL PROTECTED] -t [EMAIL PROTECTED]
and then send mail to [EMAIL PROTECTED], dbmail-smtp will crash
It is because if we use dbmail-users -l [EMAIL PROTECTED], it crashed, seems
dead in loop search in datebase...
You can get more informations from my log file.

====================================================================== 

---------------------------------------------------------------------- 
 asianux-liuxiao - 21-May-08 04:47  
---------------------------------------------------------------------- 
There is a bad logic in loop search
void *db_get_result_set() just return the pointer "lastq" and saveres
point to it
When we need to use saveres, lastq has been freed, so saveres is null...

I tried to make a patch to fix it, but seems very difficult... 

---------------------------------------------------------------------- 
 asianux-liuxiao - 22-May-08 08:58  
---------------------------------------------------------------------- 
Seems my patch works...   But as I know little about sqlite datebase, I
wonder if there is any memory leak with my patch.
Could anyone review it or have better solution? 

---------------------------------------------------------------------- 
 asianux-liuxiao - 22-May-08 09:00  
---------------------------------------------------------------------- 
This patch also works in 2.2.10 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
15-May-08 05:33 asianux-liuxiaoNew Issue                                    
15-May-08 05:33 asianux-liuxiaoFile Added: dbmail.log                       
21-May-08 04:47 asianux-liuxiaoNote Added: 0002557                          
22-May-08 08:58 asianux-liuxiaoNote Added: 0002560                          
22-May-08 08:59 asianux-liuxiaoFile Added: dbmail-2.2.8-test.patch              
     
22-May-08 09:00 asianux-liuxiaoNote Added: 0002561                          
======================================================================

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

Reply via email to