[Dovecot] Problem in deliver (Panic: file index-mail-headers.c ...)
Hi All,
I'm experiencing a problem with some mails in deliver. Here the logged error message:
deliver(stefan@roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0) deliver(stefan@roese.nl): 2009-05-06 11:57:36 Error: Raw backtrace: /usr/lib/dovecot/deliver [0xb801ee51] -> /usr/lib/dovecot/deliver(default_fatal_handler+0x4c) [0xb801ef9c] -> /usr/lib/dovecot/deliver [0xb801e6e5] -> /usr/lib/dovecot/deliver(index_mail_parse_header+0x739) [0xb7fdea19] -> /usr/lib/dovecot/deliver(message_parser_parse_header+0x48) [0xb8016e88] -> /usr/lib/dovecot/deliver(index_mail_parse_headers+0x106) [0xb7fdef76] -> /usr/lib/dovecot/deliver [0xb7fdf566] -> /usr/lib/dovecot/deliver(index_mail_get_headers+0x2f) [0xb7fdf98f] -> /usr/lib/dovecot/deliver(mail_get_headers_utf8+0x25) [0xb7fe7315] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so [0xb7dd7530] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so [0xb7de2169] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so(sieve_eval_bc+0x47e) [0xb7de33ee] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so(sieve_execute_bytecode+0x125) [0xb7de9565] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so(cmu_sieve_run+0x325) [0xb7dd8835] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so [0xb7dd6486] -> /usr/lib/dovecot/deliver(main+0x11e4) [0xb7fa6eb4] -> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7e09775] -> /usr/lib/dovecot/deliver [0xb7fa47c1]
This is dovecot v1.1.11 used on Kubuntu 9.04. Any ideas what's the source for this problem and how to solve it?
Thanks, Stefan
On Wed, 2009-05-06 at 13:16 +0200, Stefan Roese wrote:
I'm experiencing a problem with some mails in deliver. Here the logged error message:
deliver(stefan@roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0)
Hmm. Interesting. That code has existed a long time and used also by IMAP, so I'd think it should have been bugfree..
[0xb7fdf98f] -> /usr/lib/dovecot/deliver(mail_get_headers_utf8+0x25) [0xb7fe7315] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
You have a Sieve script that does something with headers. What does it look like?
Can you reproduce this? For example does it always crash with some specific mail? If so, I'd like to get a copy of that mail.
On Monday 18 May 2009 00:58:40 Timo Sirainen wrote:
On Wed, 2009-05-06 at 13:16 +0200, Stefan Roese wrote:
I'm experiencing a problem with some mails in deliver. Here the logged error message:
deliver(stefan@roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0)
Hmm. Interesting. That code has existed a long time and used also by IMAP, so I'd think it should have been bugfree..
I upgraded to 1.1.14 a few days ago and the error still occurs.
[0xb7fdf98f] -> /usr/lib/dovecot/deliver(mail_get_headers_utf8+0x25) [0xb7fe7315] -> /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
You have a Sieve script that does something with headers. What does it look like?
Please find it attached.
Can you reproduce this? For example does it always crash with some specific mail? If so, I'd like to get a copy of that mail.
It happens on some mails from the Linux mailing lists (xxx.vger.kernel.org). I already created a wrapper script to deliver so that those mails don't bounce. Unfortunately I didn't extract such failing mails till now. I'll try to provide one in the next few days.
Thanks.
Best regards, Stefan
On Wed, 2009-05-06 at 13:16 +0200, Stefan Roese wrote:
Hi All,
I'm experiencing a problem with some mails in deliver. Here the logged error message:
deliver(stefan@roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0)
Fixed: http://hg.dovecot.org/dovecot-1.1/rev/e596c98605dd
It broke if the message body started with a space or tab.
Hi Timo,
On Tuesday 26 May 2009 22:54:31 Timo Sirainen wrote:
On Wed, 2009-05-06 at 13:16 +0200, Stefan Roese wrote:
Hi All,
I'm experiencing a problem with some mails in deliver. Here the logged error message:
deliver(stefan@roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0)
Fixed: http://hg.dovecot.org/dovecot-1.1/rev/e596c98605dd
It broke if the message body started with a space or tab.
Great, thanks.
Do you plan on releasing a new 1.1.x version soon? Or would you suggest to build/run the latest 1.1.x version (without release) from the Mercurial repository instead?
BTW: Is this problem also available or already fixed in the 1.2 (and later) versions?
Thanks.
Best regards, Stefan
On Thu, 2009-05-28 at 08:57 +0200, Stefan Roese wrote:
Hi Timo,
On Tuesday 26 May 2009 22:54:31 Timo Sirainen wrote:
On Wed, 2009-05-06 at 13:16 +0200, Stefan Roese wrote:
Hi All,
I'm experiencing a problem with some mails in deliver. Here the logged error message:
deliver(stefan@roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0)
Fixed: http://hg.dovecot.org/dovecot-1.1/rev/e596c98605dd
It broke if the message body started with a space or tab.
Great, thanks.
Do you plan on releasing a new 1.1.x version soon?
This week(end), yes.
Or would you suggest to build/run the latest 1.1.x version (without release) from the Mercurial repository instead?
You could do that too.
BTW: Is this problem also available or already fixed in the 1.2 (and later) versions?
In hg, yes.
participants (2)
-
Stefan Roese
-
Timo Sirainen