doveadm mailbox list -s Segmentation fault

Kristjan Eentsalu eentsalu at gmail.com
Mon Nov 20 10:30:41 EET 2017


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