[Dovecot] segfault in RC15

Timo Sirainen tss at iki.fi
Sun Jan 14 17:14:25 UTC 2007


On Sun, 2007-01-14 at 15:08 +0100, Cor Bosman wrote:
> > You mean Dovecot just doesn't do that, or you did it on purpose for some
> > reason? You should get core dumps as long as:
> 
> I believe you added some code that catches these gracefully? I really
> dont see any coredumps. User can write, exec=yes, and ulimit -c set.
> I used to get coredumps. All I see now are these log entries, not even
> a signal notice.

Oh, right, of course. :) You can make it crash easily though:

diff -u -r1.44.2.3 mail-index-view.c
--- src/lib-index/mail-index-view.c     28 Dec 2006 20:54:56 -0000
1.44.2.3
+++ src/lib-index/mail-index-view.c     14 Jan 2007 17:15:32 -0000
@@ -222,6 +222,7 @@
        if (rec->uid == 0) {
                mail_index_set_error(view->index, "Corrupted Index file
%s: "
                        "Record [%u].uid=0", view->index->filepath,
seq);
+               abort();
                mail_index_mark_corrupted(view->index);
                return -1;
        }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070114/27306fe4/attachment.pgp 


More information about the dovecot mailing list