zlib plugin producing errors on 2.3.0

Aki Tuomi aki.tuomi at dovecot.fi
Tue Jan 9 12:22:12 EET 2018



On 06.01.2018 20:54, Timo Sirainen wrote:
> On 5 Jan 2018, at 18.33, Carsten Uppenbrink <info at uppenbrink.net> wrote:
>> On 24.12.2017 15:58, Adam Weinberger wrote:
>>> Hello,
>>> I use the zlib and imap_zlib plugins on FreeBSD. As of 2.3.0, my logs
>>> are producing these errors every so often, but AFAICT the messages
>>> themselves aren't getting corrupted.
>>> Panic: file ostream-zlib.c: line 36 (o_stream_zlib_close): assertion
>>> failed: (zstream->ostream.finished ||
>>> zstream->ostream.ostream.stream_errno != 0)
>>> Fatal: master: service(imap): child 80128 killed with signal 6 (core
>>> not dumped - set service imap { drop_priv_before_exec=yes })
>>> Panic: file ostream-zlib.c: line 36 (o_stream_zlib_close): assertion
>>> failed: (zstream->ostream.finished ||
>>> zstream->ostream.ostream.stream_errno != 0)
>>> Fatal: master: service(imap): child 80266 killed with signal 6 (core
>>> not dumped - set service imap { drop_priv_before_exec=yes })
>>> They always come in pairs like that. Following is my doveconf. Let
>>> me know what else I can provide here. Thanks!
>> I had this errors in my logs, too.
>>
>> It happens only to users who using K-9 Mail on Android. They all had a setting enabled called "Use compression on network: Mobile, Wi-Fi, Other" in "Incoming server settings". I didn't looked for other imap clients, because without this setting enabled the errors vanished.
>>
>> But it is likely that there are other imap clients who try to compress the transfer.
>> No stored mails are corrupted, it is only the connection somehow.
> Oh, it's the imap_zlib plugin / IMAP COMPRESS extension that is crashing. Looks like it happens every time when COMPRESS-enabled client disconnects, so it's probably not visible to clients.
>

Can you try if this
https://github.com/dovecot/core/commit/23da0fa1b30cc11bcc1d467674a0950c527e9ff1.patch
fixes your issue?

Aki


More information about the dovecot mailing list