[Dovecot] Dovecot 1.1.1 killed with SIGABRT

Diego Liziero diegoliz at gmail.com
Fri Aug 8 14:27:03 EEST 2008


On Fri, Aug 1, 2008 at 12:00 PM, Diego Liziero <diegoliz at gmail.com> wrote:
> On Mon, Jul 21, 2008 at 8:13 PM, Timo Sirainen <tss at iki.fi> wrote:
>> On Mon, 2008-07-21 at 18:08 +0200, Andreas M. Kirchwitz wrote:
>>>  >> Jul 12 01:04:45 linux dovecot: Panic: IMAP(user2): file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion failed: (seq_range_exists(&ibox->recent_flags, uid))
>>
>> I think I finally managed to fix this:
>> http://hg.dovecot.org/dovecot-1.1/rev/48bbaf0c3e4d
>
> Unfortunately just got it again with dovecot 1.1.2
> seq_range_exists(&ibox->recent_flags, uid)

Got it again, I've exec and core file, if you need them.

BTW, I'm getting this assertion failure definetly less frequently than before.

Could it be just a leftover from the previous unpatched version?

Regards,
Diego.

----

Panic: IMAP(user): file index-sync.c: line 42
(index_mailbox_set_recent_uid): assertion failed:
(seq_range_exists(&ibox->recent_flags, uid))
Error: IMAP(user): Raw backtrace: /usr/libexec/dovecot/imap
[0x80f609c] -> /usr/libexec/dovecot/imap [0x80f693f] ->
/usr/libexec/dovecot/imap(i_fatal+0) [0x80f61f8] ->
/usr/libexec/dovecot/imap(index_mailbox_set_recent_uid+0xbc)
[0x80b201f] -> /usr/libexec/dovecot/imap(index_mailbox_set_recent_seq+0x33)
[0x80b2095] -> /usr/libexec/dovecot/imap [0x808f02b] ->
/usr/libexec/dovecot/imap [0x808f64d] -> /usr/libexec/dovecot/imap
[0x808ffb7] -> /usr/libexec/dovecot/imap(mbox_sync+0x2b) [0x8090243]
-> /usr/libexec/dovecot/imap [0x80851a1] ->
/usr/libexec/dovecot/imap(mail_index_transaction_commit+0x59)
[0x80c6df2] -> /usr/libexec/dovecot/imap(index_transaction_commit+0x65)
[0x80b3901] -> /usr/libexec/dovecot/imap(mailbox_transaction_commit_get_uids+0x50)
[0x80b6bce] -> /usr/libexec/dovecot/imap [0x805a994] ->
/usr/libexec/dovecot/imap [0x805a3a0] ->
/usr/libexec/dovecot/imap(io_loop_handler_run+0x17d) [0x81006e8] ->
/usr/libexec/dovecot/imap(io_loop_run+0x35) [0x80ff996] ->
/usr/libexec/dovecot/imap(main+0xe4) [0x806de3d] -> /lib/li
Error: IMAP(user): bc.so.6(__libc_start_main+0xdc) [0x42bdec] ->
/usr/libexec/dovecot/imap [0x805a1a1]
Error: child 14026 (imap) killed with signal 6

(gdb) bt full
No symbol table info available.
#1  0x0043ed20 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0x00440631 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x080f60be in default_fatal_finish (type=LOG_TYPE_PANIC, status=0)
at failures.c:149
        backtrace = 0x9f34738 "/usr/libexec/dovecot/imap [0x80f609c]
-> /usr/libexec/dovecot/imap [0x80f693f] ->
/usr/libexec/dovecot/imap(i_fatal+0) [0x80f61f8] ->
/usr/libexec/dovecot/imap(index_mailbox_set_recent_uid+0xbc) [0x80"...
#4  0x080f693f in i_internal_fatal_handler (type=LOG_TYPE_PANIC,
status=0, fmt=0x8119ea0 "file %s: line %d (%s): assertion failed:
(%s)",
    args=0xbfe8da34 "\223\236\021\b*") at failures.c:423
No locals.
#5  0x080f61f8 in i_panic (format=0x8119ea0 "file %s: line %d (%s):
assertion failed: (%s)") at failures.c:190
        args = 0xbfe8da34 "\223\236\021\b*"
#6  0x080b201f in index_mailbox_set_recent_uid (ibox=0x9f46e48,
uid=14) at index-sync.c:42
        __PRETTY_FUNCTION__ = "index_mailbox_set_recent_uid"
