Re: [Dovecot] deliver panics when handling mails bigger than some kByte

2009-12-19 Thread Leon Meßner
On Tue, Dec 15, 2009 at 03:04:07PM -0500, Timo Sirainen wrote:
 On Mon, 2009-12-14 at 20:55 +0100, Leon Meßner wrote:
  Hi,
  
  i've just upgraded to dovecot-1.2.8 (from 1.2.4) and do now get the
  following errors when deliver gets hands on mails with some attachments.
  
  # tail -n 1 /var/log/messages
  Dec 14 19:00:36 mail3 dovecot: deliver(user): Panic: file istream.c:
  line 96 (i_stream_read): assertion failed: (stream-eof)
 
 Can you reproduce this easily? Can you get it to dump core?

Happens everytime one tries to send mails which are slightly bigger
(around 100k).

 kern.corefile and kern.sugid_coredump sysctls probably help. I'd like to
 get at least gdb backtrace and also a few other variables..
 http://dovecot.org/bugreport.html

Here's the backtrace and the output of `dovecot -n`. This is still 1.2.8, 
I will upgrade as soon as the new FreeBSD port is out there. The
configuration is basically postfix with deliver as LDA and dovecot-sieve
inside a FreeBSD 7.2 jail and maildir's on NFS.

thanks and happy holidays to everyone,
Leon

18:19_r...@mail3:/root# gdb /usr/local/libexec/dovecot/deliver
deliver.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as amd64-marcel-freebsd...(no debugging
symbols found)...
Core was generated by `deliver'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from
/usr/local/lib/dovecot/lda/lib90_sieve_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/lda/lib90_sieve_plugin.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x000800b2fa1c in kill () from /lib/libc.so.7
(gdb) bt full
#0  0x000800b2fa1c in kill () from /lib/libc.so.7
No symbol table info available.
#1  0x000800b2e83b in abort () from /lib/libc.so.7
No symbol table info available.
#2  0x004c7795 in failure_exit ()
No symbol table info available.
#3  0x004c8147 in i_syslog_fatal_handler ()
No symbol table info available.
#4  0x004c7a7a in i_panic ()
No symbol table info available.
#5  0x004ce84c in i_stream_read ()
No symbol table info available.
#6  0x004d1c52 in i_stream_create_fd ()
No symbol table info available.
#7  0x004ce778 in i_stream_read ()
No symbol table info available.
#8  0x004d0925 in i_stream_create_concat ()
No symbol table info available.
#9  0x004d0c2d in i_stream_create_concat ()
No symbol table info available.
#10 0x004ce778 in i_stream_read ()
No symbol table info available.
#11 0x004d35fa in i_stream_create_seekable ()
No symbol table info available.
#12 0x004ce778 in i_stream_read ()
No symbol table info available.
#13 0x004cf3cd in i_stream_read_data ()
No symbol table info available.
#14 0x004bd6df in message_id_get_next ()
No symbol table info available.
#15 0x004bdee9 in message_id_get_next ()
No symbol table info available.
#16 0x004bf018 in message_parser_parse_next_block ()
No symbol table info available.
#17 0x0045eb1d in index_mail_cache_parse_continue ()
No symbol table info available.
#18 0x004442ac in maildir_save_continue ()
No symbol table info available.
#19 0x004787a3 in mailbox_save_continue ()
No symbol table info available.
#20 0x00471105 in mail_storage_copy ()
No symbol table info available.
#21 0x00441f6c in maildir_copy ()
No symbol table info available.
#22 0x00478871 in mailbox_copy ()
No symbol table info available.
#23 0x000800e2f881 in act_store_execute () from
/usr/local/lib/dovecot/lda/lib90_sieve_plugin.so
No symbol table info available.
#24 0x000800e29707 in _sieve_result_implicit_keep () from
/usr/local/lib/dovecot/lda/lib90_sieve_plugin.so
No symbol table info available.
#25 0x000800e29bff in sieve_result_execute () from
/usr/local/lib/dovecot/lda/lib90_sieve_plugin.so
No symbol table info available.
#26 0x000800e35ac7 in sieve_execute () from
/usr/local/lib/dovecot/lda/lib90_sieve_plugin.so
No symbol table info available.
#27 0x000800e1b58e in lda_sieve_deliver_mail () from
/usr/local/lib/dovecot/lda/lib90_sieve_plugin.so
No symbol table info available.
#28 0x0041b247 in main ()
No symbol table info available.

18:23_r...@mail3:/root# dovecot -n
# 1.2.8: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-STABLE amd64
log_path: /var/log/dovecot.log
protocols: imaps pop3s managesieve
listen: 

Re: [Dovecot] deliver panics when handling mails bigger than some kByte

2009-12-15 Thread Timo Sirainen
On Mon, 2009-12-14 at 20:55 +0100, Leon Meßner wrote:
 Hi,
 
 i've just upgraded to dovecot-1.2.8 (from 1.2.4) and do now get the
 following errors when deliver gets hands on mails with some attachments.
 
 # tail -n 1 /var/log/messages
 Dec 14 19:00:36 mail3 dovecot: deliver(user): Panic: file istream.c:
 line 96 (i_stream_read): assertion failed: (stream-eof)

Can you reproduce this easily? Can you get it to dump core?
kern.corefile and kern.sugid_coredump sysctls probably help. I'd like to
get at least gdb backtrace and also a few other variables..
http://dovecot.org/bugreport.html

 The MTA is postfix running inside a FreeBSD 7.2-STABLE jail. The homes
 where deliver should put mails are mounted via NFS. As it works with 
 small attachments perhaps this is related to the message size.
 
 However i don't get the stale NFS file handle error any more which i did
 under 1.2.4 (See thread that begins with:
 Message-ID: 20091016122519.gc6...@emmi.physik-pool.tu-berlin.de )

I didn't change anything between 1.2.4 and 1.2.8 related to handling
stale NFS handles..


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


[Dovecot] deliver panics when handling mails bigger than some kByte

2009-12-14 Thread Leon Meßner
Hi,

i've just upgraded to dovecot-1.2.8 (from 1.2.4) and do now get the
following errors when deliver gets hands on mails with some attachments.

# tail -n 1 /var/log/messages
Dec 14 19:00:36 mail3 dovecot: deliver(user): Panic: file istream.c:
line 96 (i_stream_read): assertion failed: (stream-eof)

The MTA is postfix running inside a FreeBSD 7.2-STABLE jail. The homes
where deliver should put mails are mounted via NFS. As it works with 
small attachments perhaps this is related to the message size.

However i don't get the stale NFS file handle error any more which i did
under 1.2.4 (See thread that begins with:
Message-ID: 20091016122519.gc6...@emmi.physik-pool.tu-berlin.de )

Greetings,
Leon



pgpyKQITMcpd2.pgp
Description: PGP signature