Hi,

I've enabled autoexpunge for Trash and Junk. Now imap process core dumps occasionally.

  Tomppa

program terminated by signal SEGV (no mapping at the fault address)
0xff0dc2e0: o_stream_get_buffer_used_size       :       ld       [%o0 + 20], %o0
Current function is notify_ok (optimized)
   13           if (o_stream_get_buffer_used_size(client->output) != 0)
(dbx) where
  [1] o_stream_get_buffer_used_size(0x0, 0x83ee8, 0x83ee8, 0x5f520, 0xfffe681c, 
0xff13a978), at 0xff0dc2e0
=>[2] notify_ok(mailbox = 0x90188, text = 0x83ee8 "Stale mailbox lock file detected, will 
override in 0 seconds", context = 0xa3588) (optimized), at 0x5f524 (line ~13) in 
"mail-storage-callbacks.c"
  [3] dotlock_callback(0x0, 0x1, 0x90188, 0x567a61fe, 0xff1352a0, 0x2), at 
0xff1ff478
  [4] dotlock_create(0xcc3d8, 0x2dc6c0, 0x1, 0x0, 0x0, 0x567a61fe), at 
0xff0b0e68
  [5] file_dotlock_create_real(0xcc3d8, 0x1, 0x541c, 0x4, 0xff1352a0, 
0xff13a6bc), at 0xff0b1104
  [6] file_dotlock_create(0xbf674, 0x8f990, 0x1, 0xbf690, 0x5, 0xcc3d8), at 
0xff0b126c
  [7] maildir_uidlist_lock_timeout(0xbf648, 0x1, 0x1, 0x1, 0x3f, 0x26c00), at 
0xff1ff0ec
  [8] maildir_uidlist_sync_lock(0xbf648, 0x8, 0xffbff59f, 0x1, 0x1, 0xf19c8), 
at 0xff2035bc
  [9] maildir_uidlist_sync_init(0xbf648, 0x8, 0x83d20, 0x1, 0x44, 0xff2f502c), 
at 0xff203680
  [10] maildir_sync_context(0x83d08, 0x1, 0x0, 0xffbff707, 0x83d20, 0x83d08), 
at 0xff1fe290
  [11] maildir_sync_run(0x90188, 0x44, 0x0, 0x0, 0x0, 0x90420), at 0xff1fe74c
  [12] maildir_storage_sync_init(0x90188, 0x44, 0x541c, 0x0, 0x80, 0xff2f502c), 
at 0xff1feaa0
  [13] mailbox_sync(0x90188, 0x44, 0x0, 0x4, 0x44, 0x90388), at 0xff1b91cc
  [14] index_mailbox_get_metadata(0x90188, 0x40, 0xffbff910, 0x0, 0xff2f502c, 
0x0), at 0xff273858
  [15] maildir_mailbox_get_metadata(0x90188, 0x40, 0xffbff910, 0xfffffff8, 0x0, 
0xff2f502c), at 0xff1f9e4c
  [16] mailbox_get_metadata(0x90188, 0x40, 0xffbff910, 0x0, 0xff2f502c, 0x2), 
at 0xff1b8ecc
  [17] mailbox_autoexpunge(0x90188, 0x5651837e, 0xa1e28, 0xa2630, 0x0, 0x0), at 
0xff1a6fcc
  [18] mail_user_autoexpunge(0x9eaf4, 0x8, 0x5651837e, 0xff2f502c, 0x9c290, 
0xffbff9ac), at 0xff1a72e8
  [19] mail_user_unref(0x9de20, 0xfffd135c, 0xff2f502c, 0x1, 0xff2c6388, 
0xa35d4), at 0xff1c328c
  [20] client_default_destroy(client = 0xa3588, reason = <value unavailable>) 
(optimized), at 0x41c8c (line ~390) in "imap-client.c"
  [21] io_loop_call_io(0x9ca18, 0xfffdbba8, 0x0, 0xff1352a0, 0x8c6b8, 0x24400), 
at 0xff0c8fd4
  [22] io_loop_handler_run_internal(0x8c6b8, 0x1, 0x0, 0x8d1b8, 0x1, 0x9ca18), 
at 0xff0cadd8
  [23] io_loop_run(0x8c6b8, 0x1, 0xc0, 0xff13b26c, 0xff1352a0, 0x8d1b8), at 
0xff0c90fc
  [24] master_service_run(0x8c608, 0x60fe0, 0x1, 0x80, 0x27c00, 0x2), at 
0xff0236c8
  [25] main(argc = <value unavailable>, argv = 0x1) (optimized), at 0x619c4 (line ~442) 
in "main.c"
(dbx)

# 2.2.21 (5345f22): /usr/local/etc/dovecot/dovecot.conf
# OS: SunOS 5.10 sun4u
base_dir = /var/run/dovecot/
dsync_remote_cmd = ssh -l%{login} %{host} /usr/local/bin/doveadm dsync-server 
-u%u -U
first_valid_uid = 100
last_valid_uid = 199
mail_location = maildir:~/Maildir
mail_plugins = fts fts_solr
namespace inbox {
  inbox = yes
  location =
  mailbox "Deleted Messages" {
    special_use = \Trash
  }
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    auto = create
    autoexpunge = 31 days
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Spam {
    special_use = \Junk
  }
  mailbox Trash {
    autoexpunge = 31 days
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
plugin {
  fts = solr
  fts_autoindex = yes
  fts_solr = url=http://127.0.0.1:8983/solr/ break-imap-search
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    address = localhost
    port = 143
  }
  inet_listener imaps {
    address = *
    port = 993
  }
}
ssl_cert = </etc/mail/certs/server-all.crt
ssl_cipher_list = AES128+EECDH:AES128+EDH
ssl_dh_parameters_length = 2048
ssl_key = </etc/mail/certs/server.key
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3
userdb {
  driver = passwd
}

Reply via email to