[Dovecot] 2.0.beta4 (f05909834219): Crashes with incorrect maildir permissions

Thomas Leuxner tlx at leuxner.net
Mon May 3 17:21:58 EEST 2010


Hi,

I know this is a self-inflicted problem due to wrong permissions set
manually, but it should not crash I guess...


Regards
Thomas

May  3 16:05:15 spectre dovecot: imap(alias at domain.tld): Error: opendir(/var/vmail/public/Mailing-Lists/Bind-Users/new) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +r perm: /var/vmail/public/Mailing-Lists/Bind-Users/new, euid is not dir owner)
May  3 16:05:15 spectre dovecot: imap(alias at domain.tld): Error: stat(/var/vmail/public/Mailing-Lists/Bind-Users/tmp/ed136730ffd1de4b6d250000a998a2df) failed: Permission denied
May  3 16:05:15 spectre dovecot: imap(alias at domain.tld): Panic: file mail-index.c: line 346 (mail_index_keywords_unref): assertion failed: (keywords->refcount > 0)
May  3 16:05:15 spectre dovecot: imap(alias at domain.tld): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0 [0x7f7e592e1772] -> /usr/lib/dovecot/libdovecot.so.0 [0x7f7e592e17da] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f7e592e1b83] -> /usr/lib/dovecot/libdovecot-storage.so.0 [0x7f7e5955d178] -> /usr/lib/dovecot/libdovecot-storage.so.0(index_keywords_unref+0x10) [0x7f7e5958fcf0] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_copy+0x71) [0x7f7e5954dfa1] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID](cmd_copy+0x209) [0x409b69] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID] [0x41004c] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID] [0x4100fd] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID](client_handle_input+0x45) [0x410275] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID](client_input+0x62) [0x410cc2] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xcb) [0x7f7e592ec4ab] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x18) [0x7f7e592eb628] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f7e592db1a3] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID](main+0x281) [0x418d61] -> /lib/libc.so.6(__libc_start_main+0xe6) [0x7f7e58b661a6] -> dovecot/imap [alias at domain.tld 188.138.0.199 UID] [0x408999]
May  3 16:05:15 spectre dovecot: master: Error: service(imap): child 9756 killed with signal 6 (core dumped)

#0  0x00007f7e58b79ed5 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00007f7e58b7b3f3 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00007f7e592e1785 in default_fatal_finish (type=<value optimized out>, status=0) at failures.c:164
        backtrace = 0x10fc918 "/usr/lib/dovecot/libdovecot.so.0 [0x7f7e592e1772] -> /usr/lib/dovecot/libdovecot.so.0 [0x7f7e592e17da] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f7e592e1b83] -> /usr/lib/dovecot/libdovecot-st"...
#3  0x00007f7e592e17da in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=<value optimized out>, args=<value optimized out>) at failures.c:592
No locals.
#4  0x00007f7e592e1b83 in i_panic (format=<value optimized out>) at failures.c:230
        args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fff547d8d40, reg_save_area = 0x7fff547d8c80}}
#5  0x00007f7e5955d178 in mail_index_keywords_unref (_keywords=<value optimized out>) at mail-index.c:346
        keywords = <value optimized out>
        __FUNCTION__ = "mail_index_keywords_unref"
#6  0x00007f7e5958fcf0 in index_keywords_unref (keywords=0x115c620) at index-storage.c:614
No locals.
#7  0x00007f7e5954dfa1 in mailbox_copy (_ctx=0x7fff547d8e20, mail=0x116d298) at mail-storage.c:1386
        ctx = <value optimized out>
        box = (struct mailbox *) 0x1159e18
        keywords = (struct mail_keywords *) 0x0
        ret = -1
#8  0x0000000000409b69 in cmd_copy (cmd=0x112e8a8) at cmd-copy.c:66
        client = (struct client *) 0x112e148
        dest_ns = <value optimized out>
        dest_storage = <value optimized out>
        destbox = (struct mailbox *) 0x1159e18
        t = (struct mailbox_transaction_context *) 0x115db60
        search_args = (struct mail_search_args *) 0x116a6c8
        messageset = 0x11301f8 "18430"
        mailbox = 0x1130200 "Public/Mailing-Lists/Bind-Users"
        storage_name = 0x1130207 "Mailing-Lists/Bind-Users"
        src_uidset = <value optimized out>
        status = MAILBOX_NAME_EXISTS_MAILBOX
        sync_flags = <value optimized out>
        imap_flags = <value optimized out>
        changes = {pool = 0x3000000020, uid_validity = 18022896, saved_uids = {arr = {buffer = 0x0, element_size = 9}, v = 0x0, v_modifiable = 0x0},
  ignored_uid_changes = 1489302432, ignored_modseq_changes = 32638}
        copy_count = 1
        msg = <value optimized out>
        ret = 1
        __FUNCTION__ = "cmd_copy"
#9  0x000000000041004c in client_command_input (cmd=0x112e8a8) at imap-client.c:646
        client = (struct client *) 0x112e148
        command = <value optimized out>
        __FUNCTION__ = "client_command_input"
#10 0x00000000004100fd in client_command_input (cmd=0x112e8a8) at imap-client.c:696
        client = (struct client *) 0x112e148
        command = (struct command *) 0x6
        __FUNCTION__ = "client_command_input"
#11 0x0000000000410275 in client_handle_input (client=0x112e148) at imap-client.c:737
        _data_stack_cur_id = 3
        ret = 56
        remove_io = <value optimized out>
        handled_commands = false
        __FUNCTION__ = "client_handle_input"
#12 0x0000000000410cc2 in client_input (client=0x112e148) at imap-client.c:788
        cmd = <value optimized out>
        output = (struct ostream *) 0x112e728
        bytes = <value optimized out>
#13 0x00007f7e592ec4ab in io_loop_handler_run (ioloop=<value optimized out>) at ioloop-epoll.c:212
        ctx = (struct ioloop_handler_context *) 0x11047d0
        event = (const struct epoll_event *) 0x1104840
        list = (struct io_list *) 0x112e800
        io = (struct io_file *) 0x112e7c0
        tv = {tv_sec = 2, tv_usec = 537890}
        t_id = 2
        msecs = <value optimized out>
        ret = 1
        call = <value optimized out>
#14 0x00007f7e592eb628 in io_loop_run (ioloop=0x11045c0) at ioloop.c:350
No locals.
#15 0x00007f7e592db1a3 in master_service_run (service=0x1104490, callback=0x261c) at master-service.c:480
No locals.
#16 0x0000000000418d61 in main (argc=1, argv=0x1104370) at main.c:359
        service_flags = <value optimized out>
        storage_service_flags = <value optimized out>
        postlogin_socket_path = 0x0
        username = 0x0
        c = <value optimized out>
        set_roots = {0x41bf40, 0x0}



More information about the dovecot mailing list