[Dovecot] Coredump using virtual folder.

Matthias Rieber ml-dovecot at zu-con.org
Thu Apr 16 21:28:04 EEST 2009


Hi,

On Wed, 15 Apr 2009, Timo Sirainen wrote:

> On Thu, 2009-04-09 at 08:18 +0200, Matthias Rieber wrote:
>> #0  0x080a542b in search_index_arg (arg=0x973da68, ctx=0xa13b140) at
>> index-search.c:123
>> 123             for (i = 0; i < search_kws->count; i++) {
>> (gdb) bt
>
> Committed some more fixes to hg that should fix this and other bugs.

it's much better now, but after adding and removing keywords on many mails 
I got an assert again:

Core was generated by `imap'.
Program terminated with signal 6, Aborted.
[New process 5924]
#0  0xb7eeb556 in raise () from /lib/libc.so.6
(gdb) bt
#0  0xb7eeb556 in raise () from /lib/libc.so.6
#1  0xb7eecd78 in abort () from /lib/libc.so.6
#2  0x080eec25 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:161
#3  0x080eec92 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0xb7eb6e18 "file %s: line %d (%s): assertion failed: (%s)", args=0xbfe23f64 "Ds\002")    at failures.c:441
#4  0x080ee619 in i_panic (format=0xb7eb6e18 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:208
#5  0xb7eb489f in virtual_sync_mailbox_box_add (ctx=0xa2087e0, bbox=0x9b14b90, added_uids=0xbfe241cc) at virtual-sync.c:570
#6  0xb7eb5fa9 in virtual_storage_sync_init (box=0x9b149d0, flags=65) at virtual-sync.c:687
#7  0x080b3c82 in mailbox_sync (box=0x1724, flags=65, status_items=239, status_r=0xbfe242a8) at mail-storage.c:574
#8  0x08064708 in cmd_select_full (cmd=0x9b0c240, readonly=false) at cmd-select.c:273
#9  0x08064e69 in cmd_select (cmd=0x9b0c240) at cmd-select.c:388
#10 0x0806700c in client_command_input (cmd=0x9b0c240) at client.c:603
#11 0x080670a9 in client_command_input (cmd=0x9b0c240) at client.c:652
#12 0x080676ed in client_handle_input (client=0x9b0bfb0) at client.c:693
#13 0x08067ba3 in client_input (client=0x9b0bfb0) at client.c:748
#14 0x080f7620 in io_loop_handler_run (ioloop=0x9b079b0) at ioloop-epoll.c:208
#15 0x080f6ab0 in io_loop_run (ioloop=0x9b079b0) at ioloop.c:338
#16 0x080704c5 in main (argc=Cannot access memory at address 0x1724) at main.c:320

log entry:

dovecot: Panic: IMAP(matthias): file virtual-sync.c: line 570 
(virtual_sync_mailbox_box_add): assertion failed: (src < rec_count)
dovecot: Error: IMAP(matthias): Raw backtrace: imap [0x80eec11] -> imap 
[0x80eec92] -> imap [0x80ee619] -> 
/usr/local/lib/dovecot/imap/lib20_virtual_plugin.so [0xb7e4889f] -> 
/usr/local/lib/dovecot/imap/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1699) 
[0xb7e49fa9] -> imap(mailbox_sync+0x32) [0x80b3c82] -> 
imap(cmd_select_full+0x3d8) [0x8064708] -> imap(cmd_select+0x19) 
[0x8064e69] -> imap [0x806700c] -> imap [0x80670a9] -> 
imap(client_handle_input+0x1d) [0x80676ed] -> imap(client_input+0x63) 
[0x8067ba3] -> imap(io_loop_handler_run+0xe0) [0x80f7620] -> 
imap(io_loop_run+0x20) [0x80f6ab0] -> imap(main+0x5e5) [0x80704c5] -> 
/lib/libc.so.6(__libc_start_main+0xe5) [0xb7e6b455] -> imap [0x805fb71]
dovecot: Error: child 5921 (imap) killed with signal 6 (core dumped)

I've seen another issue (maybe relatet to that bug). It seems that the 
virtual folder a just increasing. There are 4 KEYWORD Mails. I see all the 
mails in the virtual keyword folder. After the removal of the keywords 
form two mails, there are still 4 mails in the virtual folder, but two are 
shown without the keyword. I think the two mails should be removed from 
the virtual folder.

kind regards,

Matthias


More information about the dovecot mailing list