Re: [Dovecot] deliver: Panic: file sieve-cmu.c: line 90?(unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')

2009-02-19 Thread Anton Yuzhaninov
On Thu, 19 Feb 2009 06:52:54 + (UTC), Anton Yuzhaninov wrote:
AY deliver(user_x): 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==?= u...@example

It conatin \n inside base64 encoded world.

-- 
 Anton Yuzhaninov



Re: [Dovecot] deliver: Panic: file sieve-cmu.c: line 90 (unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')

2009-02-19 Thread Timo Sirainen
On Thu, 2009-02-19 at 06:52 +, Anton Yuzhaninov wrote:
 I log messages:
 deliver(user_x): 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..



signature.asc
Description: This is a digitally signed message part


[Dovecot] deliver: Panic: file sieve-cmu.c: line 90 (unfold_header): assertion failed: (str[i] == ' ' || str[i] == '\t')

2009-02-18 Thread Anton Yuzhaninov
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  0x000800a3a91c in kill () at kill.S:2
#1  0x000800a3a88a in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:46
#2  0x000800a38f83 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x004a7de5 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0) 
at failures.c:151
#4  0x004a8777 in i_syslog_fatal_handler (type=Could not find the frame 
base for i_syslog_fatal_handler.
) at failures.c:309
#5  0x004a80ca in i_panic (format=Could not find the frame base for 
i_panic.
) at failures.c:198
#6  0x000800e0b265 in unfold_header (
str=0x800c55a40 \firm ru\nÐ\217Ð\201б쬮 
Ñ\236Ò\220Ð\216¬ бвÒ\220аг\ our_email@ example.ru) at sieve-cmu.c:90
#7  0x000800e0b381 in unfold_multiline_headers (headers=0x800c55a30) at 
sieve-cmu.c:119
#8  0x000800e0b406 in getheader (v=0x7fffeab0, phead=0x800c5a160 to, 
body=0x7fffc048) at sieve-cmu.c:132
#9  0x000800e1affc in eval_bc_test (interp=0x800c2d380, body_cache=0x0, 
m=0x7fffeab0, bc=0x800c5a000, ip=0x7fffc300)
at bc_eval.c:541
#10 0x000800e1ac96 in eval_bc_test (interp=0x800c2d380, body_cache=0x0, 
m=0x7fffeab0, bc=0x800c5a000, ip=0x7fffd8e4)
at bc_eval.c:445
#11 0x000800e1c131 in sieve_eval_bc (exe=0x800c240b0, is_incl=0, 
i=0x800c2d380, body_cache=0x0, sc=0x7fffeb60, m=0x7fffeab0, 
imapflags=0x7fffda20, actions=0x800c660f0, notify_list=0x800c13a40, 
errmsg=0x7fffda38) at bc_eval.c:1009
#12 0x000800e23ece in sieve_execute_bytecode (exe=0x800c240b0, 
interp=0x800c2d380, script_context=0x7fffeb60, 
message_context=0x7fffeab0) at script.c:868
#13 0x000800e0dee4 in cmu_sieve_run (namespaces=0x800c0b848, 
storage_r=0x7fffec98, mail=0x800c1d848, 
script_path=0x800c02d28 /home/public/.dovecot.sieve, 
destaddr=0x7fffef3e user_x, username=0x800c1ce35 user_x, 
mailbox=0x4c581c INBOX) at sieve-cmu.c:1038
#14 0x000800e0ae6d in cmusieve_deliver_mail (namespaces=0x800c0b848, 
storage_r=0x7fffec98, mail=0x800c1d848, 
destaddr=0x7fffef3e user_x, mailbox=0x4c581c INBOX) at 
cmusieve-plugin.c:81
#15 0x00417d7f in main (argc=3, argv=0x7fffedc8) at deliver.c:1084

I log messages:
deliver(user_x): Panic: file sieve-cmu.c: line 90 (unfold_header): 
assertion failed: (str[i] == ' ' || str[i] == '\t')

-- 
 Anton Yuzhaninov