[Dovecot] Assertion Failures in Current CVS version

Todd Burroughs todd at hostopia.com
Thu Apr 28 02:55:55 EEST 2005


I've attached a few assertion errors in imap.  Any fixes or advice on
where to look are appreciated.

This is with the CVS version, current as of April 27.

Todd Burroughs
-------------- next part --------------
dovecot: Apr 27 00:00:45 Error:  5714 IMAP(chairman): file mail-index-transaction.c: line 808 (mail_index_update_ext): assertion failed: (seq > 0 && (seq <= mail_index_view_get_messages_count(t->view) || seq <= t->last_new_seq))
dovecot: Apr 27 00:00:46 Error: child 5714 (imap) killed with signal 6


(gdb) bt full
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0xbffff4e8 in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x00001652 in ?? ()
No symbol table info available.
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x08098eba in i_internal_panic_handler (
    fmt=0x6 <Address 0x6 out of bounds>, 
    args=0x1652 <Address 0x1652 out of bounds>) at failures.c:374
No locals.
#7  0x080992d4 in i_panic (
    format=0x80a570c "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
No locals.
#8  0x08081453 in mail_index_update_ext (t=0x80c9a88, seq=1, ext_id=2, 
    data=0xbffff6c8, old_data_r=0x0) at mail-index-transaction.c:806
        index = (struct mail_index *) 0x80cb480
        intro = Variable "intro" is not available.


(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbffff4e8 in ?? ()
#2  0x00000006 in ?? ()
#3  0x00001652 in ?? ()
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
#6  0x08098eba in i_internal_panic_handler (
    fmt=0x6 <Address 0x6 out of bounds>, 
    args=0x1652 <Address 0x1652 out of bounds>) at failures.c:374
#7  0x080992d4 in i_panic (
    format=0x80a570c "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
#8  0x08081453 in mail_index_update_ext (t=0x80c9a88, seq=1, ext_id=2, 
    data=0xbffff6c8, old_data_r=0x0) at mail-index-transaction.c:806
#9  0x0806ccb3 in update_from_offsets (sync_ctx=0xbffff7f0) at mbox-sync.c:598
#10 0x0806f2f9 in mbox_sync (mbox=0x80c3a70, flags=Variable "flags" is not available.
) at mbox-sync.c:1189
#11 0x08068426 in mbox_storage_close (box=0x80c3a70) at mbox-storage.c:955
#12 0x0808ce9d in mailbox_close (box=0x0) at mail-storage.c:300
#13 0x08055e6b in cmd_close (cmd=0x80bcb98) at cmd-close.c:24
#14 0x08059635 in _client_input (context=0x80bcb58) at client.c:334
#15 0x0809e04a in io_loop_handler_run (ioloop=0x80bb9b0) at ioloop-poll.c:184
#16 0x0809d769 in io_loop_run (ioloop=0x80bb9b0) at ioloop.c:218
#17 0x08060537 in main (argc=1, argv=0xbffffa74, envp=0xbffffa7c) at main.c:228



(gdb) down
#8  0x08081453 in mail_index_update_ext (t=0x80c9a88, seq=1, ext_id=2, 
    data=0xbffff6c8, old_data_r=0x0) at mail-index-transaction.c:806
806             i_assert(seq > 0 &&
(gdb) p t->view->hdr.messages_count
$6 = 0
(gdb) p t->last_new_seq
$7 = 0

-------------- next part --------------
dovecot: Apr 26 23:05:06 Error:  3536 IMAP(support): Corrupted transaction log file /mailhome/new/m/2/support/.imap/INBOX/dovecot.index.log.2: invalid indexid (1114564800 != 1114571103)
dovecot: Apr 26 23:13:30 Error:  3536 IMAP(support): UIDVALIDITY changed (1114570968 -> 1114571601) in mbox file /mailhome/new/m/2/support/mbox
dovecot: Apr 26 23:13:30 Error:  3536 IMAP(support): file mbox-lock.c: line 518 (mbox_lock): assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK)
dovecot: Apr 26 23:13:31 Error: child 3536 (imap) killed with signal 6


(gdb) bt full
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0xbffff518 in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x00000dd0 in ?? ()
No symbol table info available.
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x08098eba in i_internal_panic_handler (
    fmt=0x6 <Address 0x6 out of bounds>, 
    args=0xdd0 <Address 0xdd0 out of bounds>) at failures.c:374
No locals.
#7  0x080992d4 in i_panic (
    format=0x80a570c "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
No locals.
#8  0x0806a7e1 in mbox_lock (mbox=0x80c3bc8, lock_type=1, lock_id_r=0xbffff72c)
    at mbox-lock.c:532
        ret = 0
#9  0x0806eddc in mbox_sync (mbox=0x80c3bc8, flags=MBOX_SYNC_REWRITE)
    at mbox-sync.c:1488
        lock_type = Variable "lock_type" is not available.


