Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834573 - net-mail/cyrus-imapd-3.4.2-r1: Imapd crashes on SEARCH RECENT
Summary: net-mail/cyrus-imapd-3.4.2-r1: Imapd crashes on SEARCH RECENT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/cyrusimap/cyrus-im...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-04 12:07 UTC by J. Roeleveld
Modified: 2022-03-06 10:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J. Roeleveld 2022-03-04 12:07:31 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2022-03-06 10:08:43 UTC
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(-)