logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: strange behavior with 2.1.5: msg#00181

Subject: Re: strange behavior with 2.1.5
On Wed, Mar 15, 2006 at 11:47:05AM -0500, Adam Kosmin wrote:
> Mar 15 10:46:00 xen-mail postfix/pipe[6797]: 84E45385AF: 
> to=<xenuser2@xxxxxxxxxxxxxxxx>, relay=dbmail-smtp, delay=279, 
> status=deferred (Command died with signal 9: 
> "/usr/local/sbin/dbmail-smtp". Command output: sort.c, 
> sort_deliver_to_mailbox: message id=15, size=705 is inserted )
> 
> The message above was delivered to xenuser2's INBOX and yet, mailq is 
> telling me that it's still in the queue...

This looks like the double-free problem -- it should be fixed in svn
head:

sayler@octo:/usr/src/svn/dbmail$ svn diff -r 2020 main.c
Index: main.c
===================================================================
--- main.c      (revision 2020)
+++ main.c      (working copy)
@@ -389,19 +389,8 @@
                }
        }
 
-       trace(TRACE_DEBUG, "main(): freeing dsnuser list");
-       /*must loop to get the memory for the strdup of the mailbox */
-       /*
-       for (tmp = dm_list_getstart(&dsnusers);
-                       tmp != NULL;
-                       tmp = tmp->nextnode) {
-               dm_free( ((deliver_to_user_t *)tmp->data)->mailbox );
-       }
-       */
+       dbmail_message_free(msg);
        dsnuser_free_list(&dsnusers);
-       dsnuser_free(&dsnuser);
-
-       trace(TRACE_DEBUG, "main(): freeing all other lists");
        dm_list_free(&mimelist.start);
        dm_list_free(&users.start);
        dm_free(returnpath);
sayler@octo:/usr/src/svn/dbmail$ 

Matt


<Prev in Thread] Current Thread [Next in Thread>