[Dovecot] Two different issues with dovecot 1.1.13

2009-07-28 Thread Stuart Rowan

Hi Timo,

I'm using Debian backports.org dovecot-imapd, 1:1.1.13-2~bpo50+1. I've got 
two different issues, a reoccurring, seemingly harmless one about 
Corrupted index cache file (boring.txt)
 and one that went bonkers over the least few days (bt.txt) causing much 
spamming of the logs.


I've made bt.txt stop happening by just rm'ing dovecot.index* :
find Maildir/ -type f -name 'dovecot.index*' -print0 | xargs -0r rm
 ... which I realise may not be the most helpful thing to have done from 
your point of view.


Anyway I just wanted to let you know about both of these. If one or both 
are already known about or already fixed by a later version of Dovecot, 
great and sorry for the noise! If not, and you want any more information 
etc., let me know.


Many thanks,
Stu.

dovecot: 2009-07-28 10:23:16 Error: IMAP(strr): Corrupted index cache file 
/home/local/strr/Maildir/dovecot.index.cache: record continues outside its 
allocated size
dovecot: 2009-07-28 10:23:56 Error: IMAP(strr): Corrupted index cache file 
/home/local/strr/Maildir/dovecot.index.cache: record continues outside its 
allocated size
dovecot: 2009-07-28 08:05:54 Panic: IMAP(strr): file index-mail-headers.c: line 
77 (index_mail_parse_header_finish): assertion failed: ((match[match_idx]  
HEADER_MAT
CH_FLAG_FOUND) == 0)
dovecot: 2009-07-28 08:05:54 Error: IMAP(strr): Raw backtrace: imap [0x48dbf2] 
- imap [0x48dc73] - imap [0x48d346] - imap(index_mail_parse_header+0x617) 
[0x4545f7]
 - imap [0x483284] - imap [0x483478] - imap(i_stream_read+0x2c) [0x491d7c] 
- imap(i_stream_read_data+0x46) [0x491f16] - 
imap(message_get_body_size+0x108) [0x4885
a8] - imap [0x4226c3] - imap(imap_fetch+0x162) [0x420852] - 
imap(cmd_fetch+0x23c) [0x41a27c] - imap [0x41e46c] - imap [0x41e51d] - imap 
[0x41eb25] - imap(clien
t_input+0x63) [0x41efd3] - imap(io_loop_handler_run+0xcb) [0x49515b] - 
imap(io_loop_run+0x18) [0x4945c8] - imap(main+0x3da) [0x426bea] - 
/lib/libc.so.6(__libc_sta
rt_main+0xe6) [0x7f0e851941a6] - imap [0x418859]
dovecot: 2009-07-28 08:05:54 Error: child 20007 (imap) killed with signal 6 
(core dumps disabled)
dovecot: 2009-07-28 08:05:56 Panic: IMAP(strr): file index-mail-headers.c: line 
77 (index_mail_parse_header_finish): assertion failed: ((match[match_idx]  
HEADER_MAT
CH_FLAG_FOUND) == 0)
dovecot: 2009-07-28 08:05:56 Error: IMAP(strr): Raw backtrace: imap [0x48dbf2] 
- imap [0x48dc73] - imap [0x48d346] - imap(index_mail_parse_header+0x617) 
[0x4545f7]
 - imap [0x483284] - imap [0x483478] - imap(i_stream_read+0x2c) [0x491d7c] 
- imap(i_stream_read_data+0x46) [0x491f16] - 
imap(message_get_body_size+0x108) [0x4885
a8] - imap [0x4226c3] - imap(imap_fetch+0x162) [0x420852] - 
imap(cmd_fetch+0x23c) [0x41a27c] - imap [0x41e46c] - imap [0x41e51d] - imap 
[0x41eb25] - imap(clien
t_input+0x63) [0x41efd3] - imap(io_loop_handler_run+0xcb) [0x49515b] - 
imap(io_loop_run+0x18) [0x4945c8] - imap(main+0x3da) [0x426bea] - 
/lib/libc.so.6(__libc_sta
rt_main+0xe6) [0x7f2edf08b1a6] - imap [0x418859]
dovecot: 2009-07-28 08:05:56 Error: child 20984 (imap) killed with signal 6 
(core dumps disabled)


Re: [Dovecot] Two different issues with dovecot 1.1.13

2009-07-28 Thread Timo Sirainen
On Tue, 2009-07-28 at 19:17 +0100, Stuart Rowan wrote:
 dovecot: 2009-07-28 10:23:16 Error: IMAP(strr): Corrupted index cache file 
 /home/local/strr/Maildir/dovecot.index.cache: record continues outside its 
 allocated size
 dovecot: 2009-07-28 10:23:56 Error: IMAP(strr): Corrupted index cache file 
 /home/local/strr/Maildir/dovecot.index.cache: record continues outside its 
 allocated size

These are kind of annoying. Apparently they still happens in some
conditions, but I've really no idea how to reproduce/fix them. Anyway
I'm going to simplify the code in a few months, maybe after that there
will be no more cache corruption. :)

 dovecot: 2009-07-28 08:05:54 Panic: IMAP(strr): file index-mail-headers.c: 
 line 77 (index_mail_parse_header_finish): assertion failed: 
 ((match[match_idx]  HEADER_MAT
 CH_FLAG_FOUND) == 0)

This was fixed in v1.1.16 with
http://hg.dovecot.org/dovecot-1.1/rev/e596c98605dd



signature.asc
Description: This is a digitally signed message part