[Dovecot] Virtual folder, Program terminated with signal 6
Hi,
I've regularly crashes with a certain virtual folder. Erasing the dovecot-index.* files help just for few hours/days. Here are to backtraces:
Core was generated by `imap'. Program terminated with signal 6, Aborted. [New process 25893] #0 0xf7df8556 in raise () from /lib/libc.so.6 #0 0xf7df8556 in raise () from /lib/libc.so.6 No symbol table info available. #1 0xf7df9d78 in abort () from /lib/libc.so.6 No symbol table info available. #2 0x080f2d25 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:160 backtrace = 0x88ee860 "imap [0x80f2d11] -> imap [0x80f2d92] -> imap [0x80f26e9] -> imap(index_search_result_update_flags+0x295) [0x80b2305] -> /usr/local/lib/dovecot/imap/lib20_virtual_plugin.so [0xf7da937d] -> /usr/local/l"... #3 0x080f2d92 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0x810b88c "file %s: line %d (%s): assertion failed: (%s)", args=0xff8b2ea4 "\\S\021\bW") at failures.c:443 No locals. #4 0x080f26e9 in i_panic (format=0x810b88c "file %s: line %d (%s): assertion failed: (%s)") at failures.c:207 No locals. #5 0x080b2305 in index_search_result_update_flags (result=0x9400cb0, uids=0xff8b3150) at index-search-result.c:87 search_arg = {next = 0x89024c0, type = SEARCH_UIDSET, value = {subargs = 0x0, seqset = {arr = {buffer = 0x88ee4a8, element_size = 8}, v = 0x88ee4a8, v_modifiable = 0x88ee4a8}, str = 0x0, time = 0, size = 0, flags = 0, search_flags = 0, thread_type = MAIL_THREAD_NONE, keywords = 0x0, modseq = 0x0, search_args = 0x0, search_result = 0x0}, context = 0x0, hdr_field_name = 0x0, not = 0, match_always = 0, result = -1} ret = <value optimized out> __PRETTY_FUNCTION__ = "index_search_result_update_flags" #6 0xf7da937d in virtual_sync_backend_boxes (ctx=0x93f6660) at virtual-sync.c:733 _data_stack_cur_id = 4 i = 0 ret = 155151376 #7 0xf7daa25b in virtual_storage_sync_init (box=0xb20e070, flags=65) at virtual-sync.c:1486 sync_ctx = <value optimized out> ret = <value optimized out> #8 0x080b6ab2 in mailbox_sync (box=0x6525, flags=65, status_items=239, status_r=0xff8b3338) at mail-storage.c:593 ctx = <value optimized out> #9 0x080651b8 in cmd_select_full (cmd=0x88fbc88, readonly=false) at cmd-select.c:273 client = (struct client *) 0x88fb9f8 box = (struct mailbox *) 0x0 ctx = (struct imap_select_context *) 0x88fbd28 args = (const struct imap_arg *) 0x88fe508 mailbox = 0x88ee2b8 "obfuscated" ret = <value optimized out> __PRETTY_FUNCTION__ = "cmd_select_full" #10 0x08065919 in cmd_select (cmd=0x88fbc88) at cmd-select.c:389 No locals. #11 0x08067bfc in client_command_input (cmd=0x88fbc88) at client.c:612 client = (struct client *) 0x88fb9f8 command = <value optimized out> __PRETTY_FUNCTION__ = "client_command_input" #12 0x08067c99 in client_command_input (cmd=0x88fbc88) at client.c:661 client = (struct client *) 0x88fb9f8 command = <value optimized out> __PRETTY_FUNCTION__ = "client_command_input" #13 0x08067e0d in client_handle_input (client=0x88fb9f8) at client.c:702 _data_stack_cur_id = 3 ret = false remove_io = <value optimized out> handled_commands = false __PRETTY_FUNCTION__ = "client_handle_input" #14 0x0806876f in client_input (client=0x88fb9f8) at client.c:753 cmd = <value optimized out> output = (struct ostream *) 0x88fbbac bytes = <value optimized out> __PRETTY_FUNCTION__ = "client_input" #15 0x080fbac0 in io_loop_handler_run (ioloop=0x88f61a8) at ioloop-epoll.c:208 ctx = (struct ioloop_handler_context *) 0x88f6c18 event = (const struct epoll_event *) 0x88f6c58 list = (struct io_list *) 0x88fbc30 io = (struct io_file *) 0x88fbc08 tv = {tv_sec = 1, tv_usec = 707102} t_id = 2 msecs = <value optimized out> ret = 1 i = 0 j = 0 call = <value optimized out> #16 0x080faf30 in io_loop_run (ioloop=0x88f61a8) at ioloop.c:335 No locals. #17 0x0807127a in main (argc=) at main.c:327 No locals.
Core was generated by `imap'. Program terminated with signal 6, Aborted. [New process 26275] #0 0xf7ea4556 in raise () from /lib/libc.so.6 #0 0xf7ea4556 in raise () from /lib/libc.so.6 No symbol table info available. #1 0xf7ea5d78 in abort () from /lib/libc.so.6 No symbol table info available. #2 0x080f2d25 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:160 backtrace = 0x88d9860 "imap [0x80f2d11] -> imap [0x80f2d92] -> imap [0x80f26e9] -> imap(index_search_result_update_flags+0x295) [0x80b2305] -> /usr/local/lib/dovecot/imap/lib20_virtual_plugin.so [0xf7e5537d] -> /usr/local/l"... #3 0x080f2d92 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0x810b88c "file %s: line %d (%s): assertion failed: (%s)", args=0xffe03774 "\\S\021\bW") at failures.c:443 No locals. #4 0x080f26e9 in i_panic (format=0x810b88c "file %s: line %d (%s): assertion failed: (%s)") at failures.c:207 No locals. #5 0x080b2305 in index_search_result_update_flags (result=0x9318e10, uids=0xffe03a20) at index-search-result.c:87 search_arg = {next = 0x893dfe8, type = SEARCH_UIDSET, value = {subargs = 0x0, seqset = {arr = {buffer = 0x88d94a8, element_size = 8}, v = 0x88d94a8, v_modifiable = 0x88d94a8}, str = 0x0, time = 0, size = 0, flags = 0, search_flags = 0, thread_type = MAIL_THREAD_NONE, keywords = 0x0, modseq = 0x0, search_args = 0x0, search_result = 0x0}, context = 0x0, hdr_field_name = 0x0, not = 0, match_always = 0, result = -1} ret = <value optimized out> __PRETTY_FUNCTION__ = "index_search_result_update_flags" #6 0xf7e5537d in virtual_sync_backend_boxes (ctx=0x930e9e8) at virtual-sync.c:733 _data_stack_cur_id = 4 i = 0 ret = 154202008 #7 0xf7e5625b in virtual_storage_sync_init (box=0x88ebcf0, flags=65) at virtual-sync.c:1486 sync_ctx = <value optimized out> ret = <value optimized out> #8 0x080b6ab2 in mailbox_sync (box=0x66a3, flags=65, status_items=239, status_r=0xffe03c08) at mail-storage.c:593 ctx = <value optimized out> #9 0x080651b8 in cmd_select_full (cmd=0x88e6c88, readonly=false) at cmd-select.c:273 client = (struct client *) 0x88e69f8 box = (struct mailbox *) 0x0 ctx = (struct imap_select_context *) 0x88e6d28 args = (const struct imap_arg *) 0x88e9508 mailbox = 0x88d92b8 "obfuscated" ret = <value optimized out> __PRETTY_FUNCTION__ = "cmd_select_full" #10 0x08065919 in cmd_select (cmd=0x88e6c88) at cmd-select.c:389 No locals. #11 0x08067bfc in client_command_input (cmd=0x88e6c88) at client.c:612 client = (struct client *) 0x88e69f8 command = <value optimized out> __PRETTY_FUNCTION__ = "client_command_input" #12 0x08067c99 in client_command_input (cmd=0x88e6c88) at client.c:661 client = (struct client *) 0x88e69f8 command = <value optimized out> __PRETTY_FUNCTION__ = "client_command_input" #13 0x08067e0d in client_handle_input (client=0x88e69f8) at client.c:702 _data_stack_cur_id = 3 ret = false remove_io = <value optimized out> handled_commands = false __PRETTY_FUNCTION__ = "client_handle_input" #14 0x0806876f in client_input (client=0x88e69f8) at client.c:753 cmd = <value optimized out> output = (struct ostream *) 0x88e6bac bytes = <value optimized out> __PRETTY_FUNCTION__ = "client_input" #15 0x080fbac0 in io_loop_handler_run (ioloop=0x88e11a8) at ioloop-epoll.c:208 ctx = (struct ioloop_handler_context *) 0x88e1c18 event = (const struct epoll_event *) 0x88e1c58 list = (struct io_list *) 0x88e6c30 io = (struct io_file *) 0x88e6c08 tv = {tv_sec = 1, tv_usec = 627183} t_id = 2 msecs = <value optimized out> ret = 1 i = 0 j = 0 call = <value optimized out> #16 0x080faf30 in io_loop_run (ioloop=0x88e11a8) at ioloop.c:335 No locals. #17 0x0807127a in main (argc=) at main.c:327 No locals.
kind regards,
Matthias
Hi,
On Tue, 29 Dec 2009, Timo Sirainen wrote:
On Sat, 2009-12-26 at 19:40 +0100, Matthias Rieber wrote:
I've regularly crashes with a certain virtual folder.
Which Dovecot version? What does dovecot-virtual file contain? I fixed some virtual bugs in v1.2.9.
that appeared in version 1.2.9. The content:
INBOX.IBX.Name1 INBOX.Ordner.Name1 INBOX.Ordner.Name1.* OR (OR (OR HEADER FROM name1.com HEADER FROM name1.de) HEADER FROM name2.com) HEADER FROM name3.net NOT HEADER FROM root@ NOT HEADER FROM www-data@ SINCE 1-Oct-2009
matthias
Hello,
FYI, with version 1.2.9:
Core was generated by `imap'. Program terminated with signal 6, Aborted. [New process 27056] #0 0xf7de4556 in raise () from /lib/libc.so.6 #0 0xf7de4556 in raise () from /lib/libc.so.6 No symbol table info available. #1 0xf7de5d78 in abort () from /lib/libc.so.6 No symbol table info available. #2 0x080f2d25 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:160 backtrace = 0x84ec298 "imap [0x80f2d11] -> imap [0x80f2d92] -> imap [0x80f26e9] -> imap(index_search_result_update_flags+0x295) [0x80b2305] -> imap(index_sync_search_results_update+0x59) [0x80ae9b9] -> imap(index_mailbox_sy"... #3 0x080f2d92 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0x810b88c "file %s: line %d (%s): assertion failed: (%s)", args=0xffea6ee4 "\\S\021\bW") at failures.c:443 No locals. #4 0x080f26e9 in i_panic (format=0x810b88c "file %s: line %d (%s): assertion failed: (%s)") at failures.c:207 No locals. #5 0x080b2305 in index_search_result_update_flags (result=0x8522130, uids=0x852efd0) at index-search-result.c:87 search_arg = {next = 0x85015b0, type = SEARCH_UIDSET, value = {subargs = 0x0, seqset = {arr = {buffer = 0x8529970, element_size = 8}, v = 0x8529970, v_modifiable = 0x8529970}, str = 0x0, time = 0, size = 0, flags = 0, search_flags = 0, thread_type = MAIL_THREAD_NONE, keywords = 0x0, modseq = 0x0, search_args = 0x0, search_result = 0x0}, context = 0x0, hdr_field_name = 0x0, not = 0, match_always = 0, result = -1} ret = <value optimized out> __PRETTY_FUNCTION__ = "index_search_result_update_flags" #6 0x080ae9b9 in index_sync_search_results_update (ctx=0x852efb0) at index-sync-search.c:77 i = 0 #7 0x080ae163 in index_mailbox_sync_deinit (_ctx=0x852efb0, status_items=0, status_r=0x0) at index-sync.c:349 ibox = (struct index_mailbox *) 0x8500498 sync_rec = {seq1 = 139653040, seq2 = 0, type = 4293554200} hdr = (const struct mail_index_header *) 0x6 seq1 = 0 seq2 = 0 delayed_expunges = false ret = 0 #8 0xf7d9426b in virtual_sync_backend_boxes (ctx=0x85220e0) at virtual-sync.c:979 _data_stack_cur_id = 3 i = 0 ret = 97 #9 0xf7d9625b in virtual_storage_sync_init (box=0x84ffc38, flags=0) at virtual-sync.c:1486 sync_ctx = <value optimized out> ret = <value optimized out> #10 0x08070704 in imap_sync_init (client=0x84f99f8, box=0x84ffc38, imap_flags=IMAP_SYNC_FLAG_SEND_UID, flags=0) at imap-sync.c:146 ctx = (struct imap_sync_context *) 0x85344f0 __PRETTY_FUNCTION__ = "imap_sync_init" #11 0x08070a03 in cmd_sync_delayed (client=0x84f99f8) at imap-sync.c:592 cmd = <value optimized out> first_expunge = <value optimized out> first_nonexpunge = <value optimized out> __PRETTY_FUNCTION__ = "cmd_sync_delayed" #12 0x08067f9c in client_handle_input (client=0x84f99f8) at client.c:729 ret = false remove_io = false handled_commands = true __PRETTY_FUNCTION__ = "client_handle_input" #13 0x0806876f in client_input (client=0x84f99f8) at client.c:753 cmd = <value optimized out> output = (struct ostream *) 0x84f9bac bytes = <value optimized out> __PRETTY_FUNCTION__ = "client_input" #14 0x080fbac0 in io_loop_handler_run (ioloop=0x84f41a8) at ioloop-epoll.c:208 ctx = (struct ioloop_handler_context *) 0x84f4c18 event = (const struct epoll_event *) 0x84f4c58 list = (struct io_list *) 0x84f9c30 io = (struct io_file *) 0x84f9c08 tv = {tv_sec = 1799, tv_usec = 999872} t_id = 2 msecs = <value optimized out> ret = 1 i = 0 j = 0 call = <value optimized out> #15 0x080faf30 in io_loop_run (ioloop=0x84f41a8) at ioloop.c:335 No locals. #16 0x0807127a in main (argc=) at main.c:327 No locals.
kind regards,
matthias
On Wed, 2009-12-30 at 06:44 +0100, Matthias Rieber wrote:
Hi,
On Tue, 29 Dec 2009, Timo Sirainen wrote:
On Sat, 2009-12-26 at 19:40 +0100, Matthias Rieber wrote:
I've regularly crashes with a certain virtual folder.
Which Dovecot version? What does dovecot-virtual file contain? I fixed some virtual bugs in v1.2.9.
that appeared in version 1.2.9. The content:
INBOX.IBX.Name1 INBOX.Ordner.Name1 INBOX.Ordner.Name1.* OR (OR (OR HEADER FROM name1.com HEADER FROM name1.de) HEADER FROM name2.com) HEADER FROM name3.net NOT HEADER FROM root@ NOT HEADER FROM www-data@ SINCE 1-Oct-2009
So there are no flags or keywords in the search query? What about in any other virtual folders? Because the backtrace shows it's crashing when trying to refresh a virtual folder that has flags/keywords in the search..
Also I'd like to know what it says with:
fr 5 p mail.uid p next_uid
participants (2)
-
Matthias Rieber
-
Timo Sirainen