[Dovecot] assert() using plugins zlib and antispam together
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I'm running Dovecot v1.0.10 and downloaded the "HEAD snapshot" today.
If both plugins are enabled, I get:
: file zlib-plugin.c: line 64 (zlib_maildir_get_stream): assertion failed: (fname != NULL)
: Raw backtrace: imap [0x80ad741] -> imap [0x80ad65c] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib20_zlib_plugin.so [0xb7e517ac] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib90_antispam_plugin.so(backend_handle_mail+0x98) [0xb7e4e783] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib90_antispam_plugin.so [0xb7e4d8bf] -> imap(mail_storage_copy+0xdd) [0x809ea1d] -> imap(maildir_copy+0x52) [0x806b802] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib10_quota_plugin.so [0xb7e5a8b6] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7f97050] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib90_antispam_plugin.so [0xb7e4d5f5] -> imap(cmd_copy+0x1aa) [0x8056c7a] -> imap [0x805ac38] -> imap [0x805acc7] -> imap(_client_input+0x6c) [0x805b3bc] -> imap(io_loop_handler_run+0x162) [0x80b3562] -> imap(io_loop_run+0x28) [0x80b29a8] -> imap(main+0x5a0) [0x8063590] -> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc
: 8) [0xb7e73ea8] ->
Error: child 18612 (imap) killed with signal 6
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHzoT8VJMDrex4hCIRAjtnAJ9OqdFWUVC2fr1ahVkpMSie7vQeRQCeKVjA VG9n+AzEM/hIHd66Bg2Xat4= =GEEc -----END PGP SIGNATURE-----
If both plugins are enabled, I get:
: file zlib-plugin.c: line 64 (zlib_maildir_get_stream): assertion failed: (fname != NULL)
: Raw backtrace: imap [0x80ad741] -> imap [0x80ad65c] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib20_zlib_plugin.so [0xb7e517ac] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib90_antispam_plugin.so(backend_handle_mail+0x98) [0xb7e4e783] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib90_antispam_plugin.so [0xb7e4d8bf] -> imap(mail_storage_copy+0xdd) [0x809ea1d] -> imap(maildir_copy+0x52) [0x806b802] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib10_quota_plugin.so [0xb7e5a8b6] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7f97050] -> /usr/local/dovecot-1.0.10patch4mgtsv92/lib/dovecot/imap/lib90_antispam_plugin.so [0xb7e4d5f5] -> imap(cmd_copy+0x1aa) [0x8056c7a] -> imap [0x805ac38] -> imap [0x805acc7] -> imap(_client_input+0x6c) [0x805b3bc] -> imap(io_loop_handler_run+0x162) [0x80b3562] -> imap(io_loop_run+0x28) [0x80b29a8] -> imap(main+0x5a0) [0x8063590] -> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc
: 8) [0xb7e73ea8] ->
Error: child 18612 (imap) killed with signal 6
No idea, sorry, I don't grok the code in the zlib plugin. Maybe Timo can help?
johannes
On Wed, 2008-03-05 at 12:33 +0100, Steffen Kaiser wrote:
I'm running Dovecot v1.0.10 and downloaded the "HEAD snapshot" today.
If both plugins are enabled, I get:
: file zlib-plugin.c: line 64 (zlib_maildir_get_stream): assertion failed: (fname != NULL)
I'm not exacly sure why it's NULL, but since it happens only for messages that are being saved/copyed, the fix is in any case: http://hg.dovecot.org/dovecot-1.0/rev/e07e8f651ec8
On Thu, 2008-03-06 at 02:09 +0200, Timo Sirainen wrote:
On Wed, 2008-03-05 at 12:33 +0100, Steffen Kaiser wrote:
I'm running Dovecot v1.0.10 and downloaded the "HEAD snapshot" today.
If both plugins are enabled, I get:
: file zlib-plugin.c: line 64 (zlib_maildir_get_stream): assertion failed: (fname != NULL)
I'm not exacly sure why it's NULL, but since it happens only for messages that are being saved/copyed, the fix is in any case: http://hg.dovecot.org/dovecot-1.0/rev/e07e8f651ec8
Maybe it's because the antispam plugin requests messages regardless of what the other plugin thinks? But then the same should happen if you load quota instead of antispam I'd think? Maybe it depends on plugin registration order though.
Not sure, can't wrap my head around that code right now, thanks for investigating.
johannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 6 Mar 2008, Johannes Berg wrote:
If both plugins are enabled, I get:
: file zlib-plugin.c: line 64 (zlib_maildir_get_stream): assertion failed: (fname != NULL)
I'm not exacly sure why it's NULL, but since it happens only for messages that are being saved/copyed, the fix is in any case: http://hg.dovecot.org/dovecot-1.0/rev/e07e8f651ec8
Maybe it's because the antispam plugin requests messages regardless of what the other plugin thinks? But then the same should happen if you load quota instead of antispam I'd think? Maybe it depends on plugin registration order though.
I have updated to the current Dovecot-1.0 HEAD and antispam HEAD.
The combination of zlib and antispam plugins is working now.
Thanks!
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHz7o/VJMDrex4hCIRAhHPAKDBihPe+BM2h1rCrOkX/kXTMJK0ywCfX/KD p7DWC9Pab92kNoPz1Nbmd0Y= =SvcB -----END PGP SIGNATURE-----
participants (3)
-
Johannes Berg
-
Steffen Kaiser
-
Timo Sirainen