<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:Arial;">Thanks for the data.  It was 8 bytes of zeros across a UID and INTERNALDATE in the cyrus.index file.<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">I now have a fixed reconstruct which can detect and repair this rather than aborting, pushed to master.<br></div>
<div style="font-family:Arial;">I also have a Cassandane testcase for this and a couple of other things that reconstruct does :)<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Bron.<br></div>
<div><br></div>
<div>On Thu, 29 Dec 2016, at 09:45, Bron Gondwana via Cyrus-devel wrote:<br></div>
<blockquote type="cite"><div style="font-family:Arial;">Wow, interesting.  Are you willing to send me a tarball containing the spool folder including cyrus.index and cyrus.cache files as well as the email files themselves?  I'll need your imapd.conf file as well :)<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Cheers,<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Bron.<br></div>
<div><br></div>
<div><br></div>
<div>On Thu, 29 Dec 2016, at 00:28, Thomas Cataldo via Cyrus-devel wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div style="font-family:Arial;">Hi,<br></div>
<div><br></div>
<div>Running a build of 3.0.0-beta6 I hit the following assertion on one of my test mailboxes after playing a bit with the replication stuff :<br></div>
<div><br></div>
<div><p><span>root@bm1604:~# /usr/lib/cyrus/sbin/sync_client -n eclipse -o -u tom@ex2016.vmw</span><br></p><p><span>Fatal error: Internal error: assertion failed: imap/message.c: 4246: !message_need(m, M_RECORD)</span><br></p><p><span>root@bm1604:~# cyradm -u admin0 localhost</span><br></p><p><span>Password: </span><br></p><p><span>localhost> version</span><br></p><p><span>name       : Cyrus IMAPD</span><br></p><p><span>version    : 3.0.0-beta6-3-gf721e5b</span><br></p><p><span>vendor     : Project Cyrus</span><br></p><p><span>support-url: <a href="http://www.cyrusimap.org">http://www.cyrusimap.org</a></span><br></p><p><span>os         : Linux</span><br></p><p><span>os-version : 4.4.0-57-generic</span><br></p><p><span>environment: Built w/Cyrus SASL 2.1.26</span><br></p><p><span>             Running w/Cyrus SASL 2.1.26</span><br></p><p><span>             Built w/OpenSSL 1.0.2g  1 Mar 2016</span><br></p><p><span>             Running w/OpenSSL 1.0.2g  1 Mar 2016</span><br></p><p><span>             Built w/zlib 1.2.8</span><br></p><p><span>             Running w/zlib 1.2.8</span><br></p><p><span>             CMU Sieve 2.4</span><br></p><p><span>             mmap = shared</span><br></p><p><span>             lock = fcntl</span><br></p><p><span>             nonblock = ioctl</span><br></p><p><span>             idle = idled</span><br></p><p><br></p><p>root@bm1604:~# telnet localhost 1143<br></p><p>Connected to localhost.<br></p><p><span>Escape character is '^]'.</span><br></p><p><span>* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-IR] server ready</span><br></p><p><span>. login tom@ex2016.vmw xxxxxx</span><br></p><p><span>. OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES THREAD=REFS ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] User logged in SESSIONID=<cyrus-43098-1482931179-1-18150325414286070410></span><br></p><p><span>. select inbox</span><br></p><p><span>* BYE Fatal error: Internal error: assertion failed: imap/message.c: 4246: !message_need(m, M_RECORD)</span><br></p><p><span>Connection closed by foreign host.</span><br></p><p><span></span><br></p><p><span>Trying to reconstruct the mailbox does not help :</span><br></p><p><span>root@bm1604:~# /usr/lib/cyrus/sbin/reconstruct  -rfxGROU tom@ex2016.vmw</span><br></p><p><span>tom@ex2016.vmw</span><br></p><p>The error is still here after that.<br></p><p>Any idea ?<br></p><p>Regards,<br></p><p>Thomas.<br></p><p><br></p></div>
</div>
</blockquote><div style="font-family:Arial;"><br></div>
<div><div>--<br></div>
<div>  Bron Gondwana<br></div>
<div>  brong@fastmail.fm<br></div>
<div><br></div>
</div>
<div style="font-family:Arial;"><br></div>
</blockquote><div style="font-family:Arial;"><br></div>
<div id="sig567075"><div class="signature">--<br></div>
<div class="signature">  Bron Gondwana<br></div>
<div class="signature">  brong@fastmail.fm<br></div>
<div class="signature"><br></div>
</div>
<div style="font-family:Arial;"><br></div>
</body>
</html>