[Dovecot] Rebuilding indexes fails on inconsistent mdbox

Milan Holzäpfel listen at mjh.name
Fri Nov 9 17:18:45 EET 2012


On Mon, 29 Oct 2012 17:31:42 +0200
Timo Sirainen <tss at iki.fi> wrote:

> On 24.10.2012, at 14.28, Milan Holzäpfel wrote:
> 
> > Oct 24 10:45:19 two dovecot: imap(listen at mjh.name): Panic: file mdbox-storage-rebuild.c: line 773 (rebuild_update_refcounts): assertion failed: (map_uid < msgs[i]->map_uid)
> 
> Now this is a bug.
> 
> > Dovecot 2.0.19-0ubuntu1
> 
> But the bug may have already been fixed in v2.1.

I downloaded Dovecot 2.1.10 and compiled from source. Accessing the
mailbox still fails:

$ doveadm mailbox status all xen-devel
doveadm(...): Error: mdbox map /home/test/mdbox/storage/dovecot.map.index corrupted: Unexpectedly lost xen-devel uid=108079 map_uid=809892
doveadm(...): Warning: mdbox /home/test/mdbox/storage: rebuilding indexes
doveadm(...): Panic: file mdbox-storage-rebuild.c: line 743 (rebuild_update_refcounts): assertion failed: (map_uid < msgs[i]->map_uid)
doveadm(...): Error: Raw backtrace: /home/test/prefix/dovecot/lib/dovecot/libdovecot.so.0(+0x45b3a) [0x7fd2942f9b3a] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7fd2942f9bfa] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fd2942cdc60] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot-storage.so.0(mdbox_storage_rebuild_in_context+0x105e) [0x7fd2945838be] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot-storage.so.0(mdbox_storage_rebuild+0x24) [0x7fd294583a54] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot-storage.so.0(+0x3b525) [0x7fd294581525] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot-storage.so.0(mailbox_close+0x1a) [0x7fd2945c047a] -> /home/test/prefix/dovecot/lib/dovecot/libdovecot-storage.so.0(mailbox_free+0x13) [0x7fd2945c04c3] -> /home/test/prefix/dovecot/bin/doveadm() [0x41383d] -> /home/test/prefix/dovecot/bin/doveadm() [0x40e8e7] -> /home/test/prefix/dovecot/bin/doveadm() [0x40f3ae] -> /home/test/prefix/dovecot/bin/doveadm(doveadm_mail_try_run+0x11e) [0x40f8be] -> /home/test/prefix/dovecot/bin/doveadm(main+0x3bd) [0x40e50d] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fd293f1676d] -> /home/test/prefix/dovecot/bin/doveadm() [0x40e6f1]
Aborted

I will send you an Email with a download link for the files. 

Thanks for you help.

Regards,
Milan


-- 
Milan Holzäpfel <listen at mjh.name>



More information about the dovecot mailing list