(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbffff518 in ?? ()
#2  0x00000006 in ?? ()
#3  0x00000dd0 in ?? ()
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
#6  0x08098eba in i_internal_panic_handler (
    fmt=0x6 <Address 0x6 out of bounds>, 
    args=0xdd0 <Address 0xdd0 out of bounds>) at failures.c:374
#7  0x080992d4 in i_panic (
    format=0x80a570c "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
#8  0x0806a7e1 in mbox_lock (mbox=0x80c3bc8, lock_type=1, lock_id_r=0xbffff72c)
    at mbox-lock.c:532
#9  0x0806eddc in mbox_sync (mbox=0x80c3bc8, flags=MBOX_SYNC_REWRITE)
    at mbox-sync.c:1488
#10 0x08068426 in mbox_storage_close (box=0x80c3bc8) at mbox-storage.c:955
#11 0x0808ce9d in mailbox_close (box=0x0) at mail-storage.c:300
#12 0x0805942a in client_destroy (client=0x80bcb58) at client.c:72
#13 0x0805973c in _client_input (context=0x80bcb58) at client.c:391
#14 0x0809e04a in io_loop_handler_run (ioloop=0x80bb9b0) at ioloop-poll.c:184
#15 0x0809d769 in io_loop_run (ioloop=0x80bb9b0) at ioloop.c:218
#16 0x08060537 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:228


(gdb) up
#8  0x0806a7e1 in mbox_lock (mbox=0x80c3bc8, lock_type=1, lock_id_r=0xbffff72c)
    at mbox-lock.c:532
532                     mbox->mbox_excl_locks++;
(gdb) p mbox->mbox_lock_type
$1 = 0

-------------- next part --------------
dovecot: Apr 27 15:16:23 Error:  27291 IMAP(support): mbox sync: UID inserted in the middle of mailbox /mailhome/new/s/b/support/DONE (122769 > 119000)
dovecot: Apr 27 15:16:27 Error:  27291 IMAP(support): file mbox-sync.c: line 1154 (mbox_sync_handle_eof_updates): assertion failed: (file_size >= sync_ctx->file_input->v_offset)
dovecot: Apr 27 15:16:36 Error: child 27291 (imap) killed with signal 6


Core was generated by `imap'.
Program terminated with signal 6, Aborted.
(gdb) bt full
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0xbffff4c8 in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x00006a9b in ?? ()
No symbol table info available.
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x08098eba in i_internal_panic_handler (
    fmt=0x6 <Address 0x6 out of bounds>, 
    args=0x6a9b <Address 0x6a9b out of bounds>) at failures.c:374
No locals.
#7  0x080992d4 in i_panic (
    format=0x80a570c "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
No locals.
#8  0x0806ef1b in mbox_sync (mbox=0x80c6518, flags=Variable "flags" is not available.
) at mbox-sync.c:1154
        index_sync_ctx = Variable "index_sync_ctx" is not available.


(gdb) bt
#0  0xffffe410 in ?? ()
#1  0xbffff4c8 in ?? ()
#2  0x00000006 in ?? ()
#3  0x00006a9b in ?? ()
#4  0xb7ef1d41 in raise () from /lib/tls/libc.so.6
#5  0xb7ef3529 in abort () from /lib/tls/libc.so.6
#6  0x08098eba in i_internal_panic_handler (
    fmt=0x6 <Address 0x6 out of bounds>, 
    args=0x6a9b <Address 0x6a9b out of bounds>) at failures.c:374
#7  0x080992d4 in i_panic (
    format=0x80a570c "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:173
#8  0x0806ef1b in mbox_sync (mbox=0x80c6518, flags=Variable "flags" is not available.
) at mbox-sync.c:1154
#9  0x0806f919 in mbox_storage_sync_init (box=0x80c6518, flags=0)
    at mbox-sync.c:1651
#10 0x0808cf11 in mailbox_sync_init (box=0x0, flags=0) at mail-storage.c:333
#11 0x0805ea28 in imap_sync_nonselected (box=0x80c6518, flags=0)
    at imap-sync.c:166
#12 0x08058634 in cmd_status (cmd=0x80bcb98) at cmd-status.c:68
#13 0x08059635 in _client_input (context=0x80bcb58) at client.c:334
#14 0x0809e04a in io_loop_handler_run (ioloop=0x80bb9b0) at ioloop-poll.c:184
#15 0x0809d769 in io_loop_run (ioloop=0x80bb9b0) at ioloop.c:218
#16 0x08060537 in main (argc=1, argv=0xbffffa54, envp=0xbffffa5c) at main.c:228


(gdb) up
#8  0x0806ef1b in mbox_sync (mbox=0x80c6518, flags=Variable "flags" is not available.
) at mbox-sync.c:1154
1154            i_assert(file_size >= sync_ctx->file_input->v_offset);
(gdb) p file_size
No symbol "file_size" in current context.
(gdb) p sync_ctx->file_input->v_offset
$1 = 210107450

The file 'DONE' is 210107465 bytes long, however it has been touched
since this happened, so it is quite possible that it was smaller than
210107450 bytes.


More information about the dovecot mailing list