doveadm mailbox list -s Segmentation fault

Aki Tuomi aki.tuomi at dovecot.fi
Mon Nov 20 10:42:46 EET 2017


Can you provide subscriptions file for the user as well?

Aki


On 20.11.2017 10:37, Kristjan Eentsalu wrote:
> Sorry, forgot to include it first time. bt full down below
>
> (gdb) bt full
> #0  0x0000000800d77e04 in mailbox_tree_traverse (tree=0x0, path=0x801c1a540
> "INBOX", create=false, created_r=0x7fffffffe4f7) at mailbox-tree.c:103
>         node = (struct mailbox_node **) 0x10
>         parent = (struct mailbox_node *) 0x0
>         name = 0x801c1a540 "INBOX"
>         str = (string_t *) 0x801c1a560
> #1  0x0000000800d77fc2 in mailbox_tree_lookup (tree=0x0, path=0x801cfa770
> "INBOX") at mailbox-tree.c:168
>         _data_stack_cur_id = 3
>         node = (struct mailbox_node *) 0x8015aa72e
>         created = false
> #2  0x0000000800e03155 in mailbox_list_set_subscription_flags
> (list=0x801c71848, vname=0x801cfa770 "INBOX", flags=0x801cfa4f0) at
> mailbox-list-subscriptions.c:188
>         node = (struct mailbox_node *) 0x7fffffffeb28
> #3  0x0000000800dfe624 in mailbox_list_ns_prefix_return (ctx=0x801cfa448,
> ns=0x801c35460, has_children=false) at mailbox-list-iter.c:473
>         box = (struct mailbox *) 0x800dfe345
>         existence = 32767
>         ret = -6768
> #4  0x0000000800dfdeeb in mailbox_list_ns_iter_try_next (_ctx=0x801cfa448,
> info_r=0x7fffffffe5f0) at mailbox-list-iter.c:583
>         ctx = (struct ns_list_iterate_context *) 0x801cfa448
>         ns = (struct mail_namespace *) 0x801c35460
>         info = (const struct mailbox_info *) 0x0
>         has_children = false
> #5  0x0000000800dfc7a1 in mailbox_list_ns_iter_next (_ctx=0x801cfa448) at
> mailbox-list-iter.c:658
>         info = (const struct mailbox_info *) 0x0
> #6  0x0000000800dfd6c8 in mailbox_list_iter_next_call (ctx=0x801cfa448) at
> mailbox-list-iter.c:985
>         info = (const struct mailbox_info *) 0x1
>         set = (const struct mailbox_settings *) 0x8080808080808080
> #7  0x0000000800dfd644 in mailbox_list_iter_next (ctx=0x801cfa448) at
> mailbox-list-iter.c:1053
>         _data_stack_cur_id = 2
>         info = (const struct mailbox_info *) 0x206
> #8  0x000000000043a0e9 in doveadm_mailbox_list_iter_next (iter=0x801c80060)
> at doveadm-mailbox-list-iter.c:181
>         info = (const struct mailbox_info *) 0x801c76048
>         patterns = (const char * const *) 0x110000000007
>         count = 8
> #9  0x0000000000436516 in cmd_mailbox_list_run (_ctx=0x801c48448,
> user=0x801cdc348) at doveadm-mail-mailbox.c:146
>         ctx = (struct list_cmd_context *) 0x801c48448
>         iter_flags = 4352
>         iter = (struct doveadm_mailbox_list_iter *) 0x801c80060
>         info = (const struct mailbox_info *) 0x801c6e048
>         str = (string_t *) 0x801c1a308
> #10 0x000000000042d222 in doveadm_mail_next_user (ctx=0x801c48448,
> cctx=0x7fffffffea60, error_r=0x7fffffffe808) at doveadm-mail.c:429
>         input = {module = 0x0, service = 0x487ca4 "doveadm", username =
> 0x801c18030 "kristjan.eentsalu", session_id = 0x0, session_id_prefix = 0x0,
> session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__u6_addr = {
>           __u6_addr8 = 0x7fffffffe75c "", __u6_addr16 = 0x7fffffffe75c,
> __u6_addr32 = 0x7fffffffe75c}}, ip4 = {s_addr = 0}}}, remote_ip = {family =
> 0, u = {ip6 = {__u6_addr = {__u6_addr8 = 0x7fffffffe770 "",
>           __u6_addr16 = 0x7fffffffe770, __u6_addr32 = 0x7fffffffe770}}, ip4
> = {s_addr = 0}}}, local_port = 0, remote_port = 0, userdb_fields = 0x0,
> flags_override_add = 0, flags_override_remove = 0, no_userdb_lookup = 0,
> debug = 0}
>         error = 0x7fffffffe750 ""
>         ip = 0x801219f28 ""
>         ret = 0
> #11 0x000000000042cef5 in doveadm_mail_single_user (ctx=0x801c48448,
> cctx=0x7fffffffea60, error_r=0x7fffffffe808) at doveadm-mail.c:460
> No locals.
> #12 0x000000000042ed8a in doveadm_mail_cmd_exec (ctx=0x801c48448,
> cctx=0x7fffffffea60, wildcard_user=0x0) at doveadm-mail.c:621
>         ret = 32767
>         error = 0x801c48628 "`\206▒\001\b"
> #13 0x000000000042e936 in doveadm_cmd_ver2_to_mail_cmd_wrapper
> (cctx=0x7fffffffea60) at doveadm-mail.c:1089
>         mctx = (struct doveadm_mail_cmd_context *) 0x801c48448
>         wildcard_user = 0x0
>         fieldstr = 0x48777b "-u"
>         pargv = {arr = {buffer = 0x801c486a8, element_size = 8}, v =
> 0x801c486a8, v_modifiable = 0x801c486a8}
>         full_args = {arr = {buffer = 0x801c48628, element_size = 8}, v =
> 0x801c48628, v_modifiable = 0x801c48628}
>         i = 8
>         mail_cmd = {alloc = 0x436080 <cmd_mailbox_list_alloc>, name =
> 0x48cf58 "mailbox list", usage_args = 0x48cf65 "[-u <user>|-A] [-S
> <socket_path>] [-7|-8] [-s] [<mailbox mask> [...]]"}
>         dashdash = 0x4969bf "--"
>         args_pos = 4
> #14 0x0000000000445d9b in doveadm_cmd_run_ver2 (argc=4,
> argv=0x7fffffffeb40, cctx=0x7fffffffea60) at doveadm-cmd.c:572
> ---Type <return> to continue, or q <return> to quit---
>         param = (struct doveadm_cmd_param *) 0x801c17ae0
>         pargv = {arr = {buffer = 0x801c177d0, element_size = 104}, v =
> 0x801c177d0, v_modifiable = 0x801c177d0}
>         opts = {arr = {buffer = 0x801c17598, element_size = 32}, v =
> 0x801c17598, v_modifiable = 0x801c17598}
>         pargc = 8
>         c = -1
>         li = 32767
>         pool = 0x801c17500
>         optbuf = (string_t *) 0x801c17518
> #15 0x00000000004458c1 in doveadm_cmd_try_run_ver2 (cmd_name=0x7fffffffeda8
> "mailbox", argc=4, argv=0x7fffffffeb40, cctx=0x7fffffffea60) at
> doveadm-cmd.c:495
>         cmd = (const struct doveadm_cmd_ver2 *) 0x801c59a10
> #16 0x000000000044a549 in main (argc=5, argv=0x7fffffffeb38) at
> doveadm.c:382
>         service_flags = 10
>         cctx = {cmd = 0x801c59a10, argc = 8, argv = 0x801c17808, username =
> 0x801c18030 "kristjan.eentsalu", cli = true, tcp_server = false, local_ip =
> {family = 0, u = {ip6 = {__u6_addr = {__u6_addr8 = 0x7fffffffea88 "",
>           __u6_addr16 = 0x7fffffffea88, __u6_addr32 = 0x7fffffffea88}}, ip4
> = {s_addr = 0}}}, remote_ip = {family = 0, u = {ip6 = {__u6_addr =
> {__u6_addr8 = 0x7fffffffea9c "", __u6_addr16 = 0x7fffffffea9c,
>           __u6_addr32 = 0x7fffffffea9c}}, ip4 = {s_addr = 0}}}, local_port
> = 0, remote_port = 0, conn = 0x0}
>         cmd_name = 0x7fffffffeda8 "mailbox"
>         i = 6
>         quick_init = false
>         c = -1
> Current language:  auto; currently minimal
>
> Kristjan
>
> 2017-11-20 10:32 GMT+02:00 Aki Tuomi <aki.tuomi at dovecot.fi>:
>
>> can you please send bt full output?
>>
>> Aki
>>
>>
>> On 20.11.2017 10:30, Kristjan Eentsalu wrote:
>>> Hey,
>>>
>>> I'm getting Segmentation fault when doing "doveadm mailbox list -s -u
>>> kristjan.eentsalu".
>>> doveadm mailbox list -u kristjan.eentsalu works fine.
>>>
>>> OS: FreeBSD 11.1-RELEASE-p1
>>> Dovecot 2.2.33.2 , pigenhole 0.4.21
>>>
>>> Trace and dovecot -n below
>>>
>>> GNU gdb 6.1.1 [FreeBSD]
>>> Copyright 2004 Free Software Foundation, Inc.
>>> GDB is free software, covered by the GNU General Public License, and you
>> are
>>> welcome to change it and/or distribute copies of it under certain
>>> conditions.
>>> Type "show copying" to see the conditions.
>>> There is absolutely no warranty for GDB.  Type "show warranty" for
>> details.
>>> This GDB was configured as "amd64-marcel-freebsd"...
>>> Core was generated by `doveadm mailbox list -s -u kristjan.eentsalu'.
>>> Program terminated with signal 11, Segmentation fault.
>>> Reading symbols from /lib/libz.so.6...done.
>>> Loaded symbols for /lib/libz.so.6
>>> Reading symbols from /lib/libcrypt.so.5...done.
>>> Loaded symbols for /lib/libcrypt.so.5
>>> Reading symbols from /usr/local/lib/dovecot/libdovecot-storage.so.0...
>> done.
>>> Loaded symbols for /usr/local/lib/dovecot/libdovecot-storage.so.0
>>> Reading symbols from /usr/local/lib/dovecot/libdovecot.so.0...done.
>>> Loaded symbols for /usr/local/lib/dovecot/libdovecot.so.0
>>> Reading symbols from /lib/libc.so.7...done.
>>> Loaded symbols for /lib/libc.so.7
>>> Reading symbols from /usr/local/lib/dovecot/lib01_acl_plugin.so...done.
>>> Loaded symbols for /usr/local/lib/dovecot/lib01_acl_plugin.so
>>> Reading symbols from /usr/local/lib/dovecot/lib10_
>> quota_plugin.so...done.
>>> Loaded symbols for /usr/local/lib/dovecot/lib10_quota_plugin.so
>>> Reading symbols from /usr/local/lib/dovecot/lib15_
>> notify_plugin.so...done.
>>> Loaded symbols for /usr/local/lib/dovecot/lib15_notify_plugin.so
>>> Reading symbols from /usr/local/lib/dovecot/lib20_
>> mail_log_plugin.so...done.
>>> Loaded symbols for /usr/local/lib/dovecot/lib20_mail_log_plugin.so
>>> Reading symbols from
>>> /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so...done.
>>> Loaded symbols for
>>> /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
>>> Reading symbols from
>>> /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so...done.
>>> Loaded symbols for
>>> /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
>>> Reading symbols from
>>> /usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so...done.
>>> Loaded symbols for
>>> /usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
>>> Reading symbols from
>>> /usr/local/lib/dovecot-2.2-pigeonhole/libdovecot-sieve.so.0...done.
>>> Loaded symbols for
>>> /usr/local/lib/dovecot-2.2-pigeonhole/libdovecot-sieve.so.0
>>> Reading symbols from /usr/local/lib/libldap-2.4.so.2...done.
>>> Loaded symbols for /usr/local/lib/libldap-2.4.so.2
>>> Reading symbols from /usr/local/lib/liblber-2.4.so.2...done.
>>> Loaded symbols for /usr/local/lib/liblber-2.4.so.2
>>> Reading symbols from /usr/local/lib/dovecot/libdovecot-lda.so.0...done.
>>> Loaded symbols for /usr/local/lib/dovecot/libdovecot-lda.so.0
>>> Reading symbols from /usr/lib/libssl.so.8...done.
>>> Loaded symbols for /usr/lib/libssl.so.8
>>> Reading symbols from /lib/libcrypto.so.8...done.
>>> Loaded symbols for /lib/libcrypto.so.8
>>> Reading symbols from /libexec/ld-elf.so.1...done.
>>> Loaded symbols for /libexec/ld-elf.so.1
>>> #0  0x0000000800d77e04 in mailbox_tree_traverse (tree=0x0,
>> path=0x801c1a540
>>> "INBOX", create=false, created_r=0x7fffffffe4f7) at mailbox-tree.c:103
>>> 103                     if (*path != tree->separator && *path != '\0')
>>>
>>>
>>> # 2.2.33.2 (d6601f4ec): /usr/local/etc/dovecot/dovecot.conf
>>> # Pigeonhole version 0.4.21 (92477967)
>>> # OS: FreeBSD 11.1-RELEASE-p1 amd64
>>> auth_master_user_separator = *
>>> auth_verbose_passwords = plain
>>> disable_plaintext_auth = no
>>> lmtp_save_to_detail_mailbox = yes
>>> mail_access_groups = imapmail
>>> mail_gid = imapmail
>>> mail_plugins = acl quota mail_log notify
>>> mail_uid = imapmail
>>> mailbox_list_index = yes
>>> managesieve_notify_capability = mailto
>>> managesieve_sieve_capability = fileinto reject envelope encoded-character
>>> vacation subaddress comparator-i;ascii-numeric relational regex
>> imap4flags
>>> copy include variables body enotify environment mailbox date index ihave
>>> duplicate mime foreverypart extracttext editheader
>>> namespace {
>>>   hidden = no
>>>   inbox = no
>>>   list = no
>>>   location =
>>>   prefix =
>>>   separator = /
>>>   subscriptions = yes
>>>   type = private
>>> }
>>> namespace avalik {
>>>   hidden = no
>>>   list = children
>>>   location = maildir:/mail/imap/
>>> domain.ee/shared:INDEXPVT=%h/public:LAYOUT=fs:DIRNAME=dsfFSFS
>>>   prefix = shared/
>>>   separator = /
>>>   subscriptions = no
>>>   type = public
>>> }
>>> namespace inbox {
>>>   alias_for =
>>>   hidden = no
>>>   inbox = yes
>>>   list = yes
>>>   location =
>>>   mailbox Drafts {
>>>     special_use = \Drafts
>>>   }
>>>   mailbox Sent {
>>>     special_use = \Sent
>>>   }
>>>   mailbox "Sent Messages" {
>>>     special_use = \Sent
>>>   }
>>>   mailbox Spam {
>>>     special_use = \Junk
>>>   }
>>>   mailbox Trash {
>>>     special_use = \Trash
>>>   }
>>>   prefix = INBOX/
>>>   separator = /
>>>   subscriptions = no
>>>   type = private
>>> }
>>> namespace user {
>>>   list = children
>>>   location =
>>> maildir:%%h/Maildir:LAYOUT=fs:DIRNAME=dsfFSFS:INDEXPVT=%h/shared/%%n
>>>   prefix = user/%%n/
>>>   separator = /
>>>   subscriptions = no
>>>   type = shared
>>> }
>>> passdb {
>>>   args = /usr/local/etc/dovecot/master-users
>>>   driver = passwd-file
>>>   master = yes
>>>   pass = yes
>>> }
>>> passdb {
>>>   args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>>>   driver = ldap
>>> }
>>> passdb {
>>>   args = username_format=%u /usr/local/etc/dovecot/users
>>>   driver = passwd-file
>>> }
>>> plugin {
>>>   acl = vfile:/mail/dovecot/db/global-acls:cache_secs=300
>>>   acl_shared_dict = file:/mail/dovecot/db/shared-mailboxes
>>>   quota = maildir
>>>   quota2 = maildir:Public quota:ns=shared/
>>>   quota2_rule = *:storage=100G
>>>   quota_grace = 10%%
>>>   quota_rule = *:storage=5G
>>>   quota_rule2 = INBOX/Trash:storage=+100M
>>>   quota_status_nouser = DUNNO
>>>   quota_status_overquota = 552 5.2.2 Mailbox is full
>>>   quota_status_success = DUNNO
>>>   recipient_delimiter = +
>>>   sieve = file:~/sieve;active=~/.dovecot.sieve
>>>   sieve_extensions = +editheader
>>> }
>>> protocols = imap lmtp sieve
>>> service lmtp {
>>>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>>>     group = postfix
>>>     mode = 0600
>>>     user = postfix
>>>   }
>>> }
>>> service managesieve-login {
>>>   inet_listener sieve {
>>>     port = 4190
>>>   }
>>>   inet_listener sieve_deprecated {
>>>     port = 2000
>>>   }
>>>   service_count = 0
>>>   vsz_limit = 64 M
>>> }
>>> ssl = no
>>> ssl_cert = </etc/ssl/servercerts/domain.crt
>>> ssl_key =  # hidden, use -P to show it
>>> userdb {
>>>   args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>>>   driver = ldap
>>> }
>>> userdb {
>>>   args = username_format=%u /usr/local/etc/dovecot/users
>>>   default_fields = uid=1000 gid=1000 home=/mail/imap/%d/user/%n
>>> mail=maildir:~/Maildir:LAYOUT=fs:DIRNAME=dsfFSFS
>>>   driver = passwd-file
>>> }
>>> protocol lmtp {
>>>   mail_plugins = acl quota mail_log notify sieve
>>>   postmaster_address = postmaster at domain.ee
>>> }
>>> protocol imap {
>>>   mail_plugins = acl quota mail_log notify imap_acl imap_quota
>>> }
>>>
>>> Kristjan
>>



More information about the dovecot mailing list