[Dovecot] mailbox_list_index_parse_header crash

Kyle Wheeler kyle-dovecot at memoryhole.net
Tue Apr 23 19:53:57 EEST 2013


Sorry, I should have said; I'm running 2.2.1

On Tuesday, April 23 at 10:52 AM, quoth Kyle Wheeler:
>Hi,
>
>I got all excited about IMAP NOTIFY support and tried enabling 
>mailbox_list_index on my server. Unfortunately, I rather quickly ran 
>into trouble of the segfault variety. This prevented me from doing 
>basic things like seeing the contents of some of my folders. Disabling 
>mailbox_list_index got me back up and running, but... darnit, that's 
>annoying. The only message I got in my log file was this:
>
>imap(user at domain): Fatal: master: service(imap): child 6899 killed with signal 11 (core dumped)
>
>If I can help track this down, please let me know. Here's the 
>backtrace:
>
>#0  hash_table_insert_node (table=0x10eff60, key=0x103, value=0x10fd8b0, check_existing=<value optimized out>) at hash.c:268
>        node = 0x69616d2d746e6573
>        prev = 0x10fbee0
>        hash = <value optimized out>
>        __FUNCTION__ = "hash_table_insert_node"
>#1  0x00007fad738a11be in hash_table_insert (table=0x10eff60, key=0x1, value=0x101) at hash.c:285
>        node = 0x0
>#2  0x00007fad73b81e68 in mailbox_list_index_parse_header (list=<value optimized out>, view=0x11095f0,
>    force=<value optimized out>) at mailbox-list-index.c:196
>        data = 0x10f5f30
>        i = 4980
>        len = 1
>        size = 8192
>        id = 1
>#3  mailbox_list_index_parse (list=<value optimized out>, view=0x11095f0, force=<value optimized out>)
>    at mailbox-list-index.c:317
>        ilist = 0x10edc80
>        hdr = <value optimized out>
>        error = 0x10f5820 "`▒\016\001"
>        __FUNCTION__ = "mailbox_list_index_parse"
>#4  0x00007fad73b86b03 in mailbox_list_index_sync_begin (list=0x10ed890, sync_ctx_r=0x7fff2ad61ee0)
>    at mailbox-list-index-sync.c:247
>        ilist = 0x10edc80
>        sync_ctx = <value optimized out>
>        index_sync_ctx = <value optimized out>
>        view = 0x11095f0
>        trans = <value optimized out>
>        hdr = <value optimized out>
>#5  0x00007fad73b86ffb in mailbox_list_index_sync (list=0x10eff60) at mailbox-list-index-sync.c:382
>        sync_ctx = 0x1107300
>        ret = <value optimized out>
>#6  0x00007fad73b8233f in mailbox_list_index_refresh (list=0x10ed890) at mailbox-list-index.c:376
>        ilist = 0x10edc80
>        view = 0x1107300
>        ret = <value optimized out>
>#7  0x00007fad73b85e19 in index_list_update_mailbox (box=0x10f40a0) at mailbox-list-index-status.c:363
>        list_sync_ctx = 0x1107140
>        list_view = <value optimized out>
>        list_trans = <value optimized out>
>        changes = {status = {messages = 718675880, recent = 32767, unseen = 4294967295, uidvalidity = 0, uidnext = 68,
>            first_unseen_seq = 0, first_recent_uid = 1, last_cached_seq = 0, highest_modseq = 3176264,
>            highest_pvt_modseq = 17854784, keywords = 0x10f40a0, permanent_flags = 17778368, permanent_keywords = 0,
>            allow_new_keywords = 0, nonpermanent_modseqs = 0, have_guids = 0},
>          guid = "p ▒*▒\177\000\000D\000\000\000\000\000\000", seq = 17750944, rec_changed = false, msgs_changed = false,
>          hmodseq_changed = false}
>        __FUNCTION__ = "index_list_update_mailbox"
>#8  0x00007fad73b86089 in index_list_sync_deinit (ctx=0x1107140, status_r=0x7fff2ad62070) at mailbox-list-index-status.c:470
>        box = 0x10f40a0
>#9  0x00007fad73b70f4a in mailbox_sync_deinit (_ctx=0x0, status_r=0x1) at mail-storage.c:1655
>        ctx = 0x10eff60
>        box = 0x10f40a0
>        errormsg = <value optimized out>
>        error = <value optimized out>
>        ret = <value optimized out>
>#10 0x00007fad73b7100b in mailbox_sync (box=<value optimized out>, flags=<value optimized out>) at mail-storage.c:1681
>        ctx = 0x0
>        status = {sync_delayed_expunges = 0}
>#11 0x00007fad73b9af72 in index_storage_get_status (box=0x10f40a0, items=17, status_r=<value optimized out>)
>    at index-status.c:39
>No locals.
>#12 0x00007fad72cabde4 in fts_mailbox_get_status (box=0x10f40a0, items=17, status_r=0x7fff2ad621b0) at fts-storage.c:86
>        seq = <value optimized out>
>#13 0x00007fad73b864e6 in index_list_get_status (box=0x10f40a0, items=17, status_r=0x7fff2ad621b0)
>    at mailbox-list-index-status.c:162
>No locals.
>#14 0x000000000041c8da in imap_status_get (cmd=0x10f1880, ns=0x10e8b00, mailbox=0x10cc2c8 "Flight.RV", items=0x7fff2ad62240,
>    result_r=0x7fff2ad621b0) at imap-status.c:84
>        client = 0x10f0ce0
>        box = 0x10f40a0
>        errstr = <value optimized out>
>        ret = <value optimized out>
>#15 0x000000000041219d in cmd_status (cmd=0x10f1880) at cmd-status.c:40
>        client = 0x10f0ce0
>        args = 0x10d7a38
>        list_args = 0x10d7be0
>        items = {status = 17, metadata = 0}
>        result = {status = {messages = 0, recent = 0, unseen = 0, uidvalidity = 0, uidnext = 0, first_unseen_seq = 0,
>            first_recent_uid = 0, last_cached_seq = 0, highest_modseq = 0, highest_pvt_modseq = 0, keywords = 0x0,
>            permanent_flags = 0, permanent_keywords = 0, allow_new_keywords = 0, nonpermanent_modseqs = 0, have_guids = 1},
>          metadata = {guid = "PY\r\001", '\000' <repeats 11 times>, virtual_size = 17651520, cache_fields = 0x7fad73836e40,
>            precache_fields = 1934521552, backend_ns_prefix = 0x7fad74012000 "", backend_ns_type = 1080}, error = 4294967295,
>          errstr = 0xffffffffffffffa8 <Address 0xffffffffffffffa8 out of bounds>}
>        ns = <value optimized out>
>        mailbox = 0x10cc2c8 "Flight.RV"
>        orig_mailbox = 0x10d7b98 "Flight.RV"
>#16 0x00000000004160ad in command_exec (cmd=0x10f1880) at imap-commands.c:156
>        hook = 0x10d5d90
>        ret = <value optimized out>
>#17 0x0000000000415200 in client_command_input (cmd=0x10f1880) at imap-client.c:775
>        client = 0x10f0ce0
>        command = <value optimized out>
>        __FUNCTION__ = "client_command_input"
>#18 0x00000000004152ed in client_command_input (cmd=0x10f1880) at imap-client.c:836
>        client = 0x10f0ce0
>        command = 0x0
>        __FUNCTION__ = "client_command_input"
>#19 0x000000000041556d in client_handle_next_command (client=0x10f0ce0) at imap-client.c:874
>No locals.
>#20 client_handle_input (client=0x10f0ce0) at imap-client.c:886
>        _data_stack_cur_id = 3
>        ret = 208
>        remove_io = <value optimized out>
>        handled_commands = false
>        __FUNCTION__ = "client_handle_input"
>#21 0x00000000004158ef in client_input (client=0x10f0ce0) at imap-client.c:928
>        cmd = <value optimized out>
>        output = 0x10f16d8
>        bytes = <value optimized out>
>        __FUNCTION__ = "client_input"
>#22 0x00007fad738abdf6 in io_loop_call_io (io=0x10f1780) at ioloop.c:387
>        ioloop = 0x10d4720
>        t_id = 2
>#23 0x00007fad738ace6f in io_loop_handler_run (ioloop=<value optimized out>) at ioloop-epoll.c:215
>        ctx = 0x10d4aa0
>        event = 0x10d4b10
>        list = 0x10f17d0
>        io = 0x10eff60
>        tv = {tv_sec = 1799, tv_usec = 999580}
>        msecs = <value optimized out>
>        ret = 1
>        i = 0
>        call = false
>        __FUNCTION__ = "io_loop_handler_run"
>#24 0x00007fad738abd98 in io_loop_run (ioloop=0x10d4720) at ioloop.c:406
>No locals.
>#25 0x00007fad738621b3 in master_service_run (service=0x10d45b0, callback=0x1) at master-service.c:560
>No locals.
>#26 0x000000000041eb67 in main (argc=1, argv=0x10d4390) at main.c:400
>        set_roots = {0x426200, 0x0}
>        login_set = {auth_socket_path = 0x10cc050 "(", postlogin_socket_path = 0x0, postlogin_timeout_secs = 60,
>          callback = 0x41ed60 <login_client_connected>, failure_callback = 0x41ed00 <login_client_failed>,
>          request_auth_token = 1}
>        service_flags = <value optimized out>
>        storage_service_flags = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT
>        username = 0x0
>        c = <value optimized out>
>
>
>~Kyle
>-- 
>For every complex problem, there is a solution that is simple, neat, 
>and wrong.
>                                                      -- H. L. Mencken




~Kyle
-- 
If you cannot change your mind, how can you be certain that you have 
one?
                                                             -- Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 842 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130423/2ce211e0/attachment.bin>


More information about the dovecot mailing list