[Dovecot] dovecot-1.2 with managesieve patch: imap crash with backtrace
Ralf Hildebrandt
Ralf.Hildebrandt at charite.de
Sat Jul 25 11:40:51 EEST 2009
Log:
Jul 25 10:18:18 postamt dovecot: IMAP(virus-al):
/home/v/i/virus-al/Maildir/dovecot-uidlist: next_uid was lowered (216
-> 2)
Jul 25 10:18:18 postamt dovecot: IMAP(virus-al): Panic: file
index-sync.c: line 25 (index_mailbox_set_recent_uid): assertion
failed: (seq_range_exists(&ibox->recent_flags, uid))
Jul 25 10:18:18 postamt dovecot: IMAP(virus-al): Raw backtrace: imap
[0x80efdb1] -> imap [0x80efe22] -> imap [0x80ef7c9] -> imap
[0x80ac371] -> imap(index_mailbox_set_recent_seq+0x40) [0x80ac3c0] ->
imap(maildir_sync_index+0xa8a) [0x808799a] -> imap [0x80860d9] ->
imap(maildir_storage_sync_init+0x125) [0x8086495] ->
imap(imap_sync_init+0x54) [0x806fe14] -> imap(cmd_sync_delayed+0x1fb)
[0x80700eb] -> imap(client_handle_input+0x1b4) [0x8067874] ->
imap(client_input+0x5f) [0x806802f] -> imap(io_loop_handler_run+0xe0)
[0x80f8980] -> imap(io_loop_run+0x20) [0x80f7df0] -> imap(main+0x5dd)
[0x807093d] -> /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)
[0xb7e9f775] -> imap [0x805ffa1]
Jul 25 10:18:19 postamt dovecot: dovecot: child 20255 (imap) killed
with signal 6 (core dumped)
Backtrace:
----- Forwarded message from root <root at postamt.charite.de> -----
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Reading symbols from /lib/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libdl-2.9.so...done.
done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /lib/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libc-2.9.so...done.
done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.9.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib10_quota_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib11_trash_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib11_trash_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_fts_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_fts_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libbz2.so.1.0...done.
Loaded symbols for /lib/libbz2.so.1.0
Reading symbols from /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `imap [virus-al 127.0.0.1]'.
Program terminated with signal 6, Aborted.
[New process 20255]
#0 0xb7ff9424 in __kernel_vsyscall ()
#0 0xb7ff9424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7eb4680 in *__GI_raise (sig=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
resultvar = <value optimized out>
pid = -1208070156
selftid = 20255
#2 0xb7eb7d68 in *__GI_abort () at abort.c:88
act = {__sigaction_handler = {sa_handler = 0x9481170,
sa_sigaction = 0x9481170}, sa_mask = {__val = {3214601656, 135190698,
3086894816, 0, 3214601776, 3214601764, 512, 0, 0, 3214601840,
3087103600, 134566434, 639, 0, 0, 0, 1, 135263774, 512, 1, 3214601764,
155717968, 69, 3214601892, 3214601736, 135192294, 155718639, 3214601764,
3214601768, 640, 155718000, 3086337251}}, sa_flags = 640,
sa_restorer = 0x81052c9 <write_full+57>}
sigs = {__val = {32, 0 <repeats 31 times>}}
#3 0x080efdc5 in default_fatal_finish (type=<value optimized out>, status=0)
at failures.c:160
backtrace = 0x9480d40 "imap [0x80efdb1] -> imap [0x80efe22] -> imap [0x80ef7c9] -> imap [0x80ac371] -> imap(index_mailbox_set_recent_seq+0x40) [0x80ac3c0] -> imap(maildir_sync_index+0xa8a) [0x808799a] -> imap [0x80860d9] ->"...
#4 0x080efe22 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0,
fmt=0x8107dec "file %s: line %d (%s): assertion failed: (%s)",
args=0xbf9aef04 "¡W\021\b\031") at failures.c:440
No locals.
#5 0x080ef7c9 in i_panic (
format=0x8107dec "file %s: line %d (%s): assertion failed: (%s)")
at failures.c:207
No locals.
#6 0x080ac371 in index_mailbox_set_recent_uid (ibox=0x9494e48, uid=1)
at index-sync.c:25
__PRETTY_FUNCTION__ = "index_mailbox_set_recent_uid"
#7 0x080ac3c0 in index_mailbox_set_recent_seq (ibox=0x9494e48,
view=0x94a5398, seq1=2, seq2=2) at index-sync.c:42
uid = 1
#8 0x0808799a in maildir_sync_index (ctx=0x9497868, partial=true)
at maildir-sync-index.c:554
mbox = (struct maildir_mailbox *) 0x9494e48
view = (struct mail_index_view *) 0x9497750
view2 = (struct mail_index_view *) 0x94a5398
iter = (struct maildir_uidlist_iter_ctx *) 0x0
trans = (struct mail_index_transaction *) 0x94cda78
hdr = (const struct mail_index_header *) 0x94a4860
empty_hdr = {major_version = 1 '\001', minor_version = 0 '\0',
base_header_size = 0, header_size = 7687, record_size = 100,
compat_flags = 0 '\0', unused = "\000\000", indexid = 0, flags = 0,
uid_validity = 82, next_uid = 0, messages_count = 4096,
unused_old_recent_messages_count = 8, seen_messages_count = 0,
deleted_messages_count = 1248509898, first_recent_uid = 0,
first_unseen_uid_lowwater = 1248509898, first_deleted_uid_lowwater = 0,
log_file_seq = 1248509898, log_file_tail_offset = 0,
log_file_head_offset = 6334852, sync_size = 13806612332261933056,
sync_stamp = 155806360, day_stamp = 3214602280, day_first_uid = {135194511,
155806360, 155812344, 3214602456, 134786544, 3214602436, 0, 0}}
rec = <value optimized out>
seq = 1
seq2 = 2
uid = 216
prev_uid = 216
uflags = MAILDIR_UIDLIST_REC_FLAG_RECENT
filename = 0x94c96a0 "1248509847.M937495P31850.postamt.charite.de,S=3162,W=3225"
uid_validity = 1248509847
next_uid = <value optimized out>
hdr_next_uid = 217
first_recent_uid = 1
first_uid = 1
changes = 0
ret = 0
time_before_sync = 1248509898
st = {st_dev = 120259084608, __pad1 = 1, __st_ino = 36200,
st_mode = 135423264, st_nlink = 156032456, st_uid = 155714056,
st_gid = 3214602360, st_rdev = 581638490132765024, __pad2 = 65024,
st_size = 0, st_blksize = 6334504, st_blocks = 8589951424, st_atim = {
tv_sec = 7687, tv_nsec = 100}, st_mtim = {tv_sec = 0, tv_nsec = 0},
st_ctim = {tv_sec = 0, tv_nsec = 274432}, st_ino = 17592186044416}
expunged = 9
full_rescan = false
__PRETTY_FUNCTION__ = "maildir_sync_index"
#9 0x080860d9 in maildir_sync_context (ctx=0x9480208, forced=false,
find_uid=0x0, lost_files_r=0xbf9af15b) at maildir-sync.c:857
sync_flags = 155805056
flags = 135317216
new_changed = true
cur_changed = false
lock_failure = false
fname = 0x9494fe0 "/home/v/i/virus-al/Maildir"
ret = <value optimized out>
__PRETTY_FUNCTION__ = "maildir_sync_context"
#10 0x08086495 in maildir_storage_sync_init (box=0x9494e48, flags=0)
at maildir-sync.c:926
_data_stack_cur_id = 3
ctx = (struct maildir_sync_context *) 0x9480208
lost_files = <value optimized out>
ret = 0
__PRETTY_FUNCTION__ = "maildir_storage_sync_init"
#11 0x0806fe14 in imap_sync_init (client=0x948d350, box=0x9494e48,
imap_flags=IMAP_SYNC_FLAG_SAFE, flags=0) at imap-sync.c:146
ctx = (struct imap_sync_context *) 0x94cea28
__PRETTY_FUNCTION__ = "imap_sync_init"
#12 0x080700eb in cmd_sync_delayed (client=0x948d350) at imap-sync.c:591
cmd = <value optimized out>
first_expunge = <value optimized out>
first_nonexpunge = <value optimized out>
__PRETTY_FUNCTION__ = "cmd_sync_delayed"
#13 0x08067874 in client_handle_input (client=0x948d350) at client.c:728
ret = false
remove_io = false
handled_commands = true
__PRETTY_FUNCTION__ = "client_handle_input"
#14 0x0806802f in client_input (client=0x948d350) at client.c:752
cmd = <value optimized out>
output = (struct ostream *) 0x948d504
bytes = <value optimized out>
__PRETTY_FUNCTION__ = "client_input"
#15 0x080f8980 in io_loop_handler_run (ioloop=0x9489d78) at ioloop-epoll.c:208
ctx = (struct ioloop_handler_context *) 0x9488a80
event = (const struct epoll_event *) 0x9488ac0
list = (struct io_list *) 0x948d588
io = (struct io_file *) 0x948d560
tv = {tv_sec = 1799, tv_usec = 999280}
t_id = 2
msecs = <value optimized out>
ret = 1
i = 0
j = 0
call = <value optimized out>
#16 0x080f7df0 in io_loop_run (ioloop=0x9489d78) at ioloop.c:338
No locals.
#17 0x0807093d in main (argc=) at main.c:323
No locals.
$1 = {prev = 0x0, next = 0x0, client = 0x948d350, pool = 0x948d5c8,
tag = 0x948d658 "a0398", name = 0x948d660 "NOOP", args = 0x0,
cmd_flags = COMMAND_FLAG_BREAKS_SEQS, func = 0, context = 0x0,
module_contexts = {arr = {buffer = 0x948d620, element_size = 4},
v = 0x948d620, v_modifiable = 0x948d620}, parser = 0x94925d0,
state = CLIENT_COMMAND_STATE_WAIT_SYNC, sync = 0x948d668, uid = 0,
cancel = 0, param_error = 0, search_save_result = 0, temp_executed = 0}
(gdb) quit
----- End forwarded message -----
--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hildebrandt at charite.de | http://www.charite.de
More information about the dovecot
mailing list