#7  0x080b2095 in index_mailbox_set_recent_seq (ibox=0x9f46e48,
view=0x9f50c10, seq1=2, seq2=7) at index-sync.c:59
        uid = 14
#8  0x0808f02b in mbox_sync_update_index_header (sync_ctx=0xbfe8dc04)
at mbox-sync.c:1424
        view = (struct mail_index_view *) 0x9f50c10
        st = (const struct stat *) 0x9f580c0
        first_recent_uid = 0
        seq = 2
        seq2 = 7
        __PRETTY_FUNCTION__ = "mbox_sync_update_index_header"
#9  0x0808f64d in mbox_sync_do (sync_ctx=0xbfe8dc04, flags=18) at
mbox-sync.c:1560
        mail_ctx = {sync_ctx = 0xbfe8dc04, mail = {uid = 19, idx_seq =
7, keywords = {arr = {buffer = 0x0, element_size = 0}, v = 0x0,
      v_modifiable = 0x0}, flags = 40 '(', uid_broken = 0, expunged =
0, pseudo = 0, from_offset = 7366, body_size = 414, offset = 8025,
    space = 70}, seq = 7, hdr_offset = 7433, body_offset = 8117,
header_first_change = 4294967295, header_last_change = 0,
  header = 0x9f57c80, hdr_md5_sum =
"){\023??????\\??????y\226???Z\221?????????", content_length = 414,
hdr_pos = {578, 4294967295, 592, 4294967295,
    567}, parsed_uid = 19, last_uid_updated_value = 0,
last_uid_value_start_pos = 0, have_eoh = 1, need_rewrite = 0,
seen_imapbase = 0,
  updated = 0, recent = 1, dirty = 0, imapbase_rewrite = 0,
imapbase_updated = 0}
        st = (const struct stat *) 0x9f580c0
        i = 0
        ret = 1
        partial = 1
#10 0x0808ffb7 in mbox_sync_int (mbox=0x9f46e48, flags=18) at mbox-sync.c:1803
        index_sync_ctx = (struct mail_index_sync_ctx *) 0x9f48700
        sync_view = (struct mail_index_view *) 0x9f48780
        trans = (struct mail_index_transaction *) 0x9f48e48
        sync_ctx = {mbox = 0x9f46e48, flags = 18, input = 0x9f4c9f8,
file_input = 0x9f580a0, write_fd = 10, orig_mtime = 1218018624,
  orig_atime = 1218017251, orig_size = 8532, last_stat = {st_dev =
37637, __pad1 = 0, __st_ino = 8896514, st_mode = 33152, st_nlink = 1,
    st_uid = 1470, st_gid = 508, st_rdev = 0, __pad2 = 0, st_size =
8532, st_blksize = 4096, st_blocks = 32, st_atim = {
      tv_sec = 1218018624, tv_nsec = 0}, st_mtim = {tv_sec =
1218018624, tv_nsec = 0}, st_ctim = {tv_sec = 1218018624, tv_nsec =
0},
    st_ino = 8896514}, index_sync_ctx = 0x9f48700, sync_view =
0x9f48780, t = 0x9f48e48, reset_hdr = {major_version = 0 '\0',
    minor_version = 0 '\0', base_header_size = 0, header_size = 0,
record_size = 0, compat_flags = 0 '\0', unused = "\000\000",
    indexid = 0, flags = 0, uid_validity = 0, next_uid = 0,
messages_count = 0, unused_old_recent_messages_count = 0,
    seen_messages_count = 0, deleted_messages_count = 0,
first_recent_uid = 0, first_unseen_uid_lowwater = 0,
    first_deleted_uid_lowwater = 0, log_file_seq = 0,
log_file_tail_offset = 0, log_file_head_offset = 0, sync_size = 0,
sync_stamp = 0,
    day_stamp = 0, day_first_uid = {0, 0, 0, 0, 0, 0, 0, 0}}, hdr =
0x9f57cf0, header = 0x9f57c80, from_line = 0x9f57c60,
  base_uid_validity = 1141738008, base_uid_last = 13,
base_uid_last_offset = 280, mails = {arr = {buffer = 0x9f57dd8,
element_size = 52},
    v = 0x9f57dd8, v_modifiable = 0x9f57dd8}, sync_changes =
0x9f57df8, mail_keyword_pool = 0x9f4be18, saved_keywords_pool =
0x9f58280,
  prev_msg_uid = 19, next_uid = 20, idx_next_uid = 20, seq = 7,
idx_seq = 8, need_space_seq = 0, last_nonrecent_uid = 13,
  expunged_space = 0, space_diff = 0, dest_first_mail = 0,
first_mail_crlf_expunged = 0, delay_writes = 0, renumber_uids = 0,
  moved_offsets = 0, ext_modified = 0, index_reset = 0, errors = 0}
        sync_flags = MAIL_INDEX_SYNC_FLAG_FLUSH_DIRTY
        lock_id = 3
        ret = 1
        changed = 1
        delay_writes = false
        __PRETTY_FUNCTION__ = "mbox_sync_int"
