Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib: error trailer has wrong crc #129

Closed
jrse opened this issue Mar 7, 2018 · 3 comments
Closed

zlib: error trailer has wrong crc #129

jrse opened this issue Mar 7, 2018 · 3 comments
Assignees
Labels

Comments

@jrse
Copy link
Contributor

jrse commented Mar 7, 2018

Platform: SUSE-SLES/12, dovecot 2.2.21

The following error message occurred during test on sles 12:

Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_stream at line 319
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-storage.cpp: rbox_open_rados_connection at line 287
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-storage.cpp: read_plugin_configuration at line 270
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-storage.cpp: read_plugin_configuration at line 282
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-storage.cpp: rbox_open_rados_connection at line 337
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_physical_size at line 254
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_physical_size at line 261, ret == 0
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_stream at line 365
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_received_date at line 136
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_received_date at line 144, ret == 0
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_stream at line 319
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_stream at line 365
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-sync.cpp: rbox_storage_sync_init at line 449
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-sync.cpp: rbox_storage_sync_init at line 469
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_alloc at line 91
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_alloc at line 101
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_alloc at line 91
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_alloc at line 101
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_get_index_record at line 60
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_get_index_record at line 85
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_stream at line 319
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-storage.cpp: rbox_open_rados_connection at line 287
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-storage.cpp: read_plugin_configuration at line 270
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-storage.cpp: read_plugin_configuration at line 282
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-storage.cpp: rbox_open_rados_connection at line 302
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_physical_size at line 254
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_physical_size at line 261, ret == 0
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_stream at line 365
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [START] rbox-mail.cpp: rbox_mail_get_stream at line 319
Mar 07 10:00:39 imap(200000000000000000244706): Debug: [END] rbox-mail.cpp: rbox_mail_get_stream at line 365

==> error.log <==
Mar 07 10:00:39 imap(200000000000000000244706): Error: zlib.read((buffer)): gz trailer has wrong CRC value at 16384
Mar 07 10:00:39 imap(200000000000000000244706): Error: read(zlib((buffer))) failed: read((buffer)) failed: zlib.read((buffer)): gz trailer has wrong CRC value at 16384 (FETCH BODY[TEXT] for mailbox INBOX UID 50)

@jrse jrse added the bug label Mar 7, 2018
@jrse
Copy link
Contributor Author

jrse commented Mar 7, 2018

Zlib error produced with dovecot-2.2.21 and imaptest.
imap.t8.log.gz

jrse added a commit that referenced this issue Mar 7, 2018
@jrse jrse self-assigned this Mar 8, 2018
jrse added a commit that referenced this issue Mar 8, 2018
@jrse
Copy link
Contributor Author

jrse commented Mar 15, 2018

This error is due to a bug in dovecot's 2.2.21 zlib plugin. This error has been fixed in release 2.2.26 with the following bugfix (dovecot/core@ff405d5#diff-2a7035ebd29c61c60ae0287bfcafdf23) .

@jrse
Copy link
Contributor Author

jrse commented Mar 21, 2018

dovecot.2,2,21 zlib crc error patch.

dovecot.2.2.21.zlib-plugin.cache.uid.issue_#129.zip

Dovecot release notes:
v2.2.26 2016-10-27 Timo Sirainen [email protected]

  • zlib, IMAP BINARY: Fixed internal caching when accessing multiple
    newly created mails. They all had UID=0 and the next mail could have
    wrongly used the previously cached mail.

@jrse jrse closed this as completed Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant