Package: dovecot-imapd
Version: 1:2.2.9-1
Severity: normal
File: dovecot-imap


Coin,

I can list messages in my virtual mailboxes, but when i try to read one, the following happen: Jan 11 11:11:30 Orfeo dovecot: imap(duck): Fatal: master: service(imap): child 12838 killed with signal 11 (core dumps disabled) Jan 11 11:11:30 Orfeo kernel: [33559345.314393] imap[12838]: segfault at 0 ip 00007f8a61efb0a1 sp 00007fffcdd815a0 error 4 in libdovecot.so.0.0.0[7f8a61e8c000+ca000]

I then enable core dumps and got the backtrace:
Core was generated by `dovecot/imap [duck ::1 UID F'.
Program terminated with signal 11, Segmentation fault.
#0  i_stream_seek (stream=0x0, v_offset=2145) at istream.c:272
272     istream.c: No such file or directory.
(gdb) bt
#0  i_stream_seek (stream=0x0, v_offset=2145) at istream.c:272
#1 0x00007ff2edab0b19 in index_mail_get_binary_stream (_mail=0x7ff2eebfd260, part=0x7ff2eebc1ec0, include_hdr=<optimized out>, size_r=0x7fff2e87f350, lines_r=<optimized out>, binary_r=0x7fff2e87f328, stream_r=0x7fff2e87f3e0) at index-mail-binary.c:573 #2 0x00007ff2eda8966d in mail_get_binary_stream (mail=mail@entry=0x7ff2eebfd260, part=part@entry=0x7ff2eebc1ec0, include_hdr=include_hdr@entry=false, size_r=size_r@entry=0x7fff2e87f350, binary_r=binary_r@entry=0x7fff2e87f328, stream_r=stream_r@entry=0x7fff2e87f3e0) at mail.c:243 #3 0x00007ff2edae56d8 in imap_msgpart_open (mail=mail@entry=0x7ff2eebfd260, msgpart=0x7ff2eeb1d9d0, result_r=result_r@entry=0x7fff2e87f3e0) at imap-msgpart.c:648 #4 0x00007ff2edf6c3a1 in fetch_body_msgpart (ctx=0x7ff2eeabef70, mail=0x7ff2eebfd260, body=0x7ff2eeabf5a0) at imap-fetch-body.c:166 #5 0x00007ff2edf6ab6d in imap_fetch_more_int (ctx=ctx@entry=0x7ff2eeabef70, cancel=false) at imap-fetch.c:504 #6 0x00007ff2edf6bbc2 in imap_fetch_more (ctx=0x7ff2eeabef70, cmd=cmd@entry=0x7ff2eeabee60) at imap-fetch.c:556
#7  0x00007ff2edf5ff7d in cmd_fetch (cmd=0x7ff2eeabee60) at cmd-fetch.c:279
#8 0x00007ff2edf696cc in command_exec (cmd=0x7ff2eeabee60) at imap-commands.c:158 #9 0x00007ff2edf686bf in client_command_input (cmd=0x7ff2eeabee60) at imap-client.c:780 #10 0x00007ff2edf68775 in client_command_input (cmd=0x7ff2eeabee60) at imap-client.c:841 #11 0x00007ff2edf68a95 in client_handle_next_command (remove_io_r=<synthetic pointer>, client=0x7ff2eeabe310) at imap-client.c:879 #12 client_handle_input (client=client@entry=0x7ff2eeabe310) at imap-client.c:891 #13 0x00007ff2edf68e25 in client_input (client=0x7ff2eeabe310) at imap-client.c:933
#14 0x00007ff2ed7b9a87 in io_loop_call_io (io=0x7ff2eeabc470) at ioloop.c:388
#15 0x00007ff2ed7ba817 in io_loop_handler_run (ioloop=ioloop@entry=0x7ff2eea98730) at ioloop-epoll.c:220
#16 0x00007ff2ed7b9628 in io_loop_run (ioloop=0x7ff2eea98730) at ioloop.c:412
#17 0x00007ff2ed76a5c3 in master_service_run (service=0x7ff2eea985c0, callback=callback@entry=0x7ff2edf71d20 <client_connected>) at master-service.c:566
#18 0x00007ff2edf5d2f4 in main (argc=2, argv=0x7ff2eea98390) at main.c:400

I found in which real folder the message is located and i am able to read it without any error.

If ever index_mail_get_binary_stream uses indexer-worker's results, then it may have been affected by a lack of memory i got recently (indexer-worker(duck): Fatal: pool_system_malloc(1200): Out of memory). I bumped the vsz_limit just recently

Regards


-- Package-specific info:

dovecot configuration
---------------------
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian jessie/sid
auth_cache_negative_ttl = 15 mins
auth_cache_size = 4 k
auth_mechanisms = plain login
auth_verbose = yes
auth_worker_max_count = 50
default_client_limit = 100
dict {
  expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 5000
first_valid_uid = 5000
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_access_groups = vmail
mail_debug = yes
mail_gid = vmail
mail_location = maildir:~/Maildir
mail_plugins = " quota zlib fts fts_squat acl virtual expire"
mail_privileged_group = mail
mail_shared_explicit_inbox = yes
mail_uid = vmail
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
  list = children
  location = maildir:%%h/Maildir:INDEX=~/shared/%%u
  prefix = "#Shared.%%u."
  separator = .
  subscriptions = no
  type = shared
}
namespace {
  hidden = no
  list = children
  location = maildir:/vmail/public/milkypond:INDEX=~/public/milkypond
  prefix = "#MilkyPond."
  separator = .
  subscriptions = no
  type = public
}
namespace {
  hidden = no
  list = children
  location = virtual:~/virtual/:LAYOUT=maildir++
  prefix = "#Virtual."
  separator = .
  subscriptions = no
  type = private
}
namespace inbox {
  hidden = no
  inbox = yes
  list = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    auto = create
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox Trash {
    auto = create
    special_use = \Trash
  }
  prefix =
  separator = .
  subscriptions = yes
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile::cache_secs=300
  acl_shared_dict = file:/vmail/db/shared-mailboxes.db
  antispam_backend = spool2dir
  antispam_signature = X-DSPAM-Signature
  antispam_signature_missing = move
  antispam_spam = Junk
antispam_spool2dir_notspam = /var/spool/dovecot-antispam/%%020lu-%u-%%05lu.ham
  antispam_spool2dir_spam = /var/spool/dovecot-antispam/%%020lu-%u-%%05lu.spam
  antispam_trash_pattern_ignorecase = trash;Deleted *
  expire = Junk
  expire_dict = proxy::expire
  fts = squat
  fts_autoindex = yes
  fts_index_timeout = 120
  fts_squat = partial=4 full=10
  quota = maildir:User quota
  quota_grace = 1%%
  quota_rule = *:storage=512M
  quota_rule2 = Trash:storage=+100M
  recipient_delimiter = +
  sieve = ~/sieve/active.sieve
  sieve_default = /etc/dovecot/global-sieve/default.sieve
  sieve_dir = ~/sieve/scripts
  sieve_global_dir = /etc/dovecot/global-sieve/scripts
  sieve_max_actions = 32
  sieve_max_redirects = 4
  sieve_max_script_size = 1M
  sieve_quota_max_scripts = 64
  sieve_quota_max_storage = 30M
}
postmaster_address = postmas...@duckcorp.org
protocols = " imap sieve pop3"
quota_full_tempfail = yes
service anvil {
  client_limit = 500
}
service auth-worker {
  user = $default_internal_user
}
service auth {
  client_limit = 400
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = mail
    mode = 0660
    user = vmail
  }
  user = $default_internal_user
}
service dict {
  unix_listener dict {
    mode = 0600
    user = vmail
  }
}
service imap-login {
  process_min_avail = 12
  service_count = 1
  vsz_limit = 64 M
}
service imap-postlogin {
  executable = script-login /usr/local/sbin/srv_imap_post_login
}
service imap {
  executable = imap imap-postlogin
  process_limit = 128
  vsz_limit = 512 M
}
service indexer-worker {
  vsz_limit = 512 M
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  service_count = 1
  vsz_limit = 64 M
}
service managesieve {
  process_limit = 32
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service pop3 {
  process_limit = 32
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
ssl_parameters_regenerate = 1 days
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
valid_chroot_dirs = /vmail
verbose_proctitle = yes
protocol lda {
  mail_plugins = " quota zlib fts fts_squat acl virtual expire sieve"
}
protocol imap {
  mail_max_userip_connections = 10
mail_plugins = " quota zlib fts fts_squat acl virtual expire imap_quota imap_zlib imap_acl antispam autocreate"
}
protocol sieve {
  mail_max_userip_connections = 10
}

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dovecot-imapd depends on:
ii  dovecot-core  1:2.2.9-1
ii  libbz2-1.0    1.0.6-5
ii  libc6         2.17-97
ii  ucf           3.0027+nmu1
ii  zlib1g        1:1.2.8.dfsg-1

dovecot-imapd recommends no packages.

dovecot-imapd suggests no packages.

Versions of packages dovecot-imapd is related to:
ii  dovecot-core [dovecot-common]  1:2.2.9-1
ii  dovecot-dbg                    1:2.2.9-1
pn  dovecot-dev                    <none>
pn  dovecot-gssapi                 <none>
ii  dovecot-imapd                  1:2.2.9-1
ii  dovecot-ldap                   1:2.2.9-1
pn  dovecot-lmtpd                  <none>
ii  dovecot-managesieved           1:2.2.9-1
pn  dovecot-mysql                  <none>
pn  dovecot-pgsql                  <none>
ii  dovecot-pop3d                  1:2.2.9-1
ii  dovecot-sieve                  1:2.2.9-1
ii  dovecot-sqlite                 1:2.2.9-1

-- no debconf information

--
Marc Dequènes (Duck)

Attachment: pgpn0VxZqAYsH.pgp
Description: PGP Digital Signature

Reply via email to