Dovecot (deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.2
main) crached after create new metadata folder (But the folder with
metadata is created).
Metadata plugin v14.
Coredump: http://yadi.sk/d/bsBCpRS76mXpj
in log: imap(admin at example.ru): Fatal: master: service(imap): child
14339 killed with signal 11 (core dumped)
[10-Jul-2013 11:46:00 +0400]: [A4A2] S: * OK [CAPABILITY IMAP4rev1
LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN
AUTH=LOGIN] Welcome to TU FKP IMAP server.
[10-Jul-2013 11:46:00 +0400]: [A4A2] C: A0001 ID ("name"
"Roundcube"
"version" "1.0-git" "php"
"5.4.4-14+deb7u2" "os" "Linux" "command"
"/?_task=calendar&_action=calendar")
[10-Jul-2013 11:46:00 +0400]: [A4A2] S: * ID ("name"
"Dovecot")
[10-Jul-2013 11:46:00 +0400]: [A4A2] S: A0001 OK ID completed.
[10-Jul-2013 11:46:00 +0400]: [A4A2] C: A0002 AUTHENTICATE PLAIN pass
[10-Jul-2013 11:46:00 +0400]: [A4A2] S: A0002 OK [CAPABILITY IMAP4rev1
LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY
THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND
URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN
CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE METADATA
ANNOTATEMORE] Logged in
[10-Jul-2013 11:46:00 +0400]: [A4A2] C: A0003 CREATE Calendar/New4
[10-Jul-2013 11:46:00 +0400]: [A4A2] S: A0003 OK Create completed.
[10-Jul-2013 11:46:00 +0400]: [A4A2] C: A0004 SUBSCRIBE Calendar/New4
[10-Jul-2013 11:46:00 +0400]: [A4A2] S: A0004 OK Subscribe completed.
[10-Jul-2013 11:46:00 +0400]: [A4A2] C: A0005 SETMETADATA Calendar/New4
(/shared/vendor/kolab/folder-type event
/private/vendor/kolab/folder-type NIL)
root at mail:/var/core# gdb /usr/lib/dovecot/imap /var/core/19851
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/dovecot/imap...Reading symbols from
/usr/lib/debug/usr/lib/dovecot/imap...done.
done.
[New LWP 19851]
warning: Can't read pathname for load map: ?????? ?????/??????.
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `dovecot/imap'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f0a7102686f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0 0x00007f0a7102686f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f0a700ccad9 in metadata_set_entry (entry=0x1705880,
user=<optimized out>) at metadata-backend.c:133
muser = 0x16f6550
key = <optimized out>
dt = <optimized out>
#2 0x00007f0a6fcc4c91 in setmetadata_helper (box=0x1700080,
args=<optimized out>, cmd=0x16fb440) at imap-metadata-plugin.c:673
name = 0x16fffd8 "/private/vendor/kolab/folder-type"
value = 0x0
entry = <optimized out>
ret = <optimized out>
warn_maxsize = <optimized out>
warn_toomany = <optimized out>
arglist = 0x16ffeb8
response = <optimized out>
warn_noprivate = false
#3 cmd_setmetadata (cmd=0x16fb440) at imap-metadata-plugin.c:761
args = 0x16ffca8
mailbox_name = 0x16ffe10 "Calendar/New3"
box = 0x1700080
#4 0x000000000041679c in command_exec (cmd=cmd at entry=0x16fb440) at
imap-commands.c:156
hook = 0x16e00b0
ret = <optimized out>
#5 0x0000000000415800 in client_command_input (cmd=0x16fb440) at
imap-client.c:775
client = 0x16fa910
command = <optimized out>
__FUNCTION__ = "client_command_input"
#6 0x00000000004158ba in client_command_input (cmd=0x16fb440) at
imap-client.c:836
client = 0x16fa910
command = <optimized out>
__FUNCTION__ = "client_command_input"
#7 0x0000000000415b75 in client_handle_next_command
(remove_io_r=<synthetic pointer>, client=0x16fa910) at imap-client.c:874
No locals.
#8 client_handle_input (client=client at entry=0x16fa910) at
imap-client.c:886
_data_stack_cur_id = 3
ret = false
remove_io = false
handled_commands = false
__FUNCTION__ = "client_handle_input"
#9 0x0000000000415f22 in client_input (client=0x16fa910) at
imap-client.c:928
cmd = <optimized out>
output = 0x16fb308
bytes = 112
__FUNCTION__ = "client_input"
#10 0x00007f0a71309f66 in io_loop_call_io (io=0x16f8bd0) at
ioloop.c:387
ioloop = 0x16df700
t_id = 2
#11 0x00007f0a7130add7 in io_loop_handler_run
(ioloop=ioloop at entry=0x16df700) at ioloop-epoll.c:215
ctx = 0x16e0390
events = 0x0
event = 0x16e11f0
list = 0x16f8c20
io = <optimized out>
tv = {tv_sec = 1799, tv_usec = 999792}
events_count = <optimized out>
msecs = <optimized out>
ret = 1
i = <optimized out>
call = <optimized out>
__FUNCTION__ = "io_loop_handler_run"
#12 0x00007f0a71309aa8 in io_loop_run (ioloop=0x16df700) at
ioloop.c:406
No locals.
---Type <return> to continue, or q <return> to quit---
#13 0x00007f0a712bf1e3 in master_service_run (service=0x16df590,
callback=callback at entry=0x41ed40 <client_connected>) at
master-service.c:560
No locals.
#14 0x000000000040bb58 in main (argc=1, argv=0x16df390) at main.c:400
set_roots = {0x426320, 0x0}
login_set = {auth_socket_path = 0x16d7040 "\001",
postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback =
0x41ebf0 <login_client_connected>, failure_callback = 0x41e900
<login_client_failed>, request_auth_token = 1}
service_flags = <optimized out>
storage_service_flags = <optimized out>
username = 0x0
c = <optimized out>
(gdb) quit
root at mail:/var/core# dovecot -n
# 2.2.4 (620876853f6f): /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.1 ext4
auth_cache_negative_ttl = 10 secs
auth_cache_size = 10 M
auth_cache_ttl = 2 mins
auth_master_user_separator = *
auth_mechanisms = plain login
auth_worker_max_count = 4096
base_dir = /var/run/dovecot/
default_client_limit = 8192
default_process_limit = 2048
default_vsz_limit = 2 G
dict {
expire = pgsql:/etc/dovecot/dovecot-dict-expire.conf
metadata = file:/var/lib/dovecot/shared-metadata
}
first_valid_gid = 8
first_valid_uid = 8
info_log_path = /var/log/dovecot/dovecot.log
last_valid_gid = 8
last_valid_uid = 8
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *, [::]
log_path = /var/log/dovecot/dovecot-errors.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_greeting = Welcome to IMAP server.
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_trusted_networks = 127.0.0.1
mail_gid = mail
mail_location =
maildir:/var/mail/%d/%n:LAYOUT=fs:INBOX=/var/mail/%d/%n/maildirfolder:DIRNAME=maildirfolder:INDEX=/var/mail/indexes/%d/%n
mail_max_userip_connections = 1024
mail_plugins = virtual expire metadata
mail_privileged_group = mail
mail_uid = mail
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 ihave
namespace {
hidden = no
inbox = yes
list = yes
location =
maildir:/var/mail/%d/%n:LAYOUT=fs:INBOX=/var/mail/%d/%n/maildirfolder:DIRNAME=maildirfolder:INDEX=/var/mail/indexes/%d/%n:UTF-8
mailbox Archive {
auto = subscribe
special_use = \Archive
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix separator = /
subscriptions = yes
type = private
}
namespace {
hidden = no
ignore_on_failure = no
inbox = no
list = yes
location =
virtual:/etc/dovecot/virtual:CONTROL=/var/mail/controls/%d/%n/???
?????:INDEX=/var/mail/indexes/%d/%n/??? ?????:UTF-8
mailbox {
auto = subscribe
special_use = \All
}
prefix = ??? ?????/
separator = /
subscriptions = no
type = private
}
passdb {
args = /etc/dovecot/dovecot-pgsql-master.conf
driver = sql
master = yes
}
passdb {
args = /etc/dovecot/dovecot-pgsql.conf
driver = sql
}
plugin {
expire = Trash
expire2 = Trash/*
expire3 = Junk
expire_dict = proxy::expire
metadata_dict = proxy::metadata
sieve = /var/mail/%d/%n/dovecot.sieve
sieve_before = /var/lib/dovecot/sieve/
sieve_dir = /var/mail/%d/%n/maildirfolder
sieve_max_actions = 32
sieve_max_redirects = 4
sieve_max_script_size = 1M
}
protocols = imap sieve
service auth-worker {
client_limit = 4096
process_limit = 2048
process_min_avail = 10
service_count = 0
unix_listener auth-worker {
mode = 0600
}
vsz_limit = 1 G
}
service auth {
client_limit = 10240
process_min_avail = 1
service_count = 0
unix_listener auth-client {
group = mail
mode = 0660
user = mail
}
unix_listener auth-master {
group = mail
mode = 0664
user = mail
}
user = dovecot
vsz_limit = 1 G
}
service dict {
unix_listener dict {
group = mail
mode = 0660
user = mail
}
}
service imap-login {
chroot = login
client_limit = 4096
process_limit = 2048
process_min_avail = 10
service_count = 0
user = dovecot
vsz_limit = 1 G
}
service imap {
client_limit = 4096
process_limit = 2048
process_min_avail = 10
service_count = 0
vsz_limit = 1 G
}
service managesieve-login {
chroot = login
client_limit = 4096
executable = /usr/lib/dovecot/managesieve-login
inet_listener sieve {
port = 4190
}
process_limit = 2048
process_min_avail = 10
service_count = 0
user = dovecot
vsz_limit = 1 G
}
service managesieve {
client_limit = 4096
executable = /usr/lib/dovecot/managesieve
process_limit = 2048
process_min_avail = 10
service_count = 0
vsz_limit = 1 G
}
ssl_cert = </etc/ssl/dovecot/example.ru.ca.crt
ssl_cipher_list = ALL:!LOW:!SSLv2
ssl_key = </etc/ssl/dovecot/example.ru.key
ssl_parameters_regenerate = 1 hours
userdb {
args = /etc/dovecot/dovecot-pgsql.conf
driver = sql
}
valid_chroot_dirs = /var/mail/
verbose_proctitle = yes
protocol imap {
mail_max_userip_connections = 1024
mail_plugins = expire virtual metadata imap_metadata
imap_annotatemore
}
protocol lda {
hostname = mail.example.ru
info_log_path = /var/log/dovecot/dovecot-local-deliver.log
log_path = /var/log/dovecot/dovecot-local-deliver-errors.log
mail_plugins = expire sieve virtual
postmaster_address = admin at example.ru
}
protocol sieve {
managesieve_max_line_length = 65536
}
--
Sidlyarenko Sergey
https://github.com/lefoyer