Core dumped when authenticating to managesieve

Aki Tuomi aki.tuomi at dovecot.fi
Mon Jul 24 08:31:53 EEST 2017



On 21.07.2017 16:19, Kristjan Eentsalu wrote:
> Hey,
>
> I'm getting "Error in MANAGESIEVE command received by server." and
>  service(managesieve-login) killed with signal 11 (core dumped)  when doing
> two line autenticate(sogo) to managesieve().
>
> # telnet localhost 4190
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> "IMPLEMENTATION" "Dovecot Pigeonhole"
> "SIEVE" "fileinto reject envelope encoded-character vacation subaddress
> comparator-i;ascii-numeric relational regex imap4flags copy include
> variables body enotify environment mailbox date index ihave duplicate mime
> foreverypart extracttext editheader"
> "NOTIFY" "mailto"
> "SASL" "PLAIN"
> "VERSION" "1.0"
> OK "Dovecot ready."
> AUTHENTICATE "PLAIN" {52+}
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
> NO "Error in MANAGESIEVE command received by server."
> AUTHENTICATE "PLAIN" {52+}  <---- trying again
> Connection closed by foreign host.
>
> and after that in logs there is "dovecot: managesieve-login: Fatal: master:
> service(managesieve-login): child 38748 killed with signal 11 (core dumped)"
>
>
> One line autenticate works.
>
> # telnet localhost 4190
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> "IMPLEMENTATION" "Dovecot Pigeonhole"
> "SIEVE" "fileinto reject envelope encoded-character vacation subaddress
> comparator-i;ascii-numeric relational regex imap4flags copy include
> variables body enotify environment mailbox date index ihave duplicate mime
> foreverypart extracttext editheader"
> "NOTIFY" "mailto"
> "SASL" "PLAIN"
> "VERSION" "1.0"
> OK "Dovecot ready."
> AUTHENTICATE "PLAIN" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=="
> OK "Logged in."
>
>
> OS: FreeBSD 11.1-RC3
> Dovecot 2.2.31 , pigeonhole 0.4.19
>
> Trace below
>
> 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 "amd64-marcel-freebsd"...(no debugging symbols
> found)...
>
> warning: core file may not match specified executable file.
> Core was generated by `dovecot/managesieve-login'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/local/lib/dovecot/libdovecot-login.so.0...done.
> Loaded symbols for /usr/local/lib/dovecot/libdovecot-login.so.0
> Reading symbols from /usr/lib/libssl.so.8...done.
> Loaded symbols for /usr/lib/libssl.so.8
> Reading symbols from /lib/libcrypto.so.8...done.
> Loaded symbols for /lib/libcrypto.so.8
> Reading symbols from /usr/local/lib/dovecot/libdovecot.so.0...done.
> Loaded symbols for /usr/local/lib/dovecot/libdovecot.so.0
> Reading symbols from /usr/lib/libkrb5.so.11...done.
> Loaded symbols for /usr/lib/libkrb5.so.11
> Reading symbols from /usr/lib/libgssapi.so.10...done.
> Loaded symbols for /usr/lib/libgssapi.so.10
> Reading symbols from /usr/lib/libgssapi_krb5.so.10...done.
> Loaded symbols for /usr/lib/libgssapi_krb5.so.10
> Reading symbols from /lib/libc.so.7...done.
> Loaded symbols for /lib/libc.so.7
> Reading symbols from /usr/lib/libasn1.so.11...done.
> Loaded symbols for /usr/lib/libasn1.so.11
> Reading symbols from /usr/lib/libcom_err.so.5...done.
> Loaded symbols for /usr/lib/libcom_err.so.5
> Reading symbols from /lib/libcrypt.so.5...done.
> Loaded symbols for /lib/libcrypt.so.5
> Reading symbols from /usr/lib/libhx509.so.11...done.
> Loaded symbols for /usr/lib/libhx509.so.11
> Reading symbols from /usr/lib/libroken.so.11...done.
> Loaded symbols for /usr/lib/libroken.so.11
> Reading symbols from /usr/lib/libwind.so.11...done.
> Loaded symbols for /usr/lib/libwind.so.11
> Reading symbols from /usr/lib/libheimbase.so.11...done.
> Loaded symbols for /usr/lib/libheimbase.so.11
> Reading symbols from /usr/lib/libprivateheimipcc.so.11...done.
> Loaded symbols for /usr/lib/libprivateheimipcc.so.11
> Reading symbols from /lib/libthr.so.3...done.
> Loaded symbols for /lib/libthr.so.3
> Reading symbols from /libexec/ld-elf.so.1...done.
> Loaded symbols for /libexec/ld-elf.so.1
> #0  i_stream_seek (stream=0x0, v_offset=80) at istream.c:296
> 296     istream.c: No such file or directory.
>         in istream.c
> (gdb) bt full
> #0  i_stream_seek (stream=0x0, v_offset=80) at istream.c:296
>         _stream = (struct istream_private *) 0x5385e16
> #1  0x000000000536937a in i_stream_limit_read (stream=0x767d540) at
> istream-limit.c:34
>         lstream = (struct limit_istream *) 0x767d540
>         left = 123848760
>         ret = 1
>         pos = 119265200
> #2  0x000000000535f340 in i_stream_read (stream=0x767d5b0) at istream.c:174
>         _stream = (struct istream_private *) 0x767d540
>         old_size = 0
>         ret = 124244864
> #3  0x00000000053607ae in i_stream_read_data (stream=0x767d5b0,
> data_r=0x7fffffffe868, size_r=0x7fffffffe878, threshold=0) at istream.c:569
>         ret = 0
>         read_more = false
> #4  0x00000000004038d1 in ?? ()
> No symbol table info available.
> #5  0x0000000000403c1a in ?? ()
> No symbol table info available.
> #6  0x00000000004030ad in ?? ()
> No symbol table info available.
> #7  0x0000000000402eaa in ?? ()
> No symbol table info available.
> #8  0x0000000004838435 in client_input (client=0x76c0c10) at
> client-common.c:920
> No locals.
> #9  0x000000000537028d in io_loop_call_io (io=0x76a4300) at ioloop.c:599
>         ioloop = (struct ioloop *) 0x763a000
>         t_id = 2
> #10 0x0000000005372f74 in io_loop_handler_run_internal (ioloop=0x763a000)
> at ioloop-poll.c:209
>         ctx = (struct ioloop_handler_context *) 0x76340e0
>         pollfd = (struct pollfd *) 0x7673840
>         tv = {tv_sec = 0, tv_usec = 895835}
>         io = (struct io_file *) 0x76a4300
>         msecs = 896
>         ret = 0
>         call = true
> #11 0x00000000053707f8 in io_loop_handler_run (ioloop=0x763a000) at
> ioloop.c:648
> No locals.
> #12 0x0000000005370621 in io_loop_run (ioloop=0x763a000) at ioloop.c:623
> No locals.
> #13 0x00000000052ad15b in master_service_run (service=0x7635000,
> callback=0x4840630 <client_connected>) at master-service.c:666
> No locals.
> #14 0x00000000048402f7 in login_binary_run (binary=0x4061b8, argc=1,
> argv=0x7fffffffeb40) at main.c:506
>         service_flags = 1608
>         set_pool = 0x7646020
>         login_socket = 0x48494c6 "login"
>         c = -1
> #15 0x000000000040288f in ?? ()
> No symbol table info available.
> #16 0x000000000462c000 in ?? ()
> No symbol table info available.
> #17 0x0000000000000000 in ?? ()
> No symbol table info available.
> Current language:  auto; currently minimal
>
>
>
>
> dovecot -n
>
> # 2.2.31 (65cde28): /usr/local/etc/dovecot/dovecot.conf
> # Pigeonhole version 0.4.19 (e5c7051)
> # OS: FreeBSD 11.1-RC3 amd64
> auth_master_user_separator = *
> auth_verbose_passwords = plain
> disable_plaintext_auth = no
> lmtp_save_to_detail_mailbox = yes
> mail_access_groups = imapmail
> mail_debug = yes
> mail_gid = imapmail
> mail_plugins = acl quota
> mail_uid = imapmail
> mailbox_list_index = yes
> 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 index ihave
> duplicate mime foreverypart extracttext editheader
> namespace {
>   hidden = no
>   inbox = no
>   list = no
>   location =
>   prefix =
>   separator = /
>   subscriptions = yes
>   type = private
> }
> namespace public {
>   hidden = no
>   list = children
>   location = maildir:/mail/imap/
> localnet.net/shared:INDEXPVT=%h/public:LAYOUT=fs:DIRNAME=DlkfdewDSD
>   prefix = shared/
>   separator = /
>   subscriptions = no
>   type = public
> }
> namespace inbox {
>   alias_for =
>   hidden = no
>   inbox = yes
>   list = yes
>   location =
>   mailbox Drafts {
>     special_use = \Drafts
>   }
>   mailbox Sent {
>     special_use = \Sent
>   }
>   mailbox "Sent Messages" {
>     special_use = \Sent
>   }
>   mailbox Spam {
>     special_use = \Junk
>   }
>   mailbox Trash {
>     special_use = \Trash
>   }
>   prefix = INBOX/
>   separator = /
>   subscriptions = no
>   type = private
> }
> namespace user {
>   list = children
>   location =
> maildir:%%h/Maildir:LAYOUT=fs:DIRNAME=DlkfdewDSD:INDEXPVT=%h/shared/%%n
>   prefix = user/%%n/
>   separator = /
>   subscriptions = no
>   type = shared
> }
> passdb {
>   args = /usr/local/etc/dovecot/master-users
>   driver = passwd-file
>   master = yes
>   pass = yes
> }
> passdb {
>   args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>   driver = ldap
> }
>
> plugin {
>   acl = vfile:/mail/dovecot/db/global-acls:cache_secs=300
>   acl_shared_dict = file:/mail/dovecot/db/shared-mailboxes
>   quota = maildir:INBOX user/%u
>   quota2 = maildir:Public quota:ns=shared/
>   quota2_rule = *:storage=100G
>   quota_grace = 10%%
>   quota_rule = *:storage=5G
>   quota_rule2 = INBOX/Trash:storage=+100M
>   quota_status_nouser = DUNNO
>   quota_status_overquota = 552 5.2.2 Mailbox is full
>   quota_status_success = DUNNO
>   quota_vsizes = yes
>   recipient_delimiter = +
>   sieve = file:~/sieve;active=~/.dovecot.sieve
>   sieve_extensions = +editheader
> }
> protocols = imap lmtp sieve
> service lmtp {
>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>     group = postfix
>     mode = 0600
>     user = postfix
>   }
> }
> service managesieve-login {
>   chroot =
>   drop_priv_before_exec = yes
>   inet_listener sieve {
>     port = 4190
>   }
>   inet_listener sieve_deprecated {
>     port = 2000
>   }
>   service_count = 0
>   vsz_limit = 64 M
> }
> ssl = no
> ssl_cert = </etc/ssl/servercerts/cert.crt
> ssl_key =  # hidden, use -P to show it
> userdb {
>   args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>   driver = ldap
> }
> protocol lmtp {
>   mail_plugins = acl quota sieve
>   postmaster_address = postmaster at localnet.net
> }
> protocol imap {
>   mail_plugins = acl quota imap_acl imap_quota
> }
Hi!

This is a known issue and has been fixed in latest pigeonhole release.

Aki


More information about the dovecot mailing list