<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px"><div>Hi all,</div><div><br></div><div>I have a Dovecot core that I am trying to track down, in an attempt to replicate so I can log a bug report, and am hoping others might be able to help me as I’m reaching my limit.</div><div><br></div><div>My working theory is that two user sessions are active at the same time, one of the sessions is “mid-search” (or perhaps in idle state) on a virtual folder where the number of results is zero (due to a null results array), when another session either performs an append or perhaps a new message arrives in the virtual view and qualifies for the search.  </div><div><br></div><div>It seems that the current list of UID’s in the search results is zero (null), and new messages are being appended to the search results, which results in a divide by zero.</div><div><br></div><div>But I have not been able to create a scenario to replicate this on my test box, but is occurring regularly (every hour or so) on my mail server.  I have been able to replicate on my test box using a single account by performing many random operations over and over again, with multiple sessions, but took over 24 hours and I can’t isolate the action that caused it.</div><div><br></div><div>Dovecot version is 2.2.36 (1f10bfa63) as shipped with Centos 7 (latest update).  If I can reproduce, I can then test the latest 2.3 and see if this is still a problem in that version.</div><div><br></div><div>Here is the full back trace:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#0  0x00007f8d40636e58 in array_count_i (array=0x557be80cc168) at array.h:155</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">No locals.</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#1  array_get_i (count_r=<synthetic pointer>, array=0x557be80cc168) at array.h:209</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">No locals.</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#2  seq_range_lookup (array=0x557be80cc168, seq=2222, idx_r=0x7ffead4141d4) at seq-range-array.c:14</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        data = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        idx = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        left_idx = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        right_idx = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        count = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#3  0x00007f8d406379ae in seq_range_exists (array=array@entry=0x557be80cc168, seq=seq@entry=2222) at seq-range-array.c:391</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        idx = 32766</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#4  0x00007f8d408fd3d9 in mailbox_search_result_add (result=result@entry=0x557be80cc150, uid=2222) at mailbox-search-result.c:121</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "mailbox_search_result_add"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#5  0x00007f8d40962f30 in index_search_result_update_appends (result=result@entry=0x557be80cc150, old_messages_count=<optimized out>)</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">    at index-search-result.c:168</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        t = 0x557be7fb1820</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        search_ctx = 0x557be7fef860</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        mail = 0x557be8100198</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        search_arg = {next = 0x557be7fab460, type = SEARCH_SEQSET, value = {subargs = 0x0, seqset = {arr = {buffer = 0x557be7f69208, </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">                element_size = 8}, v = 0x557be7f69208, v_modifiable = 0x557be7f69208}, str = 0x0, time = 0, size = 0, flags = 0, </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">            search_flags = (unknown: 0), date_type = 0, thread_type = MAIL_THREAD_NONE, modseq = 0x0, search_result = 0x0, </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">            mime_part = 0x0}, initialized = {search_args = 0x0, keywords = 0x0, mailbox_glob = 0x0}, context = 0x0, hdr_field_name = 0x0, </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">          match_not = 0, match_always = 0, nonmatch_always = 0, fuzzy = 0, no_fts = 0, result = -1}</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        message_count = 2008</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "index_search_result_update_appends"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#6  0x00007f8d4096dc37 in search_result_update (result=0x557be80cc150, ctx=0x557be7ff8950) at index-sync-search.c:78</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">No locals.</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#7  index_sync_search_results_update (ctx=ctx@entry=0x557be7ff8950) at index-sync-search.c:88</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        results = 0x557be7f9d480</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        i = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        count = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#8  0x00007f8d4096e4b4 in index_mailbox_sync_deinit (_ctx=0x557be7ff8950, status_r=0x557be7ff0108) at index-sync.c:353</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ctx = 0x557be7ff8950</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        sync_rec = {seq1 = 0, seq2 = 0, type = MAILBOX_SYNC_TYPE_EXPUNGE}</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        delayed_expunges = false</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#9  0x00007f8d40950400 in mailbox_list_index_sync_deinit (ctx=0x557be7ff8950, status_r=0x557be7ff0108) at mailbox-list-index.c:976</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">---Type <return> to continue, or q <return> to quit---</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ibox = 0x557be7fd0bf0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        box = 0x557be7f9d078</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#10 0x00007f8d408ed568 in mailbox_sync_deinit (_ctx=<optimized out>, status_r=<optimized out>) at mail-storage.c:1953</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ctx = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        box = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        errormsg = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        error = MAIL_ERROR_NONE</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#11 0x0000557be6613431 in imap_sync_finish (ctx=ctx@entry=0x557be7ff0090, aborting=aborting@entry=false) at imap-sync.c:279</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        client = 0x557be7f8a6d8</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = 0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#12 0x0000557be6613fed in imap_sync_more (ctx=0x557be7ff0090) at imap-sync.c:594</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        str = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = 1</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "imap_sync_more"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#13 0x0000557be6614676 in cmd_sync_continue (sync_cmd=0x557be7f8be88) at imap-sync.c:629</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        cmd = 0x557be7f75e40</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        prev = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        client = 0x557be7f8a6d8</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ctx = 0x557be7ff0090</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "cmd_sync_continue"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#14 0x0000557be6614b34 in cmd_sync_client (sync_cmd=0x557be7f8be88) at imap-sync.c:720</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ctx = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        flags = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        client = 0x557be7f8a6d8</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        imap_flags = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        no_newmail = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#15 cmd_sync_delayed_real (client=0x557be7f8a6d8) at imap-sync.c:833</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        cmd = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        first_expunge = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        first_nonexpunge = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#16 cmd_sync_delayed (client=client@entry=0x557be7f8a6d8) at imap-sync.c:841</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        _data_stack_cur_id = 3</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#17 0x0000557be6607a18 in client_handle_input (client=client@entry=0x557be7f8a6d8) at imap-client.c:1233</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        remove_io = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        handled_commands = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "client_handle_input"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#18 0x0000557be6607eb5 in client_input (client=0x557be7f8a6d8) at imap-client.c:1264</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">---Type <return> to continue, or q <return> to quit---</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        cmd = 0xcfee4</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        output = 0x557be7f8bd90</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        bytes = 2052</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "client_input"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#19 0x00007f8d40624be2 in io_loop_call_io (io=0x557be7f84cb0) at ioloop.c:600</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ioloop = 0x557be7f719c0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        t_id = 2</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "io_loop_call_io"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#20 0x00007f8d406262cf in io_loop_handler_run_internal (ioloop=ioloop@entry=0x557be7f719c0) at ioloop-epoll.c:223</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ctx = 0x557be7f734e0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        events = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        list = 0x557be7f74f40</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        io = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        tv = {tv_sec = 1795, tv_usec = 114881}</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        events_count = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        msecs = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        ret = 1</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        i = 0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        call = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "io_loop_handler_run_internal"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#21 0x00007f8d40624c7c in io_loop_handler_run (ioloop=ioloop@entry=0x557be7f719c0) at ioloop.c:649</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">No locals.</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#22 0x00007f8d40624e38 in io_loop_run (ioloop=0x557be7f719c0) at ioloop.c:624</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        __FUNCTION__ = "io_loop_run"</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#23 0x00007f8d405a9c03 in master_service_run (service=0x557be7f71860, callback=callback@entry=0x557be6614e30 <client_connected>)</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">    at master-service.c:724</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">No locals.</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#24 0x0000557be65fa262 in main (argc=1, argv=0x557be7f715f0) at main.c:484</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        set_roots = {0x557be6825700 <imap_setting_parser_info>, 0x7f8d40df95a0, 0x0}</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        login_set = {auth_socket_path = 0x557be7f69048 "\001", postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">          callback = 0x557be6615600 <login_client_connected>, failure_callback = 0x557be6614f40 <login_client_failed>, </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">          request_auth_token = 1}</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        service_flags = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        storage_service_flags = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        username = 0x0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        auth_socket_path = <optimized out></span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">        c = <optimized out></span></p></div><div><br></div>And the output of array in frame #0:<div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">(gdb) f 0</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">#0  0x00007f8d40636e58 in array_count_i (array=0x557be80cc168) at array.h:155</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">155 return array->buffer->used / array->element_size;</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">(gdb) p *array</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">$2 = {buffer = 0x0, element_size = 0}</span></p><div style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-variant-ligatures:no-common-ligatures">Here is the virtual folder config in use:</span></div><div style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="font-family:"helvetica Neue",helvetica;font-size:14px"><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures"># cat /etc/dovecot/virtual/combined/dovecot-virtual </span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">!INBOX</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">INBOX/Sent</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">INBOX/Drafts</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(17,37,85)"><span style="font-variant-ligatures:no-common-ligatures">  all</span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Any help would be greatly appreciated in diagnosing the cause here.</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Thanks,</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Dave</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></div></div></div><br><div class="gmail_signature"></div></body></html>