[Dovecot] dovecot-1.1.rc3 segmentation fault in fetch_bodystructure

Diego Liziero diegoliz at gmail.com
Thu Mar 27 23:52:00 EET 2008


On Thu, Mar 27, 2008 at 5:47 PM, Dean Brooks <dean at iglou.com> wrote:

>
> Can you confirm that the patch Timo submited in the above link fixes
> this problem for 1.1rc3?  If so, will this be committed for rc4 or beyond?
>

No, the above patch was about another issue (segmentation fault in
fetch_bodystructure) and I forgot to change the subject about the assertion
failure you are getting.

As Timo told you, I changed the assert with a i_error waiting for a proper
fix.

Diego.

--- ./src/lib-storage/index/index-sync.c-orig   2008-03-13 16:46:
36.000000000 +0100
+++ ./src/lib-storage/index/index-sync.c        2008-03-13 16:51:
38.000000000 +0100
@@ -36,7 +36,9 @@
 void index_mailbox_set_recent_uid(struct index_mailbox *ibox, uint32_t uid)
 {
        if (uid <= ibox->recent_flags_prev_uid) {
-               i_assert(seq_range_exists(&ibox->recent_flags, uid));
+               /*i_assert(seq_range_exists(&ibox->recent_flags, uid));*/
+               if (!seq_range_exists(&ibox->recent_flags, uid))
+                       i_error("seq_range_exists(&ibox->recent_flags,
uid)");
                return;
        }
        ibox->recent_flags_prev_uid = uid;


More information about the dovecot mailing list