segfaults with cyrus-imapd 3.0.9 on latest arch linux
Patrick Goetz
pgoetz at mail.utexas.edu
Wed Mar 20 12:11:01 EDT 2019
Hi Andreas -
Jakob has already updated the AUR package, which appears to have
resolved this issue. The related upstream bug is #2629.
Regarding the dependencies in the cyrus-imapd PKGBUILD. I recommend
starting with Jakob's PKGBUILD and just stripping out the stuff you
don't need. I've spent so much time looking at it at this point, if you
tell me what you don't want, I can probably post a PKGBUILD that works
for your requirements.
In any case, please try cyrus-imapd 3.0.9-2 and let me know if this
resolves the issue for you, too.
Here is an explanation (provided by the AUR package maintainer) of the
purpose of the various dependencies he's included (also the ones listed
as requirements which he did not include). We had pre-agreed that there
is no harm in compiling in all the authentication hooks and
CalDAV/CalCard dependencies. Without the authentication hooks, the
package isn't really general purpose.
- gperf seems to be useful for development only (maintainer mode)
- libbsd is only required for krb5afspts which is disabled (because IIRC
it looks for static libraries which Arch doesn’t package)
- ICU: This seems to be genuinely missing, though as you noticed it is
already required indirectly. It is probably still a good idea to make
that dependency explicit. But since it’s a relatively minor problem I’ll
wait to see if anything else comes up in our conversation so I can
“bundle” the changes.
- clamav is in fact already in optdepends, however in order to build
against it it needs to be in makedepends as well
- xapian-core provides efficient indexed search, which I’d argue is
quite a useful feature to have in a mail server. It is linked into
libcyrus_imap.so though, which is in turn linked into imapd (unlike
clamav), therefore it is a hard dependency.
- libcap allows Cyrus’s services to restrict their own capabilities(7)
for enhanced security
- libnghttp2 and brotli add support for HTTP/2 and Brotli compression of
HTTP responses, respectively; which is relevant to CalDAV, CardDAV and
other HTTP services (including JMAP in future versions)
- shapelib allows Cyrus’s Time Zone Distribution Service[2] to associate
time zones with geographical locations
- python-sphinx, perl-pod-pom-view-restructured: required for generation
of some manpages (which are included in the regular package, not the
-docs one. I’d argue that manpages are actually useful to have around).
These are only needed at buildtime and need not be present on the actual
server system.
On 3/19/19 5:37 PM, Andreas Piesk wrote:
> Am 19.03.19 um 22:00 schrieb Patrick Goetz:
>>
>> Have you tried the 3.0.9 AUR package?
>>
>> https://aur.archlinux.org/packages/cyrus-imapd
>>
>> Once you get the dependencies down, this one compiles and runs.
>>
>
> I noticed the package, it's good to see a recent version in AUR but it
> has too many dependecies for my taste, I need a stripped down version.
>
> Unfortunately the AUR package doesn't work for me either, i build it in
> a VM with a fresh installed arch and it has the same problem:
>
> Starting program: /usr/bin/cyrdump user/test
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/usr/lib/libthread_db.so.1".
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff7c76205 in re_compile_internal () from /usr/lib/libc.so.6
> (gdb) bt
> #0 0x00007ffff7c76205 in re_compile_internal () from /usr/lib/libc.so.6
> #1 0x00007ffff7c77511 in regcomp () from /usr/lib/libc.so.6
> #2 0x00007ffff7e3d980 in glob_init () from /usr/lib/libcyrus.so.0
> #3 0x00007ffff7f38276 in ?? () from /usr/lib/libcyrus_imap.so.0
> #4 0x00007ffff7f3e5b7 in mboxlist_findallmulti () from
> /usr/lib/libcyrus_imap.so.0
> #5 0x00005555555561aa in ?? ()
> #6 0x00007ffff7bbb223 in __libc_start_main () from /usr/lib/libc.so.6
> #7 0x00005555555561ee in ?? ()
>
>
> Best Regards,
> -ap
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
More information about the Info-cyrus
mailing list