Jakob Curdes
2006-Oct-24 17:11 UTC
[Dovecot] Unsolved : mbox-sync-rewrite.c : assertion failed
Some days ago I wrote about an inaccessible mailbox after an upgrade from 0.99.14 to 1.0rc10. Today I get this problem with another mailbox but it seems to be it is not only related to the upgrade : - user comes back from holiday, does not see his inbox : dovecot: Oct 24 18:51:09 Error: IMAP(abcd): file mbox-sync-rewrite.c: line 405 (mbox_sync_read_and_move): assertion failed: (need_space == (uoff_t)-mails[idx].space) (he accessed it last with the old dc version) Solution : moving account to other server, copy everything over to the old account and it worked. This is what I did and afterwards the mailbox was readable. Now the user goes back to his PC (I made my work from another machine) and opens his mailclient (with the still existing account) and BINGO dovecot crashes again on the mailbox as berfore. Once ist has crashed on it, it than crashes always, even if you make a new account or remove the index. So I suppose it has rather to do with cached information in the client than with the upgrade itself. But nothing the client sends should be able to crash the server ! Hoping for an idea, Jakob Curdes
Timo Sirainen
2006-Oct-24 20:12 UTC
[Dovecot] Unsolved : mbox-sync-rewrite.c : assertion failed
On Tue, 2006-10-24 at 19:11 +0200, Jakob Curdes wrote:> dovecot: Oct 24 18:51:09 Error: IMAP(abcd): file mbox-sync-rewrite.c: > line 405 (mbox_sync_read_and_move): assertion failed: (need_space == > (uoff_t)-mails[idx].space)..> Now the user goes back to his PC (I made my work from another machine) > and opens his mailclient (with the still existing account) and BINGO > dovecot crashes again on the mailbox as berfore. Once ist has crashed on > it, it than crashes always, even if you make a new account or remove the > index.If you still have such a mbox, could you put it though: http://dovecot.org/tools/mbox-anonymize.pl And try if it still crashes, and if so send me the mbox? The script replaces pretty much everything with "x" letters, so its output should be pretty safe to send to me. Otherwise it probably takes a long time for me to figure out a way to reproduce it and fix it.. And currently I don't really have time to even try to do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20061024/54ffe3f7/attachment.bin>
Timo Sirainen
2006-Oct-26 00:18 UTC
[Dovecot] Unsolved : mbox-sync-rewrite.c : assertion failed
Looks like I broke keyword handling for mboxes in rc10, fix here: http://dovecot.org/list/dovecot-cvs/2006-October/006632.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20061026/05b94dd3/attachment.bin>