Re: [Dovecot] tcpwrap: Fatal: master: service(tcpwrap): child $PID killed with signal 11

2013-03-04 Thread Timo Sirainen
On 3.3.2013, at 16.04, Pascal Volk  
wrote:

> today I've started Dovecot v2.2.rc2 (976bf9e69367) for the first time.
> 
> Mar  3 14:28:38 mail dovecot: tcpwrap: Fatal: master: service(tcpwrap): child 
> $PID killed with signal 11 (core dumped)

Fixed: http://hg.dovecot.org/dovecot-2.2/rev/b5a1a40348b8




[Dovecot] tcpwrap: Fatal: master: service(tcpwrap): child $PID killed with signal 11

2013-03-03 Thread Pascal Volk
Hi Timo,

today I've started Dovecot v2.2.rc2 (976bf9e69367) for the first time.

/var/log/mail.log:

Mar  3 14:28:33 mail dovecot: master: Dovecot v2.2.rc2 (976bf9e69367) starting 
up
Mar  3 14:28:38 mail dovecot: master: Error: service(tcpwrap): command startup 
failed, throttling for 2 secs
Mar  3 14:28:38 mail dovecot: tcpwrap: Fatal: master: service(tcpwrap): child 
$PID killed with signal 11 (core dumped)
Mar  3 14:28:38 mail dovecot: imap-login: Error: read(tcpwrap) failed: 
Connection reset by peer
Mar  3 14:28:38 mail dovecot: imap-login: access(tcpwrap): Client refused 
(rip=$RIP)
Mar  3 14:28:38 mail dovecot: auth: pgsql(/var/run/postgresql): Connected to 
database mailsys


Regards,
Pascal
-- 
The trapper recommends today: f007ba11.1306...@localdomain.org
el-tio ~ # gdb /usr/local/libexec/dovecot/tcpwrap /var/run/dovecot2/core
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/local/libexec/dovecot/tcpwrap...done.
[New LWP 29930]

warning: Can't read pathname for load map: Input/output error.
[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/tcpwrap'.
Program terminated with signal 11, Segmentation fault.
#0  0x7fd7c345caf4 in master_service_init (name=0x4016b7 "tcpwrap", 
flags=0, argc=0x7fffc2c0920c, argv=0x7fffc2c09200, getopt_str=0x0) at 
master-service.c:153
153 service->getopt_str = *getopt_str == '\0' ?
(gdb) bt full
#0  0x7fd7c345caf4 in master_service_init (name=0x4016b7 "tcpwrap", 
flags=0, argc=0x7fffc2c0920c, argv=0x7fffc2c09200, getopt_str=0x0) at 
master-service.c:153
service = 0x9875b0
value = 0x7fd7c372e310 
"UH\211\345AWAVAUATE1\344S1\333H\203\354HH\307E\260"
count = 0
__FUNCTION__ = "master_service_init"
#1  0x004014d0 in main (argc=1, argv=0x987390) at tcpwrap.c:115
No locals.
(gdb)
# 2.2.rc2 (976bf9e69367): /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0 
auth_mechanisms = plain login cram-md5
base_dir = /var/run/dovecot2
debug_log_path = /var/log/dovecot_dbg.log
dict {
  quota = pgsql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 7
first_valid_uid = 7
hostname = mail.example.com
listen = 192.0.2.1, 127.0.0.1, ::1, 2001:db8:4:f1::4
lmtp_save_to_detail_mailbox = yes
login_access_sockets = tcpwrap
mail_access_groups = dovemail
mail_location = mdbox:~/mdbox
mail_plugins = quota stats zlib
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 inbox {
  inbox = yes
  location = 
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = 
  separator = /
}
passdb {
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = dict:user:%{uid}:noenforcing:proxy::quota
  quota_rule = *:storage=2G:messages=0
  quota_rule2 = Trash:storage=+100M
  recipient_delimiter = +
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  stats_refresh = 1min
  zlib_save = bz2
  zlib_save_level = 6
}
postmaster_address = postmas...@example.com
protocols = lmtp pop3 imap sieve
service auth-worker {
  unix_listener auth-worker {
group = $default_internal_user
mode = 0660
user = doveauth
  }
  user = doveauth
}
service auth {
  client_limit = 1425
  unix_listener /var/spool/postfix/private/dovecot-auth {
group = postfix
mode = 0600
user = postfix
  }
  user = doveauth
}
service dict {
  idle_kill = 150 secs
  unix_listener dict {
group = dovemail
mode = 0660
  }
}
service imap-login {
  process_limit = 256
}
service imap {
  process_limit = 256
}
service lmtp {
  executable = lmtp -D
  inet_listener lmtp {
address = ::1 127.0.0.1
port = 24
  }
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
  }
}
service stats {
  fifo_listener stats-mail {
mode = 0666
  }
}
service tcpwrap {
  unix_listener login/tcpwrap {
group = $default_login_user
mode = 0600
user = $default_login_user
  }
}
ssl = required
ssl_cert = 
  mail_plugins = quota stats zlib imap_quota imap_stats imap_zlib
}
protocol lmtp {
  mail_plugins = quota stats zlib sieve
}