After upgrading Cyrus IMAP to 3.4.2-r1, the imapd process kept crashing with a segfault while trying to receive emails using IMAP clients. Reproducible: Always Steps to Reproduce: 1. Install/upgrade Cyrus IMAP 2. Configure "squat" as search engine 3. Try to login and retrieve emails Actual Results: IMAPD processes segfaults, killing the connection Expected Results: IMAPD process keeps running and returns email This issue is known with upstream and related to compile FLAGS. I fixed this locally using: # cat /etc/portage/env/cyrus_fix CFLAGS="${CFLAGS} -g -fno-toplevel-reorder" CXXFLAGS="${CXXFLAGS} -g -fno-toplevel-reorder" # cat /etc/portage/package.env net-mail/cyrus-imapd cyrus_fix and recompiling "net-mail/cyrus-imapd" I am willing to provide and test a modified ebuild, but am uncertain how to add this to the ebuild. Please note: This makes accessing emails via IMAP impossible. Email delivery (via LMTP) was not affected. No email appears to have been lost
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84e9b414a31b33d01fd785378bac68833031792e commit 84e9b414a31b33d01fd785378bac68833031792e Author: Sam James <sam@gentoo.org> AuthorDate: 2022-03-06 10:01:54 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-06 10:08:17 +0000 net-mail/cyrus-imapd: fix automagic and missing dependencies; fix crash Automagic dependency changes: - USE=http: app-arch/brotli, app-arch/zstd, and sci-libs/shapelib - USE=perl: virtual/perl-Term-ReadLine - sys-apps/util-linux for libuuid - Proactively disable libwslay, libchardet, and libcld2 (unpackaged) - Disable libsrs2 support (mail-filter/libsrs2) as it was automagic before Build-time dependency changes: - sys-devel/flex - virtual/pkgconfig - virtual/yacc Closes: https://bugs.gentoo.org/818925 Closes: https://bugs.gentoo.org/834573 Thanks-to: Thomas Arnett <tom_gentoo@misfeature.net> Signed-off-by: Sam James <sam@gentoo.org> ...pd-3.4.3.ebuild => cyrus-imapd-3.4.3-r1.ebuild} | 38 +++++++++++++++------- profiles/arch/hppa/package.use.mask | 4 +++ profiles/arch/ia64/package.use.mask | 4 +++ profiles/arch/sparc/package.use.mask | 4 +++ 4 files changed, 39 insertions(+), 11 deletions(-)