<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">On 18 Oct 2019, at 15.36, Erik de Waard via dovecot <<a href="mailto:dovecot@dovecot.org" class="">dovecot@dovecot.org</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi, i'm getting a coredump on a specific msg, i've attached the gdb.</div><div class=""><br class=""></div><div class="">file on disk i noticed W=<vsize> is missing.</div><div class="">1571209735.M744550P1608.rwvirtual65,S=15886:2,S<br class=""></div></div></div></blockquote>..<br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">mail.log</div><div class="">Oct 18 14:41:39 rwvirtual10 dovecot: imap(<a href="mailto:johndoe@company.nl" class="">johndoe@company.nl</a>)<15868><qjTFpy6VPsMKAAok>: Error: Mailbox INBOX.Debug: UID=1041: read(/data/mail/<a href="http://company.nl/users/johndoe/Maildir/.Debug/cur/1571209735.M744550P1608.rwvirtual65,S=15886:2,S" class="">company.nl/users/johndoe/Maildir/.Debug/cur/1571209735.M744550P1608.rwvirtual65,S=15886:2,S</a>) failed: Cached message size smaller than expected (15886 < 16367, box=INBOX.Debug, UID=1041) (read reason=mail stream)<br class="">Oct 18 14:41:39 rwvirtual10 dovecot: imap(<a href="mailto:johndoe@company.nl" class="">johndoe@company.nl</a>)<15868><qjTFpy6VPsMKAAok>: Error: Corrupted record in index cache file /data/indexes/<a href="http://johndoe@company.nl/.Debug/dovecot.index.cache" class="">johndoe@company.nl/.Debug/dovecot.index.cache</a>: UID 1041: Broken physical size in mailbox INBOX.Debug: read(/data/mail/<a href="http://company.nl/users/johndoe/Maildir/.Debug/cur/1571209735.M744550P1608.rwvirtual65,S=15886:2,S" class="">company.nl/users/johndoe/Maildir/.Debug/cur/1571209735.M744550P1608.rwvirtual65,S=15886:2,S</a>) failed: Cached message size smaller than expected (15886 < 16367, box=INBOX.Debug, UID=1041)<br class="">Oct 18 14:41:39 rwvirtual10 dovecot: imap(<a href="mailto:johndoe@company.nl" class="">johndoe@company.nl</a>)<15868><qjTFpy6VPsMKAAok>: Panic: file istream.c: line 315 (i_stream_read_memarea): assertion failed: (old_size <= _stream->pos - _stream->skip)<br class=""></div></div></blockquote><div><br class=""></div><div>The missing W shouldn't matter, but the S size is wrong. So the error is expected, but the panic isn't. I tried to reproduce this, but I couldn't get the panic to happen. Do you still have the file? Could you send it to me? You can also put it through <a href="https://dovecot.org/tools/maildir-obfuscate.pl" class="">https://dovecot.org/tools/maildir-obfuscate.pl</a> which should remove all sensitive content but hopefully still contain enough to reproduce the bug.</div><div><br class=""></div></div></body></html>