[Dovecot] Assertion failure in mail-index-view-sync.c

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed Sep 19 14:53:36 EEST 2007



Doug Council wrote:
> I have been getting these assertion failures every couple days, killing
> the IMAP process.  After it happens, I can login immediately and
> everything is fine until it happens again.  Here is the log entry:
> 
> Sep 10 10:03:41 mailbox-4 dovecot: nh: IMAP(username): file
> mail-index-view-sync.c: line 666 (mail_index_view_sync_end): assertion
> failed: (view->log_file_offset >= view->map->hdr.log_file_int_offset)
> Sep 10 10:03:41 mailbox-4 dovecot: child 38458 (imap) killed with signal 6
> 

I've got one of these after an upgrade from 1.0rc17 to 1.0.5

> It started after I disabled indexing for deliver and IMAP:

Which I didn't do, indexing stayed the same (in fact dovecot.conf did!)

We're logging "SELECT" so I know the user had successfully opened his
INBOX with 567 messages, then his Sent folder, then his INBOX again (568
messages) then five minutes later the crash (all in the same process).

Here's a backtrace:

#0  0xff21fc14 in _libc_kill () from /usr/lib/libc.so.1
(gdb) bt
#0  0xff21fc14 in _libc_kill () from /usr/lib/libc.so.1
#1  0xff1b598c in abort () from /usr/lib/libc.so.1
#2  0x7a2f0 in i_internal_panic_handler (
    fmt=0x97758 "file %s: line %d (%s): assertion failed: (%s)",
    args=0xffbeef18) at failures.c:403
#3  0x79ccc in i_panic (
    format=0x97758 "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:183
#4  0x611a4 in mail_index_view_sync_end (_ctx=0xc87d8)
    at ../../src/lib/array.h:81
#5  0x4e314 in index_mailbox_sync_deinit (_ctx=0xc87d0, status_r=0xffbef088)
    at index-sync.c:311
#6  0x6a61c in mailbox_sync_deinit (_ctx=0xc5c18, status_r=0xffbef088)
    at mail-storage.c:421
#7  0x29d78 in imap_sync_deinit (ctx=0xc5c08) at imap-sync.c:67
#8  0x2a1d4 in cmd_sync_continue (cmd=0xbb69c) at imap-sync.c:215
#9  0x2a2ec in cmd_sync (cmd=0xbb69c, flags=28, imap_flags=0,
    tagline=0x8c690 "OK Fetch completed.") at imap-sync.c:252
#10 0x1ee10 in cmd_fetch_finish (ctx=0xbd930) at cmd-fetch.c:103
#11 0x1f00c in cmd_fetch (cmd=0xbb69c) at cmd-fetch.c:173
#12 0x22154 in cmd_uid (cmd=0xbb69c) at cmd-uid.c:19
#13 0x22e70 in client_handle_input (cmd=0xbb69c) at client.c:344
#14 0x22df0 in client_handle_input (cmd=0xbb69c) at client.c:398
#15 0x22f8c in _client_input (context=0xbb658) at client.c:441
#16 0x80b0c in io_loop_handler_run (ioloop=0xb8230) at ioloop-poll.c:199
#17 0x80324 in io_loop_run (ioloop=0xb8230) at ioloop.c:329
#18 0x2c498 in main (argc=0, argv=0xffbef604, envp=0xffbef614) at main.c:290

Chris

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094


More information about the dovecot mailing list