Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1643801 - FTBFS: Fix for wrong/obsolete configuration option "jmap"
Summary: FTBFS: Fix for wrong/obsolete configuration option "jmap"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cyrus-imapd
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Zhukov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1644715
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-28 23:22 UTC by Nils Philippsen
Modified: 2019-01-24 04:30 UTC (History)
8 users (show)

Fixed In Version: cyrus-imapd-3.0.8-3.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-24 04:30:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nils Philippsen 2018-10-28 23:22:24 UTC
Description of problem:

After updating my mail server to Fedora 29, it didn't start again with this error message in the logs:

Oct 28 20:38:13 possum systemd[1]: Started Cyrus-imapd IMAP/POP3 email server.
Oct 28 20:38:13 possum master[1072]: invalid value 'jmap' for httpmodules in line 55
Oct 28 20:38:13 possum master[1072]: exiting
Oct 28 20:38:13 possum systemd[1]: cyrus-imapd.service: Main process exited, code=exited, status=75/TEMPFAIL
Oct 28 20:38:13 possum systemd[1]: cyrus-imapd.service: Failed with result 'exit-code'.

This is related to JMAP support (which was experimental) being removed from Cyrus IMAP in version 3.0.6. I updated the patch which added this option and attempted rebuilding in F-29 and Rawhide but this failed due to failing tests:

F-29: https://koji.fedoraproject.org/koji/taskinfo?taskID=30529787
Rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=30529778

Version-Release number of selected component (if applicable):

- wrong option: cyrus-imapd-3.0.8-1
- failed build: cyrus-imapd-3.0.8-2, dist-git: F-29 commit 8c0f5a0, Rawhide commit 89252d0

How reproducible:

Reproducible (failed tests on multiple architectures across two releases)

Steps to Reproduce:
1. `fedpkg build` from current dist-git sources

Actual results:

Failing tests, see above.

Expected results:

Builds without errors.

Additional info:

Comment 1 Pavel Zhukov 2018-10-31 13:08:14 UTC
There are two issues actually.
First is xapian-core crashes of free()
Second is imaptest problem with undefined symbol str_escape

Comment 2 Jason Tibbitts 2018-10-31 19:35:12 UTC
I wonder why koschei didn't send any alerts about the builds failing.  It was fine and then... it wasn't.  Not sure what the point is if the builds are being done but there's no notification for failures.

Comment 3 Pavel Zhukov 2018-11-13 15:15:38 UTC
(In reply to Jason Tibbitts from comment #2)
> I wonder why koschei didn't send any alerts about the builds failing.  It
> was fine and then... it wasn't.  Not sure what the point is if the builds
> are being done but there's no notification for failures.

I have no idea and had same question.
So there were few issues:
- Xapian problem (workaround is build without xapian support)
- Imaptest was broken (BZ#1644715) should be fixed in rawhide now.
- Sieve (?) issue: free(): invalid next size (fast) [1] which looks like https://github.com/cyrusimap/cyrus-imapd/issues/1731 but it's reproducible on rawhide only (F29 build is fine [2]) 



[1] https://copr-be.cloud.fedoraproject.org/results/landgraf/cyrus_imapd_playground/fedora-rawhide-x86_64/00823512-cyrus-imapd/builder-live.log

[2] https://copr-be.cloud.fedoraproject.org/results/landgraf/cyrus_imapd_playground/fedora-29-x86_64/00823512-cyrus-imapd/builder-live.log

Comment 4 Tim Coote 2019-01-13 01:03:26 UTC
Is there a workaround for this bug. It's a bit of a shock to update to f29 and find that imap's broken.

Comment 5 Tim Coote 2019-01-13 13:31:20 UTC
(In reply to Tim Coote from comment #4)
> Is there a workaround for this bug. It's a bit of a shock to update to f29
> and find that imap's broken.

My mistake. The issue isn't this bug, it's the upgrade process, and how it works with configurations. Older versions of cyrus-imapd have configuration in /etc/imapd.conf that refers to jmap (the line 55 reference in the initial report. Upgrading, does not remove this reference. Removing the reference fixes the issue.

Comment 6 Fedora Update System 2019-01-15 18:33:30 UTC
cyrus-imapd-3.0.8-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3e519f8d1d

Comment 7 Jason Tibbitts 2019-01-15 19:45:46 UTC
Also, I tracked down the massive build breakage to a change made in redhat-rpm-config version 118 which enabled passing --as-needed to the linker by default.  So the rawhide build should be back to normal, though I still don't know _why_ --as-needed is so bad.  I will report the issue upstream.

Comment 8 Fedora Update System 2019-01-16 03:31:30 UTC
cyrus-imapd-3.0.8-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3e519f8d1d

Comment 9 Fedora Update System 2019-01-24 04:30:55 UTC
cyrus-imapd-3.0.8-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.