Anton Yuzhaninov
2009-Feb-19 06:52 UTC
[Dovecot] deliver: Panic: file sieve-cmu.c: line 90 (unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')
I use dovecot-1.1.10 and dovecot-sieve-1.1.6
/usr/local/libexec/dovecot/deliver coredups several times per day with bt like
this:
(gdb) bt
#0 0x0000000800a3a91c in kill () at kill.S:2
#1 0x0000000800a3a88a in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:46
#2 0x0000000800a38f83 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3 0x00000000004a7de5 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0)
at failures.c:151
#4 0x00000000004a8777 in i_syslog_fatal_handler (type=Could not find the frame
base for "i_syslog_fatal_handler".
) at failures.c:309
#5 0x00000000004a80ca in i_panic (format=Could not find the frame base for
"i_panic".
) at failures.c:198
#6 0x0000000800e0b265 in unfold_header (
str=0x800c55a40 "\"firm ru\n?\217?\201????????
?\236?\220?\216?????????\220????\" <our_email@ example.ru>") at
sieve-cmu.c:90
#7 0x0000000800e0b381 in unfold_multiline_headers (headers=0x800c55a30) at
sieve-cmu.c:119
#8 0x0000000800e0b406 in getheader (v=0x7fffffffeab0, phead=0x800c5a160
"to", body=0x7fffffffc048) at sieve-cmu.c:132
#9 0x0000000800e1affc in eval_bc_test (interp=0x800c2d380, body_cache=0x0,
m=0x7fffffffeab0, bc=0x800c5a000, ip=0x7fffffffc300)
at bc_eval.c:541
#10 0x0000000800e1ac96 in eval_bc_test (interp=0x800c2d380, body_cache=0x0,
m=0x7fffffffeab0, bc=0x800c5a000, ip=0x7fffffffd8e4)
at bc_eval.c:445
#11 0x0000000800e1c131 in sieve_eval_bc (exe=0x800c240b0, is_incl=0,
i=0x800c2d380, body_cache=0x0, sc=0x7fffffffeb60, m=0x7fffffffeab0,
imapflags=0x7fffffffda20, actions=0x800c660f0, notify_list=0x800c13a40,
errmsg=0x7fffffffda38) at bc_eval.c:1009
#12 0x0000000800e23ece in sieve_execute_bytecode (exe=0x800c240b0,
interp=0x800c2d380, script_context=0x7fffffffeb60,
message_context=0x7fffffffeab0) at script.c:868
#13 0x0000000800e0dee4 in cmu_sieve_run (namespaces=0x800c0b848,
storage_r=0x7fffffffec98, mail=0x800c1d848,
script_path=0x800c02d28 "/home/public/.dovecot.sieve",
destaddr=0x7fffffffef3e "user_xxxxx", username=0x800c1ce35
"user_xxxxx",
mailbox=0x4c581c "INBOX") at sieve-cmu.c:1038
#14 0x0000000800e0ae6d in cmusieve_deliver_mail (namespaces=0x800c0b848,
storage_r=0x7fffffffec98, mail=0x800c1d848,
destaddr=0x7fffffffef3e "user_xxxxx", mailbox=0x4c581c
"INBOX") at cmusieve-plugin.c:81
#15 0x0000000000417d7f in main (argc=3, argv=0x7fffffffedc8) at deliver.c:1084
I log messages:
deliver(user_xxxxx): Panic: file sieve-cmu.c: line 90 (unfold_header): assertion
failed: (str[i] == ' ' || str[i] == '\t')
--
Anton Yuzhaninov
Anton Yuzhaninov
2009-Feb-19 16:55 UTC
[Dovecot] deliver: Panic: file sieve-cmu.c: line 90?(unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')
On Thu, 19 Feb 2009 06:52:54 +0000 (UTC), Anton Yuzhaninov wrote: AY> deliver(user_xxxxx): Panic: file sieve-cmu.c: line 90 (unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t') Header from this message: To: "=?windows-1251?B?ZmlybSBydQqPqOHsrK4goqWhrKDh4qXg4w==?=" <user at example> It conatin \n inside base64 encoded world. -- Anton Yuzhaninov
Timo Sirainen
2009-Feb-19 18:15 UTC
[Dovecot] deliver: Panic: file sieve-cmu.c: line 90 (unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')
On Thu, 2009-02-19 at 06:52 +0000, Anton Yuzhaninov wrote:> I log messages: > deliver(user_xxxxx): Panic: file sieve-cmu.c: line 90 (unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')Deleting dovecot.index.cache file should help for this. Also this patch should do it automatically: http://hg.dovecot.org/dovecot-sieve-1.1/rev/45d2da01f907 The original problem was the corrupted cache file though. If it keeps getting corrupted all the time you have some other problem that should be fixed.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090219/1acf7b74/attachment-0002.bin>