[Dovecot] Dovecot-auth crash after upgrade to 1.2.16
Just made FreeBSD 8.1 portupgrade to new Dovecot version 1.2.16 from 1.2.14_1. In message log I has many records such this
Jan 4 23:30:11 beta kernel: pid 15096 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15097 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15098 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15099 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15100 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:12 beta kernel: pid 15105 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Here is backtrace of coredump
beta# gdb /usr/local/libexec/dovecot/dovecot-auth dovecot-auth.core
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 "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `dovecot-auth'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/lib/libpam.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpam.so.5
Reading symbols from /usr/local/lib/libmysqlclient.so.16...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libmysqlclient.so.16
Reading symbols from /lib/libz.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/lib/nss_winbind.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/nss_winbind.so.1
Reading symbols from /lib/libthr.so.3...(no debugging symbols
found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x1812eb34 in my_stat () from /usr/local/lib/libmysqlclient.so.16
[New Thread 1874b140 (LWP 100098)]
(gdb) quit
and my config (wich worked perfectly before):
beta# dovecot -n
# 1.2.16: /usr/local/etc/dovecot.conf
# OS: FreeBSD 8.1-STABLE i386 ufs
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_cert_file: /etc/ssl/dovecot.crt
ssl_key_file: /etc/ssl/dovecot.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_processes_count: 8
login_max_processes_count: 32
login_max_connections: 64
verbose_proctitle: yes
first_valid_uid: 25
first_valid_gid: 0
mail_access_groups: mail
mail_privileged_group: mail
mail_location: maildir:/var/mail/%d/%n
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
type: private
separator: .
inbox: yes
list: yes
subscriptions: yes
namespace:
type: public
separator: .
prefix: public.
location: maildir:/var/mail/public:INDEX=~/public
list: children
lda:
postmaster_address: postmaster@peek.ru
mail_plugins: sieve
mail_plugin_dir: /usr/local/lib/dovecot/lda
sendmail_path: /usr/sbin/sendmail
auth_socket_path: /var/run/dovecot/auth-master
auth default:
mechanisms: cram-md5 plain login
username_format: %Lu
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
user: mailnull
master:
path: /var/run/dovecot/auth-master
mode: 384
user: mailnull
plugin:
sieve_global_path: /usr/local/etc/dovecot/dovecot-sieve.conf
sieve_dir: ~/sieve
Well, I took a little investigation about it and found that the problem in new MySQL 5.5.8 client. I believe that the better solution in this case is downgrade to 5.5.7 client. Here is the prooflink http://www.pubbs.net/201012/freebsd/38528-mysql-client-558-breaks-postfix-do...
2011/1/4 Maxim Kostikov <max.kostikov@gmail.com>
Just made FreeBSD 8.1 portupgrade to new Dovecot version 1.2.16 from 1.2.14_1. In message log I has many records such this
Jan 4 23:30:11 beta kernel: pid 15096 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15097 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15098 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15099 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:11 beta kernel: pid 15100 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Jan 4 23:30:12 beta kernel: pid 15105 (dovecot-auth), uid 0: exited on s
ignal 11 (core dumped)
Here is backtrace of coredump
beta# gdb /usr/local/libexec/dovecot/dovecot-auth dovecot-auth.core
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 "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `dovecot-auth'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/lib/libpam.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpam.so.5
Reading symbols from /usr/local/lib/libmysqlclient.so.16...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libmysqlclient.so.16
Reading symbols from /lib/libz.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/lib/nss_winbind.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/nss_winbind.so.1
Reading symbols from /lib/libthr.so.3...(no debugging symbols
found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x1812eb34 in my_stat () from /usr/local/lib/libmysqlclient.so.16
[New Thread 1874b140 (LWP 100098)]
(gdb) quit
and my config (wich worked perfectly before):
beta# dovecot -n
# 1.2.16: /usr/local/etc/dovecot.conf
# OS: FreeBSD 8.1-STABLE i386 ufs
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_cert_file: /etc/ssl/dovecot.crt
ssl_key_file: /etc/ssl/dovecot.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_processes_count: 8
login_max_processes_count: 32
login_max_connections: 64
verbose_proctitle: yes
first_valid_uid: 25
first_valid_gid: 0
mail_access_groups: mail
mail_privileged_group: mail
mail_location: maildir:/var/mail/%d/%n
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
type: private
separator: .
inbox: yes
list: yes
subscriptions: yes
namespace:
type: public
separator: .
prefix: public.
location: maildir:/var/mail/public:INDEX=~/public
list: children
lda:
postmaster_address: postmaster@peek.ru
mail_plugins: sieve
mail_plugin_dir: /usr/local/lib/dovecot/lda
sendmail_path: /usr/sbin/sendmail
auth_socket_path: /var/run/dovecot/auth-master
auth default:
mechanisms: cram-md5 plain login
username_format: %Lu
passdb:
driver: sql args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: sql args: /usr/local/etc/dovecot-sql.conf
socket:
type: listen client: path: /var/run/dovecot/auth-client mode: 432 user: mailnull master: path: /var/run/dovecot/auth-master mode: 384 user: mailnull
plugin:
sieve_global_path: /usr/local/etc/dovecot/dovecot-sieve.conf
sieve_dir: ~/sieve
-- Best regards, Maxim V. Kostikov ICQ #115377
participants (1)
-
Maxim Kostikov