Bug 219821

Summary: mail/dovecot2: Update to 2.2.30.2 (bugfix to occasional auth process crashing)
Product: Ports & Packages Reporter: VK <vlad-fbsd>
Component: Individual Port(s)Assignee: Larry Rosenman <ler>
Status: Closed FIXED    
Severity: Affects Some People CC: adamw, ler
Priority: --- Keywords: crash, patch, regression
Version: LatestFlags: bugzilla: maintainer-feedback? (adamw)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   
URL: https://github.com/dovecot/core/commit/a5704dd2b35452adc4708346654e225f9b7973aa
Attachments:
Description Flags
Update dovecot to 2.2.30.2 vlad-fbsd: maintainer-approval? (adamw)

Description VK 2017-06-06 13:11:57 UTC
Since the upgrade to 2.2.30.1, I see occasional auth process crashes:

> Jun 06 11:11:27 auth: Panic: file auth-request-handler.c: line 849 (auth_request_handler_flush_failures): assertion failed: (auth_request->state == AUTH_REQUEST_STATE_FINISHED)
> Jun 06 11:11:27 auth: Fatal: master: service(auth): child 76992 killed with signal 6 (core not dumped - set service auth { drop_priv_before_exec=yes })
> Jun 06 11:11:27 imap-login: Info: Disconnected (auth process communication failure): user=<>, method=PLAIN, rip=<CENSORED>, lip=10.0.0.8, TLS, session=<A4jJAEdRlCJbw2cs>

With the kernel logging SIGABRT:

> Jun  6 11:11:27 xoth kernel: pid 76992 (auth), uid 143: exited on signal 6

Also:

> Jun 06 14:07:43 auth: Fatal: master: service(auth): child 84326 killed with signal 11 (core not dumped - set service auth { drop_priv_before_exec=yes })
> Jun 06 14:36:42 auth: Fatal: master: service(auth): child 9104 killed with signal 11 (core not dumped - set service auth { drop_priv_before_exec=yes })

With the kernel logging SIGSEGV on both.

Talking to people in #dovecot on Freenode, it appears to be known issue, and there are similar reports upstream in thread like this:

https://www.dovecot.org/pipermail/dovecot/2017-June/108266.html

So this PR is just a heads-up to the maintainer and a log that it has been noticed happening on FreeBSD too.
Comment 2 VK 2017-06-06 15:08:22 UTC
Created attachment 183265 [details]
Update dovecot to 2.2.30.2

This patch bumps dovecot2 to 2.2.3.20 (and increases portrevision for the antispam plugin and pigeonhole ports). Builds fine with Poudriere on 11.0, amd64. Testing in production now.
Comment 3 Larry Rosenman freebsd_committer freebsd_triage 2017-06-06 16:22:57 UTC
Committed in r442779