Yesterday, I upgraded my debian packages from 0.99.14 to 0.99.20050712-2. IMAP service has not been reliable since, and I was seeing crashes with one user.
I tried deleting the user's .subscriptions and .imap folders, and forcing the client (Mac OS X's Mail.app) to redownload everything, but that resulted in an empty inbox.
Here's what I have:
# dpkg -l dovecot* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=====================-=====================-========================================================== ii dovecot 0.99.14-1 dummy package for upgrades to dovecot IMAP and POP3 server ii dovecot-common 0.99.20050712-2 secure mail server that supports mbox and maildir mailboxe ii dovecot-imapd 0.99.20050712-2 secure IMAP server that supports mbox and maildir mailboxe ii dovecot-pop3d 0.99.20050712-2 secure POP3 server that supports mbox and maildir mailboxe
Here's what's in mail.log:
Aug 13 15:09:10 sandbox dovecot: imap-login: Login: stan [70.48.39.107] Aug 13 15:09:10 sandbox dovecot: IMAP(stan): file istream-raw-mbox.c: line 383 (istream_raw_mbox_get_body_size): assertion failed: (rstream->body_offset != (uoff_t)-1) Aug 13 15:09:10 sandbox dovecot: child 6748 (imap) killed with signal 6
I got a core dump. Here it is:
# gdb /usr/lib/dovecot/imap core (gdb) bt full #0 0x4004d83b in raise () from /lib/tls/libc.so.6 #1 0x4004efa2 in abort () from /lib/tls/libc.so.6 #2 0x08096fcb in i_set_failure_file () #3 0x08096ac7 in i_panic () #4 0x0807070f in istream_raw_mbox_get_body_size () #5 0x0806d1de in mbox_sync_has_changed () #6 0x0806eb50 in mbox_sync () #7 0x0806f9e7 in mbox_storage_sync_init () #8 0x0805ead5 in imap_sync_nonselected () #9 0x08057508 in _cmd_select_full () #10 0x080576d1 in cmd_select () #11 0x08058bf6 in _client_input () #12 0x0809c0c1 in io_loop_handler_run () #13 0x0809b65b in io_loop_run () #14 0x080602aa in main ()
I downgraded to 0.99.14 and put in the old configuration file and it seems to be working now.
What's going on?
Paul