[Dovecot] Subject: IMAP crash on index

Ruan Kendall shearwater at gmail.com
Mon Jun 6 13:09:54 EEST 2011


I'm running Dovecot 1.2.15 as an IMAP server on an up-to-date Debian
v6 VM. I've recently upgraded the server from a pretty crusty old
Debian v4 installation, though I don't recall exactly which version of
Dovecot that would have been running. I guess I could try crawling
through the old logs to check if it is likely to be useful. The
upgrade seemed to have gone fine and I've been using the new server
for about a week, but this morning I'm finding that whilst I can
successfully connect to the IMAP server using Mutt, it can't display a
mail index and a quick peek at the logs shows the IMAP process falling
over:

(account and server IP replaced)

Jun  6 10:39:27 xen dovecot: Dovecot v1.2.15 starting up (core dumps disabled)
Jun  6 10:39:27 xen dovecot: auth-worker(default): mysql: Connected to
localhost (mail)
Jun  6 10:39:34 xen dovecot: imap-login: Login:
user=<example at example.org>, method=PLAIN, rip=::1, lip=::1, TLS
Jun  6 10:39:35 xen dovecot: IMAP(example at example.org): Panic: file
mail-index-view.c: line 264 (view_lookup_seq_range): assertion failed:
(first_uid > 0)
Jun  6 10:39:35 xen dovecot: IMAP(example at example.org): Raw backtrace:
imap() [0x80f0e1e] -> imap() [0x80f0e82] -> imap() [0x80f0809] ->
imap() [0x80ceb17] -> imap(mail_index_lookup_seq+0x26) [0x80ce5f6] ->
imap() [0x80c481d] -> imap(mail_index_modseq_hdr_update+0x2e)
[0x80c48ee] -> imap(mail_index_sync_ext_hdr_update+0xbb) [0x80de91b]
-> imap(mail_index_sync_record+0x40f) [0x80cd57f] ->
imap(mail_index_sync_map+0x2dd) [0x80cdfed] ->
imap(mail_index_map+0x5c7) [0x80c3557] -> imap() [0x80bfd87] ->
imap(mail_index_open+0x23f) [0x80c01ff] ->
imap(index_storage_mailbox_open+0x71) [0x80abc81] ->
imap(maildir_storage_sync_init+0x188) [0x8086c18] ->
imap(mailbox_sync+0x31) [0x80b59d1] -> imap(imap_status_get+0x8a)
[0x806f0ea] -> imap(cmd_status+0x123) [0x8065dd3] -> imap()
[0x8067b5c] -> imap() [0x8067c32] -> imap(client_handle_input+0x175)
[0x8067eb5] -> imap(client_input+0x5f) [0x80686ef] ->
imap(io_loop_handler_run+0xd6) [0x80f9aa6] -> imap(io_loop_run+0x20)
[0x80f8f20] -> imap(main+0x5b4) [0x8070f24] -> /lib/i
Jun  6 10:39:35 xen dovecot: IMAP(example at example.org): 76] -> imap()
[0x80603a1]
Jun  6 10:39:35 xen dovecot: dovecot: child 20617 (imap) killed with
signal 6 (core dumps disabled)

I've not been able to find any mentions of this error occurring for
other people. I've not looked at the source to see what the server is
trying to do at this point. Restarting the IMAP service doesn't help.

Any suggestions or advice?


More information about the dovecot mailing list