doveadm batch crash

Jonathan Casiot jonathan at pueblo.co.uk
Sat Dec 8 21:53:44 EET 2018


Hi

I'm having an issue with doveadm batch - the following command always 
crashes:

doveadm batch : mailbox status all inbox

Whereas the following work as expected:

doveadm mailbox status all inbox
doveadm batch : mailbox list


Any assistance gratefully received.


Debug output from the crash:

Debug: Loading modules from directory: /usr/lib64/dovecot
Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Debug: Module loaded: /usr/lib64/dovecot/lib10_mail_crypt_plugin.so
Debug: Module loaded: /usr/lib64/dovecot/lib90_stats_plugin.so
Debug: Loading modules from directory: /usr/lib64/dovecot/doveadm
Debug: Module loaded: /usr/lib64/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: 
/usr/lib64/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined 
symbol: expire_set_deinit (this is usually intentional, so just ignore 
this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: 
/usr/lib64/dovecot/doveadm/lib10_doveadm_quota_plugin.so: undefined 
symbol: quota_user_module (this is usually intentional, so just ignore 
this message)
Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() 
failed: /usr/lib64/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so: 
undefined symbol: lucene_index_iter_deinit (this is usually intentional, 
so just ignore this message)
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: 
/usr/lib64/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined 
symbol: fts_user_get_language_list (this is usually intentional, so just 
ignore this message)
Debug: Module loaded: 
/usr/lib64/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so
doveadm(jc): Debug: Effective uid=1001, gid=100, home=/home/jc
doveadm(jc): Debug: acl: No acl_shared_dict setting - shared mailbox 
listing is disabled
doveadm(jc): Debug: mail_crypt_plugin: mail_crypt_curve setting missing 
- generating EC keys disabled
doveadm(jc): Debug: Namespace inbox: type=private, prefix=, sep=., 
inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=mdbox:~/mdbox:ALT=~/Archive/tape/mdbox
doveadm(jc): Debug: fs: root=/home/jc/mdbox, index=, indexpvt=, 
control=, inbox=, alt=/home/jc/Archive/tape/mdbox
doveadm(jc): Debug: acl: initializing backend with data: vfile
doveadm(jc): Debug: acl: acl username = jc
doveadm(jc): Debug: acl: owner = 1
doveadm(jc): Debug: acl vfile: Global ACLs disabled
doveadm(jc): Panic: file mail-storage.c: line 875 (mailbox_set_reason): 
assertion failed: (reason != NULL)
doveadm(jc): Error: Raw backtrace: 
/usr/lib64/dovecot/libdovecot.so.0(+0xa0e9e) [0x7fc993023e9e] -> 
/usr/lib64/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) 
[0x7fc993023f0a] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) 
[0x7fc992fb3c97] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x49856) 
[0x7fc993301856] -> /usr/bin/doveadm(+0x348e2) [0x5631dbb5f8e2] -> 
/usr/bin/doveadm(+0x2e1ad) [0x5631dbb591ad] -> 
/usr/bin/doveadm(+0x2bd2c) [0x5631dbb56d2c] -> 
/usr/bin/doveadm(+0x2c92a) [0x5631dbb5792a] -> 
/usr/bin/doveadm(doveadm_mail_try_run+0x215) [0x5631dbb58285] -> 
/usr/bin/doveadm(main+0x46a) [0x5631dbb473fa] -> 
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7fc992bd83d5] -> 
/usr/bin/doveadm(+0x1c565) [0x5631dbb47565]
Aborted (core dumped)


And doveconf -n output:

# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-957.1.3.el7.x86_64 x86_64 CentOS Linux release 
7.6.1810 (Core)
# Hostname: ### redacted ###
first_valid_gid = 100
first_valid_uid = 1000
last_valid_gid = 100
last_valid_uid = 1999
listen = *
login_greeting = IMAP ready
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e 
session=<%{session}> %k
mail_attribute_dict = file:%h/mdbox/dovecot-attributes
mail_location = mdbox:~/mdbox:ALT=~/Archive/tape/mdbox
mail_plugins = acl stats mail_crypt
mailbox_list_index = yes
mdbox_rotate_size = 16 M
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     special_use = \Drafts
   }
   mailbox Junk {
     special_use = \Junk
   }
   mailbox Sent {
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Trash {
     special_use = \Trash
   }
   prefix =
   separator = .
}
passdb {
   driver = pam
}
plugin {
   acl = vfile
   mail_crypt_global_private_key = <### redacted ###
   mail_crypt_global_public_key = <### redacted ###
   mail_crypt_save_version = 2
   stats_memory_limit = 16 M
   stats_refresh = 30 secs
   stats_track_cmds = yes
}
postmaster_address = ### redacted ###
protocols = imap
service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0660
     user = postfix
   }
}
service imap-login {
   process_limit = 200
   process_min_avail = 4
   service_count = 1
}
service stats {
   fifo_listener stats-mail {
     group = users
     mode = 01224
   }
}
ssl = required
ssl_cert = <### redacted ###
ssl_key =  # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3 !TLSv1
userdb {
   driver = passwd
}
verbose_proctitle = yes
protocol imap {
   imap_idle_notify_interval = 10 mins
   imap_metadata = yes
   mail_max_userip_connections = 20
   mail_plugins = acl stats mail_crypt imap_acl imap_stats
}


Regards,

-- 
Jonathan


More information about the dovecot mailing list