Internal error: assertion failed imap/message.c: 4246: !message_need(m, M_RECORD)

Bron Gondwana brong at fastmail.fm
Mon Jan 2 08:13:13 EST 2017


Thanks for the data.  It was 8 bytes of zeros across a UID and
INTERNALDATE in the cyrus.index file.


I now have a fixed reconstruct which can detect and repair this rather
than aborting, pushed to master.
I also have a Cassandane testcase for this and a couple of other things
that reconstruct does :)


Bron.



On Thu, 29 Dec 2016, at 09:45, Bron Gondwana via Cyrus-devel wrote:

> 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 :)
> 

> Cheers,

> 

> Bron.

> 

> 

> On Thu, 29 Dec 2016, at 00:28, Thomas Cataldo via Cyrus-devel wrote:

>> Hi,

>> 

>> 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 :
>> 

>> root at bm1604:~# /usr/lib/cyrus/sbin/sync_client -n eclipse -o -u
>> tom at ex2016.vmw
>> Fatal error: Internal error: assertion failed: imap/message.c: 4246:
>> !message_need(m, M_RECORD)
>> root at bm1604:~# cyradm -u admin0 localhost



>> Password: 



>> localhost> version



>> name       : Cyrus IMAPD



>> version    : 3.0.0-beta6-3-gf721e5b



>> vendor     : Project Cyrus



>> support-url: http://www.cyrusimap.org



>> os         : Linux



>> os-version : 4.4.0-57-generic



>> environment: Built w/Cyrus SASL 2.1.26



>>              Running w/Cyrus SASL 2.1.26



>>              Built w/OpenSSL 1.0.2g  1 Mar 2016



>>              Running w/OpenSSL 1.0.2g  1 Mar 2016



>>              Built w/zlib 1.2.8



>>              Running w/zlib 1.2.8



>>              CMU Sieve 2.4



>>              mmap = shared



>>              lock = fcntl



>>              nonblock = ioctl



>>              idle = idled



>> 



>> root at bm1604:~# telnet localhost 1143



>> Connected to localhost.



>> Escape character is '^]'.



>> * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-
>>   IR] server ready
>> . login tom at ex2016.vmw xxxxxx



>> . 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>
>> . select inbox



>> * BYE Fatal error: Internal error: assertion failed: imap/message.c:
>>   4246: !message_need(m, M_RECORD)
>> Connection closed by foreign host.



>> 



>> Trying to reconstruct the mailbox does not help :



>> root at bm1604:~# /usr/lib/cyrus/sbin/reconstruct  -rfxGROU
>> tom at ex2016.vmw
>> tom at ex2016.vmw



>> The error is still here after that.



>> Any idea ?



>> Regards,



>> Thomas.



>> 



> 

> --

>   Bron Gondwana

>   brong at fastmail.fm

> 

> 



--

  Bron Gondwana

  brong at fastmail.fm




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20170103/3bd419f6/attachment.html>


More information about the Cyrus-devel mailing list