[Dovecot] doveadm segfaults on TCP connect - version 2.0.15
Hi list,
I just recently installed Dovecot 2.0.15. Unfortunately, doveadm segfaults when I attempt to connect to the local dovecot instance. When this occurs, my logs show:
2011-10-19T12:31:23-07:00 mail02 dovecot: doveadm: Error: doveadm client not compatible with this server (mixed old and new binaries?)
I am using the settings listed on the wiki page http://wiki2.dovecot.org/Director
[root@mail02 ~]# /opt/dovecot/bin/doveadm who -a 10.10.5.220:544 Segmentation fault (core dumped)
doveconf and gdb output are below. If there is any more information I can provide please let me know.
Thanks!
[root@mail02 ~]# /opt/dovecot/bin/doveconf -n # 2.0.15: /opt/dovecot-2.0.15/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.17.4.el5 x86_64 CentOS release 5.5 (Final) auth_mechanisms = plain login auth_verbose = yes auth_worker_max_count = 60 default_client_limit = 2048 disable_plaintext_auth = no doveadm_proxy_port = 544 lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes listen = 10.10.5.220, 127.0.0.1 lmtp_save_to_detail_mailbox = yes mail_fsync = always mail_log_prefix = "%r mpid=%p %s(%u): " mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = " notify mail_log" 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 mmap_disable = yes passdb { args = /opt/dovecot/etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } plugin { mail_log_events = delete expunge mailbox_delete mail_log_fields = msgid box from mail_log_group_events = yes sieve = ~/MainSieve sieve_before = /storage03/sieve/before/ sieve_dir = ~/sieve sieve_max_actions = 32 sieve_max_redirects = 4 sieve_max_script_size = 2M } quota_full_tempfail = yes service anvil { client_limit = 2000 } service auth { client_limit = 7000 unix_listener /var/spool/postfix/private/auth { mode = 0600 user = postfix } unix_listener auth-userdb { group = mailowner mode = 0600 user = mailowner } } service doveadm { inet_listener { port = 544 } } service imap-login { inet_listener imap { port = 143 } process_min_avail = 4 service_count = 0 vsz_limit = 128 M } service imap {%0
On 2011-10-19 3:40 PM, ghandidrivesahumvee@rocketfish.com <ghandidrivesahumvee@rocketfish.com> wrote:
I just recently installed Dovecot 2.0.15. Unfortunately, doveadm segfaults when I attempt to connect to the local dovecot instance. When this occurs, my logs show:
2011-10-19T12:31:23-07:00 mail02 dovecot: doveadm: Error: doveadm client not compatible with this server (mixed old and new binaries?)
I think the error message is pretty clear...
You obviously still have an older version installed...
How did you install 2.0.15?
--
Best regards,
Charles
I think the error message is pretty clear... It is clear, but it is wrong.
./configure --prefix=/opt/dovecot-2.0.15 ; make ; make install
in /opt dovecot is a symlink to dovecot-2.0.15
The binary in the source directory crashes too.
[root@mail02 ~]# /usr/local/src/dovecot-2.0.15/src/doveadm/doveadm who -a 10.10.5.220:544 Segmentation fault (core dumped)
Which OS version ? CentOS 5.5 x86_64
Have you considered the possibility you had a previous version of dovecot installed from the distro, then installed v2.0.15 ? There is no install of dovecot from the distro.
On 2011-10-19 3:40 PM, ghandidrivesahumvee@rocketfish.com <ghandidrivesahumvee@rocketfish.com> wrote:
I just recently installed Dovecot 2.0.15. Unfortunately, doveadm segfaults when I attempt to connect to the local dovecot instance. When this occurs, my logs show:
2011-10-19T12:31:23-07:00 mail02 dovecot: doveadm: Error: doveadm client not compatible with this server (mixed old and new binaries?)
I think the error message is pretty clear...
You obviously still have an older version installed...
How did you install 2.0.15?
--
Best regards,
Charles
On 10/19/2011 10:33 PM ghandidrivesahumvee@rocketfish.com wrote:
Segmentation fault (core dumped)
Please use gdb to generate a backtrace from the dumped core file. (http://dovecot.org/bugreport.html)
Regards, Pascal
The trapper recommends today: defaced.1129222@localdomain.org
Looks like my mail client cut the original message short.
Here is doveconf and gdb output
[root@mail02 ~]# /opt/dovecot/bin/doveconf -n # 2.0.15: /opt/dovecot-2.0.15/etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.17.4.el5 x86_64 CentOS release 5.5 (Final) auth_mechanisms = plain login auth_verbose = yes auth_worker_max_count = 60 default_client_limit = 2048 disable_plaintext_auth = no doveadm_proxy_port = 544 lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes listen = 10.10.5.220, 127.0.0.1 lmtp_save_to_detail_mailbox = yes mail_fsync = always mail_log_prefix = "%r mpid=%p %s(%u): " mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = " notify mail_log" 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 mmap_disable = yes passdb { args = /opt/dovecot/etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } plugin { mail_log_events = delete expunge mailbox_delete mail_log_fields = msgid box from mail_log_group_events = yes sieve = ~/MainSieve sieve_before = /storage03/sieve/before/ sieve_dir = ~/sieve sieve_max_actions = 32 sieve_max_redirects = 4 sieve_max_script_size = 2M } quota_full_tempfail = yes service anvil { client_limit = 2000 } service auth { client_limit = 7000 unix_listener /var/spool/postfix/private/auth { mode = 0600 user = postfix } unix_listener auth-userdb { group = mailowner mode = 0600 user = mailowner } } service doveadm { inet_listener { port = 544 } } service imap-login { inet_listener imap { port = 143 } process_min_avail = 4 service_count = 0 vsz_limit = 128 M } service imap { process_limit = 3072 } service lmtp { inet_listener lmtp { port = 24 } vsz_limit = 2 G } service pop3-login { inet_listener pop3 { port = 110 } } service pop3 { process_limit = 3072 }
syslog_facility = local3 userdb { args = /opt/dovecot/etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } protocol imap { mail_max_userip_connections = 2000 } protocol lmtp { lmtp_save_to_detail_mailbox = yes mail_plugins = sieve } protocol pop3 { pop3_uidl_format = %08Xu%08Xv }
[root@mail02 ~]# gdb /opt/dovecot/bin/doveadm ./core.14731 GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2) Copyright (C) 2009 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-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /opt/dovecot-2.0.15/bin/doveadm...done. Reading symbols from /opt/dovecot-2.0.15/lib/dovecot/libdovecot-storage.so.0...done. Loaded symbols for /opt/dovecot-2.0.15/lib/dovecot/libdovecot-storage.so.0 Reading symbols from /lib64/libpam.so.0...(no debugging symbols found)...done. Loaded symbols for /lib64/libpam.so.0 Reading symbols from /usr/lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libgssapi_krb5.so.2 Reading symbols from /usr/lib64/libkrb5.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libkrb5.so.3 Reading symbols from /usr/lib64/libk5crypto.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libk5crypto.so.3 Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libcom_err.so.2 Reading symbols from /usr/lib64/mysql/libmysqlclient.so.15...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/mysql/libmysqlclient.so.15 Reading symbols from /usr/lib64/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libz.so.1 Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libcrypt.so.1 Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libnsl.so.1 Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libm.so.6 Reading symbols from /lib64/libssl.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libssl.so.6 Reading symbols from /lib64/libcrypto.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libcrypto.so.6 Reading symbols from /opt/dovecot-2.0.15/lib/dovecot/libdovecot.so.0...done. Loaded symbols for /opt/dovecot-2.0.15/lib/dovecot/libdovecot.so.0 Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/librt.so.1 Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/libaudit.so.0...(no debugging symbols found)...done. Loaded symbols for /lib64/libaudit.so.0 Reading symbols from /usr/lib64/libkrb5support.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/libkrb5support.so.0 Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libkeyutils.so.1 Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/libresolv.so.2 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done. Loaded symbols for /lib64/libpthread.so.0 Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libselinux.so.1 Reading symbols from /lib64/libsepol.so.1...(no debugging symbols found)...done. Loaded symbols for /lib64/libsepol.so.1 Reading symbols from /opt/dovecot-2.0.15/lib/dovecot/lib15_notify_plugin.so...done. Loaded symbols for /opt/dovecot-2.0.15/lib/dovecot/lib15_notify_plugin.so Reading symbols from /opt/dovecot-2.0.15/lib/dovecot/lib20_mail_log_plugin.so...done. Loaded symbols for /opt/dovecot-2.0.15/lib/dovecot/lib20_mail_log_plugin.so Core was generated by `/opt/dovecot/bin/doveadm who -a 172.16.5.234:544'. Program terminated with signal 11, Segmentation fault. #0 0x0000003a6be349fa in ____strtoull_l_internal () from /lib64/libc.so.6 (gdb) bt full #0 0x0000003a6be349fa in ____strtoull_l_internal () from /lib64/libc.so.6 No symbol table info available. #1 0x00000000004170f9 in who_parse_line (ctx=0x7fff05cb2990, callback=0x4175e0 <who_aggregate_line>) at /usr/include/stdlib.h:342 ident = 0x14149980 "-" p = 0x1 <Address 0x1 out of bounds> #2 who_lookup (ctx=0x7fff05cb2990, callback=0x4175e0 <who_aggregate_line>) at doveadm-who.c:152 who_line = {username = 0x0, service = 0x0, ip = {family = 0, u = {ip6 = {in6_u = {u6_addr8 = '\000' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, pid = 0, refcount = 0} _data_stack_cur_id = 2 input = 0x1415efb0 line = <value optimized out> fd = <value optimized out> #3 0x0000000000417349 in cmd_who (argc=3, argv=0x141494d8) at doveadm-who.c:298 ctx = {anvil_path = 0x14149518 "172.16.5.234:544", filter = {username = 0x0, net_ip = {family = 0, u = {ip6 = {in6_u = {u6_addr8 = '\000' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, net_bits = 0}, pool = 0x1415b000, users = 0x1415d7f0} separate_connections = false c = <value optimized out> #4 0x000000000040f9e3 in doveadm_try_run (argc=3, argv=0x141494d8) at doveadm.c:192 cmd = 0x14158e90 cmd_name_len = 3 __FUNCTION__ = "doveadm_try_run" #5 main (argc=3, argv=0x141494d8) at doveadm.c:346 cmd_name = 0x14149511 "who" quick_init = false c = <value optimized out> (gdb)
----- Original Message -----
From: "ghandidrivesahumvee@rocketfish.com" <ghandidrivesahumvee@rocketfish.com> To: dovecot@dovecot.org Cc: Sent: Wednesday, 19 October 2011, 22:40 Subject: [Dovecot] doveadm segfaults on TCP connect - version 2.0.15
Hi list,
I just recently installed Dovecot 2.0.15. Unfortunately, doveadm segfaults when I attempt to connect to the local dovecot instance. When this occurs, my logs show:
2011-10-19T12:31:23-07:00 mail02 dovecot: doveadm: Error: doveadm client not compatible with this server (mixed old and new binaries?)
I am using the settings listed on the wiki page http://wiki2.dovecot.org/Director
[root@mail02 ~]# /opt/dovecot/bin/doveadm who -a 10.10.5.220:544 Segmentation fault (core dumped)
doveconf and gdb output are below. If there is any more information I can provide please let me know.
Thanks!
Which OS version ?
Have you considered the possibility you had a previous version of dovecot installed from the distro, then installed v2.0.15 ?
Just saying,
s.
"I merely function as a channel that filters music through the chaos of noise"
- Vangelis
On Wed, 2011-10-19 at 12:40 -0700, ghandidrivesahumvee@rocketfish.com wrote:
I just recently installed Dovecot 2.0.15. Unfortunately, doveadm segfaults when I attempt to connect to the local dovecot instance.
I fixed a lot of bugs related to this for v2.1. I'm not sure if I'll bother backporting them, since it can't work perfectly anyway without breaking other stuff.. Hopefully v2.1.0 won't be too far away now :)
participants (5)
-
Charles Marcus
-
ghandidrivesahumvee@rocketfish.com
-
Pascal Volk
-
Spyros Tsiolis
-
Timo Sirainen