#11 0x08090243 in mbox_sync (mbox=0x9f46e48, flags=18) at mbox-sync.c:1870
        ret = 0
#12 0x080851a1 in mbox_transaction_commit (t=0x9f48900,
log_file_seq_r=0xbfe8dedc, log_file_offset_r=0xbfe8ded0) at
mbox-transaction.c:45
        mt = (struct mbox_transaction_context *) 0x0
        mbox = (struct mbox_mailbox *) 0x9f46e48
        lock_id = 3
        mails_saved = true
        ret = 0
#13 0x080c6df2 in mail_index_transaction_commit (_t=0xbfe8dee0,
log_file_seq_r=0xbfe8dedc, log_file_offset_r=0xbfe8ded0)
    at mail-index-transaction.c:631
        t = (struct mail_index_transaction *) 0x9f48900
#14 0x080b3901 in index_transaction_commit (_t=0x9f48ba0,
uid_validity_r=0xbfe8df5c, first_saved_uid_r=0xbfe8df58,
    last_saved_uid_r=0xbfe8df54) at index-transaction.c:105
        t = (struct index_transaction_context *) 0x9f48ba0
        itrans = (struct mail_index_transaction *) 0x0
        seq = 2
        offset = 964
#15 0x080b6bce in mailbox_transaction_commit_get_uids (_t=0x9f39690,
uid_validity_r=0xbfe8df5c, first_saved_uid_r=0xbfe8df58,
    last_saved_uid_r=0xbfe8df54) at mail-storage.c:682
        t = (struct mailbox_transaction_context *) 0x9f48ba0
#16 0x0805a994 in cmd_append_continue_parsing (cmd=0x9f39600) at
cmd-append.c:252
        uid2 = 19
        msg = 0x1 <Address 0x1 out of bounds>
        sync_flags = 135289584
        imap_flags = 166958264
        uid_validity = 1141738008
        uid1 = 19
        client = (struct client *) 0x9f39368
        ctx = (struct cmd_append_context *) 0x9f39680
        args = (const struct imap_arg *) 0x9f492a0
        flags_list = (const struct imap_arg *) 0x0
        flags = MAIL_ANSWERED
        keywords_list = (const char * const *) 0x9f393d8
        keywords = (struct mail_keywords *) 0xbc2
        internal_date_str = 0xbfe8df88 "\001"
        internal_date = 0
        ret = 1
        timezone_offset = 166951376
        nonsync = 191
        __PRETTY_FUNCTION__ = "cmd_append_continue_parsing"
#17 0x0805a3a0 in client_input_append (cmd=0x9f39600) at cmd-append.c:79
        ctx = (struct cmd_append_context *) 0x9f39680
        client = (struct client *) 0x9f39368
        output = (struct ostream *) 0x9f394ec
        finished = false
        __PRETTY_FUNCTION__ = "client_input_append"
#18 0x081006e8 in io_loop_handler_run (ioloop=0x9f379b0) at ioloop-epoll.c:201
        ctx = (struct ioloop_handler_context *) 0x9f37aa8
        events = (struct epoll_event *) 0x9f37ae8
        event = (const struct epoll_event *) 0x9f37ae8
        list = (struct io_list *) 0x9f39568
        io = (struct io_file *) 0x9f39548
        tv = {tv_sec = 1799, tv_usec = 990444}
        events_count = 3
        t_id = 2
        msecs = 1799991
        ret = 1
        i = 0
        j = 0
        call = true
#19 0x080ff996 in io_loop_run (ioloop=0x9f379b0) at ioloop.c:308
No locals.
#20 0x0806de3d in main (argc=1, argv=0xbfe8e104, envp=0xbfe8e10c) at main.c:293
No locals.


More information about the dovecot mailing list