Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: dev

[DBMail 0000701]: Work with sqlite and add forward, when use dbmail-users -l <forward user>, it crash

 

 

DBMail dev RSS feed   Index | Next | Previous | View Threaded


bugtrack at dbmail

May 14, 2008, 8:33 PM

Post #1 of 4 (310 views)
Permalink
[DBMail 0000701]: Work with sqlite and add forward, when use dbmail-users -l <forward user>, it crash

The following issue has been SUBMITTED.
======================================================================
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: 15-May-08 05:33 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 aaa[at]localhost -t bbb[at]localhost
and then send mail to aaa[at]localhost, dbmail-smtp will crash
It is because if we use dbmail-users -l aaa[at]localhost, it crashed, seems
dead in loop search in datebase...
You can get more informations from my log file.

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

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
======================================================================

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


bugtrack at dbmail

May 20, 2008, 7:47 PM

Post #2 of 4 (287 views)
Permalink
[DBMail 0000701]: Work with sqlite and add forward, when use dbmail-users -l <forward user>, it crash [In reply to]

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: 21-May-08 04:47 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 aaa[at]localhost -t bbb[at]localhost
and then send mail to aaa[at]localhost, dbmail-smtp will crash
It is because if we use dbmail-users -l aaa[at]localhost, 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...

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
======================================================================

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


bugtrack at dbmail

May 21, 2008, 11:58 PM

Post #3 of 4 (280 views)
Permalink
[DBMail 0000701]: Work with sqlite and add forward, when use dbmail-users -l <forward user>, it crash [In reply to]

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 08:58 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 aaa[at]localhost -t bbb[at]localhost
and then send mail to aaa[at]localhost, dbmail-smtp will crash
It is because if we use dbmail-users -l aaa[at]localhost, 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?

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
======================================================================

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


bugtrack at dbmail

May 22, 2008, 12:00 AM

Post #4 of 4 (281 views)
Permalink
[DBMail 0000701]: Work with sqlite and add forward, when use dbmail-users -l <forward user>, it crash [In reply to]

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 aaa[at]localhost -t bbb[at]localhost
and then send mail to aaa[at]localhost, dbmail-smtp will crash
It is because if we use dbmail-users -l aaa[at]localhost, 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
Dbmail-dev[at]dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

DBMail dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.