On Mon, Mar 10, 2008 at 9:05 AM, Diego Liziero diegoliz@gmail.com wrote:
To some users happens this assertion failure while deleting a message.
dovecot: Mar 10 08:40:44 Panic: IMAP(user): file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion failed: (seq_range_exists (&ibox->recent_flags, uid))
36 void index_mailbox_set_recent_uid(struct index_mailbox *ibox, uint32_t uid) 37 { 38 if (uid <= ibox->recent_flags_prev_uid) { 39 i_assert(seq_range_exists(&ibox->recent_flags, uid)); 40 return; 41 } 42 ibox->recent_flags_prev_uid = uid;
Here, when assert fails: uid=1041 ibox->recent_flags_prev_uid = 4557 ibox->recent_flags->arr->element_size = 8 **ibox->recent_flags->v = {seq1 = 4557, seq2 = 4557} (struct seq_range)(ibox->recent_flags->arr->buffer->data) = {seq1 = 143455672, seq2 = 8}
(gdb) print *ibox
$16 = {box = {name = 0x88ca8f8 "Trash", storage = 0x88b6c80, v =
{is_readonly = 0x809a750 ,
allow_new_keywords = 0x809a770
, close = 0x8077d50
,
get_status = 0x809a620 ,
list_index_has_changed = 0, list_index_update_sync = 0,
sync_init = 0x80826e0 , sync_next =
0x809bf00 ,
sync_deinit = 0x809bc30 , sync_notify
= 0, notify_changes = 0x8077d10 ,
transaction_begin = 0x809c6b0 ,
transaction_commit = 0x809c650 ,
transaction_rollback = 0x809c630 ,
keywords_create = 0x809a880 ,
keywords_free = 0x809a790 , get_uids =
0x80934d0 ,
mail_alloc = 0x8094320 , header_lookup_init =
0x8095d40 ,
header_lookup_deinit = 0x8095c90 ,
search_init = 0x8099140 ,
search_deinit = 0x8098b50 ,
search_next_nonblock = 0x8097e40 ,
search_next_update_seq = 0x8097c10
, save_init = 0x807cab0
,
save_continue = 0x807c740 , save_finish =
0x807c300 ,
save_cancel = 0x807c530 , copy = 0x809cbd0
,
is_inconsistent = 0x809aa00 },
pool = 0x88ca750, transaction_count = 0, private_flags_mask = 0,
file_create_mode = 384, dir_create_mode = 448, file_create_gid =
4294967295, notify_min_interval = 0, notify_callback = 0,
notify_context = 0x0, module_contexts = {arr = {buffer =
0x88ca900, element_size = 4}, v = 0x88ca900, v_modifiable =
0x88ca900},
opened = 1, mailbox_deleted = 0}, view_module_ctx = {reg = 0x0},
storage = 0x88b6c80, open_flags = 14, index = 0x88c09a8,
view = 0x88c3988, cache = 0x88caf50, mail_vfuncs = 0x810aa20,
md5hdr_ext_idx = 2, notify_to = 0x0, notify_files = 0x0,
notify_ios = 0x0, notify_last_check = 0, notify_last_sent = 0,
next_lock_notify = 1205134826,
last_notify_type = MAILBOX_LOCK_NOTIFY_NONE, commit_log_file_seq =
7, commit_log_file_offset = 20544, keyword_names = 0x88c0a84,
cache_fields = 0x88bf5d8, mail_cache_min_mail_count = 0,
recent_flags = {arr = {buffer = 0x88d3758, element_size = 8}, v =
0x88d3758,
v_modifiable = 0x88d3758}, recent_flags_prev_uid = 4557,
recent_flags_count = 1, sync_last_check = 0, readonly = 0, keep_recent
= 1,
keep_locked = 0, sent_diskspace_warning = 0,
sent_readonly_flags_warning = 0, notify_pending = 0, move_to_memory =
0, fsync_disable = 0}
Diego