Jonathan Siegle
2009-Jun-02 13:51 UTC
[Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
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-0002.bin>
Timo Sirainen
2009-Jun-02 16:28 UTC
[Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2009-06-02 at 09:51 -0400, Jonathan Siegle wrote:> 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 fileSo you're using AIX? Do you also happen to use NFS? Can you reproduce this error by running imaptest for a while? http://imapwiki.org/ImapTest -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090602/cda53b66/attachment-0002.bin>
jsiegle at psu.edu
2009-Jun-02 17:24 UTC
[Dovecot] record points outside file error with dovecot revision 9116:9ae55b68cf61
On Tue, 2 Jun 2009, Timo Sirainen wrote:> On Tue, 2009-06-02 at 09:51 -0400, Jonathan Siegle wrote: >> 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 > > So you're using AIX? Do you also happen to use NFS? Can you reproduce > this error by running imaptest for a while? http://imapwiki.org/ImapTest > >No NFS here. The filesystem is called GPFS. It is a clustered FS. I'll work on reproducing with imaptest. Once I reproduce, I'll give more details about how I run dovecot. thanks, Jonathan
Seemingly Similar Threads
- Running imaptest revision 209:939fa886391a built against dovecot revision 9116:9ae55b68cf61 on AIX 5.3 core dumps
- Panic with signal 6 core dump with revision 9116:9ae55b68cf61
- mbox-snarf plugin and istream-mail-stats.c revision 9000:b02c642b4e51
- dovecot 2.0 revision 12532:e030df616faf: problem with Snarf plugin
- mbox snarf plugin + idle