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

Nic Bernstein nic at onlight.com
Thu Jul 26 16:02:11 EDT 2018


Bron,
Answering my own question, I now see that the fix you refer to is in 
cfb3054, imap/mailbox.c on 1/2/2017, which is in both master and 3.0... 
However, I've still got the problem, so same failed assertion, but 
different bug?
     -nic

On 07/24/2018 12:10 PM, Nic Bernstein wrote:
> Bron, et al.,
> Was this change ever cherry-picked to 3.0?  I am seeing the same issue 
> with recent 3.0 HEAD, but slightly different location:
>
>     user.masked: updating sync_crc 521983118 => 503807715
>     fatal error: Internal error: assertion failed: imap/message.c:
>     4286: !message_need(m, M_RECORD)
>
> A git log of imap/message.c doesn't show a commit from 1/2/2017, and 
> nothing affecting imap/message.c around that time seems to line up 
> with this.
>
> Please advise,
>     -nic
>
> On 01/02/2017 07:13 AM, Bron Gondwana via Cyrus-devel wrote:
>> 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
>>
>>
>
> -- 
> Nic Bernsteinnic at onlight.com
> Onlight, Inc.www.onlight.com
> 6525 W Bluemound Road, Suite 24           v. 414.272.4477
> Milwaukee, Wisconsin  53213-4073

-- 
Nic Bernstein                             nic at onlight.com
Onlight, Inc.                             www.onlight.com
6525 W Bluemound Road, Suite 24           v. 414.272.4477
Milwaukee, Wisconsin  53213-4073

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20180726/f3f1445a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nic.vcf
Type: text/x-vcard
Size: 278 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20180726/f3f1445a/attachment.vcf>


More information about the Cyrus-devel mailing list