[Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61

Jonathan Siegle jsiegle at psu.edu
Tue Jun 2 16:51:31 EEST 2009


I use mbox with mbox-snarf plugin.

I get errors like:

  dovecot: IMAP(testuser): Corrupted index cache file /full/path/ 
dovecot.index.cache:  record points outside file

The errors can be in either folders or INBOX.

I put some syslog statements in src/lib-index/mail-cache-lookup.c to  
help understand this.

   if (offset + sizeof(*rec) > cache->mmap_length) {
                 mail_cache_set_corrupted(cache, "record points  
outside file");
                 syslog(LOG_DEBUG,"mail_cache_get_record rec->size is  
%d ", rec->size);
                 syslog(LOG_DEBUG,"cache->mmap_length is %d ", cache- 
 >mmap_length);
                 syslog(LOG_DEBUG,"offset is %d ", offset);
                 return -1;
}


syslog: mail_cache_get_record rec->size is 268595472
syslog: cache->mmap_length is 4096
syslog: offset is 1630760037



Oh I forgot to print off sizeof(*rec). Would that help?

Thanks,
Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2541 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090602/70e8cc50/attachment.bin 


More information about the dovecot mailing list