Hey all, I upgraded some servers today from Debian Lenny to Debian Squeeze, and
after the upgrade I started getting dovecot crashes. I was on 2.0.13 but got
these there as well, and hoped upgrading to 2.0.16 would help. It didn't.
Anyone have an idea?
Cor
Dec 18 23:32:21 userimap1 kernel: [263492.245530] __ratelimit: 122 callbacks
suppressed
Dec 18 23:32:21 userimap1 kernel: [263492.245536] imap[19665]: segfault at
7f108efb7f60 ip 00007f108ecd37e0 sp 00007fff73c3d658 error 5 in
libc-2.11.2.so[7f108ec5d000+158000]
Dec 18 23:32:21 userimap1 kernel: [263492.245663] BUG: Bad page map in process
imap pte:00000001 pmd:09767067
Dec 18 23:32:21 userimap1 kernel: [263492.252563] page:ffffea0000000000
flags:(null) count:-84 mapcount:-84 mapping:(null) index:0
Dec 18 23:32:21 userimap1 kernel: [263492.261186] addr:00007f108ef46000
vm_flags:08000070 anon_vma:(null) mapping:ffff88012b6e5238 index:2e9
Dec 18 23:32:21 userimap1 kernel: [263492.270804] vma->vm_ops->fault:
filemap_fault+0x0/0x460
Dec 18 23:32:21 userimap1 kernel: [263492.276172]
vma->vm_file->f_op->mmap: generic_file_mmap+0x0/0x60
Dec 18 23:32:21 userimap1 kernel: [263492.282424] Pid: 19665, comm: imap
Tainted: G B 2.6.32.36-xsserver #1
Dec 18 23:32:21 userimap1 kernel: [263492.282429] Call Trace:
Dec 18 23:32:21 userimap1 kernel: [263492.282441] [<ffffffff81103ee5>]
print_bad_pte+0x1d5/0x280
Dec 18 23:32:21 userimap1 kernel: [263492.282448] [<ffffffff8110568a>]
unmap_vmas+0xa1a/0xa20
Dec 18 23:32:21 userimap1 kernel: [263492.282458] [<ffffffff8137e501>] ?
sch_direct_xmit+0x81/0x1d0
Dec 18 23:32:21 userimap1 kernel: [263492.282465] [<ffffffff8110b60d>]
exit_mmap+0xbd/0x190
Dec 18 23:32:21 userimap1 kernel: [263492.282473] [<ffffffff81059cbd>]
mmput+0x4d/0x120
Dec 18 23:32:21 userimap1 kernel: [263492.282481] [<ffffffff8105f282>]
exit_mm+0x112/0x150
Dec 18 23:32:21 userimap1 kernel: [263492.282488] [<ffffffff8106104d>]
do_exit+0x13d/0x800
Dec 18 23:32:21 userimap1 kernel: [263492.282496] [<ffffffff81072f31>] ?
__dequeue_signal+0xe1/0x200
Dec 18 23:32:21 userimap1 kernel: [263492.282503] [<ffffffff81061765>]
do_group_exit+0x55/0xd0
Dec 18 23:32:21 userimap1 kernel: [263492.282510] [<ffffffff81075251>]
get_signal_to_deliver+0x1e1/0x3e0
Dec 18 23:32:21 userimap1 kernel: [263492.282517] [<ffffffff8100b315>]
do_signal+0x75/0x7d0
Dec 18 23:32:21 userimap1 kernel: [263492.282523] [<ffffffff81103203>] ?
print_vma_addr+0xb3/0x120
Dec 18 23:32:21 userimap1 kernel: [263492.282533] [<ffffffff8143856e>] ?
printk+0x41/0x43
Dec 18 23:32:21 userimap1 kernel: [263492.282541] [<ffffffff81036436>] ?
__bad_area_nosemaphore+0xf6/0x1e0
Dec 18 23:32:21 userimap1 kernel: [263492.282547] [<ffffffff810365ee>] ?
bad_area_access_error+0x4e/0x60
Dec 18 23:32:21 userimap1 kernel: [263492.282553] [<ffffffff8100bac7>]
do_notify_resume+0x57/0x60
Dec 18 23:32:21 userimap1 kernel: [263492.282559] [<ffffffff8100cadc>]
retint_signal+0x48/0x8c
# 2.0.16: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.32.36-xsserver x86_64 Debian 6.0.3
auth_cache_size = 1 M
auth_verbose = yes
base_dir = /var/run/dovecot/
default_vsz_limit = 2 G
disable_plaintext_auth = no
first_valid_uid = 20
lock_method = dotlock
login_greeting = User-IMAP ready.
login_trusted_networks = 194.109.26.128/27
mail_fsync = always
mail_nfs_index = yes
mail_nfs_storage = yes
mailbox_idle_check_interval = 1 mins
maildir_stat_dirs = yes
mmap_disable = yes
namespace {
inbox = yes
location =
maildir:%Nu:INDEX=/var/spool/mail/dovecot-control/indexes/%1u/%2u/%u:INBOX=%Nu:CONTROL=/var/spool/mail/dovecot-control/%1u/%2u/%u/INBOX
prefix =
separator = /
type = private
}
passdb {
args = /usr/local/etc/dovecot/dovecot.masterusers
driver = passwd-file
master = yes
}
passdb {
args = cache_key=%u%r dovecot
driver = pam
}
plugin {
quota = fs:User quota
}
protocols = imap
service auth {
client_limit = 5000
}
service imap-login {
process_min_avail = 8
service_count = 0
vsz_limit = 2 G
}
service imap {
process_limit = 4096
vsz_limit = 2 G
}
shutdown_clients = no
ssl_cert = </etc/ssl/certs/xx
ssl_key = </etc/ssl/private/xx
userdb {
driver = passwd
}
verbose_proctitle = yes
protocol imap {
imap_capability = IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT
SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
imap_client_workarounds = delay-newmail
mail_max_userip_connections = 24
mail_plugins = " quota imap_quota"
}
Have you tried using a modern kernel? that one is about 2 years old. On Mon, 2011-12-19 at 00:32 +0100, Cor Bosman wrote:> Hey all, I upgraded some servers today from Debian Lenny to Debian Squeeze, and after the upgrade I started getting dovecot crashes. I was on 2.0.13 but got these there as well, and hoped upgrading to 2.0.16 would help. It didn't. Anyone have an idea? > > Cor> # 2.0.16: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 2.6.32.36-xsserver x86_64 Debian 6.0.3-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20111219/bff3a5ba/attachment-0004.bin>
Noel Butler <noel.butler at ausics.net> wrote:> On Mon, 2011-12-19 at 00:32 +0100, Cor Bosman wrote:>> # 2.0.16: /usr/local/etc/dovecot/dovecot.conf >> # OS: Linux 2.6.32.36-xsserver x86_64 Debian 6.0.3> Have you tried using a modern kernel? that one is about 2 years old.Well, this _is_ the kernel from Debian Stable and based on the Long-Term-Release from the kernel maintainers. Besides, from the suffix i assume this may be a virtual server, so it may be not possible for Cor to even change the kernel himself. Gr??e, Sven. -- Sigmentation fault. Core dumped.
On 19.12.2011, at 1.32, Cor Bosman wrote:> Hey all, I upgraded some servers today from Debian Lenny to Debian Squeeze, and after the upgrade I started getting dovecot crashes. I was on 2.0.13 but got these there as well, and hoped upgrading to 2.0.16 would help. It didn't. Anyone have an idea? > > Dec 18 23:32:21 userimap1 kernel: [263492.245536] imap[19665]: segfault at 7f108efb7f60 ip 00007f108ecd37e0 sp 00007fff73c3d658 error 5 in libc-2.11.2.so[7f108ec5d000+158000]gdb backtrace of the crash would be helpful: http://dovecot.org/bugreport.html> Dec 18 23:32:21 userimap1 kernel: [263492.245663] BUG: Bad page map in process imap pte:00000001 pmd:09767067Looks more like a kernel bug though.
On Mon, 19 Dec 2011, Cor Bosman wrote:> # OS: Linux 2.6.32.36-xsserver x86_64 Debian 6.0.3Are you sure you didn't roll your own kernel? Debian kernels I know don't use the ".36" suffix, but ship as 2.6.32-something and use their own internal version numbering. For example, I found this on packages.debian.org: linux-image-2.6.32-5-amd64 (2.6.32-38) According to changelog, this actually carries patches from 2.6.32.46, yet only shows in uname as 2.6.32-5-amd64. Also a friendly reminder for the question asked by Ron Leach: which kernel version did you install that appears to be Dovecot-friendlier? Would be very useful to have that in the archives as well. By the way, happy holidays to everyone ;-) -- Maarten