Juergen Daubert
2010-Mar-29 12:14 UTC
[Dovecot] 2.0.beta4, Panic: stream doesn't support seeking backwards
Hi, got the following with beta4 while uploading messages from a local mbox to the dovecot server in my LAN, tested with mutt and sylpheed, the same action works with 1.2.11: Mar 29 13:42:46 [dovecot] imap(juergen): Panic: stream doesn't support seeking backwards Mar 29 13:42:46 [dovecot] imap(juergen): Raw backtrace: /usr/lib/dovecot/libdovecot.so.0 [0xb76b7ec4] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76b7f2c] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0xb76b8193] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76c02cd] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_seek+0xbb) [0xb76be1db] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76c08a9] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x6e) [0xb76be27e] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x40) [0xb76be570] -> /usr/lib/dovecot/libdovecot.so.0(message_parse_header_next+0x6d) [0xb76a7b6d] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76a4302] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76a498f] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x6e) [0xb76be27e] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76a3f61] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76a4072] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_seek+0xbb) [0xb76be1db] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x52) [0xb76be262] -> /usr/lib/dovecot/libdovecot.so.0 [0xb76c246d] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x6e) [0xb76be27e] -> /usr/lib/dovecot/libdovecot-storage.so.0(mbox_save_continue+0x4c) [0xb776ca6c] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_save_continue+0x14) [0xb7708964] -> dovecot/imap [0x804e32f] -> dovecot/imap [0x804ed31] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd1) [0xb76c38f1] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x29) [0xb76c29f9] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x25) [0xb76b1c45] -> dovecot/imap(main+0x1b3) [0x805da13] -> /lib/libc.so.6(__libc_start_main+0xdb) [0xb7559a3b] -> dovecot/imap [0x804e161] Mar 29 13:42:46 [dovecot] master: service(imap): child 21107 killed with signal 6 (core dumps disabled) # dovecot -n # 2.0.beta4: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32.10 i686 listen = * login_access_sockets = tcpwrap passdb { driver = shadow } service tcpwrap { unix_listener login/tcpwrap { mode = 0666 } } ssl_cert = </etc/ssl/certs/dovecot.crt ssl_key = </etc/ssl/keys/dovecot.key userdb { driver = passwd } Greetings Juergen -- Juergen Daubert | mailto:jue at jue.li Korb, Germany | http://jue.li/crux
Juergen Daubert
2010-Apr-03 20:24 UTC
[Dovecot] 2.0.beta4, Panic: stream doesn't support seeking backwards
attached a backtrace from gdb for the crash. Hope this is helpful. Thanks Juergen -- Juergen Daubert | mailto:jue at jue.li Korb, Germany | http://jue.li/crux -------------- next part -------------- GNU gdb (GDB) 7.1 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/lib/dovecot/imap...done. Attaching to program: /usr/lib/dovecot/imap, process 3453 [New Thread 3453] Reading symbols from /usr/lib/dovecot/libdovecot-storage.so.0...done. Loaded symbols for /usr/lib/dovecot/libdovecot-storage.so.0 Reading symbols from /usr/lib/dovecot/libdovecot.so.0...done. Loaded symbols for /usr/lib/dovecot/libdovecot.so.0 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/lib/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgcc_s.so.1 Core was generated by `dovecot/imap'. Program terminated with signal 6, Aborted. #0 0xb7502ca0 in raise () from /lib/libc.so.6 (gdb) bt full #0 0xb7502ca0 in raise () from /lib/libc.so.6 No symbol table info available. #1 0xb75041dc in abort () from /lib/libc.so.6 No symbol table info available. #2 0xb76572f7 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0) at failures.c:164 backtrace = 0x80680b0 "/usr/lib/dovecot/libdovecot.so.0 [0xb76572cf] -> /usr/lib/dovecot/libdovecot.so.0 [0xb765801f] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0xb76574a1] -> /usr/lib/dovecot/libdovecot.so.0 [0xb7661f"... #3 0xb765801f in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0xb7682894 "stream doesn't support seeking backwards", args=0xbfde1774 "") at failures.c:592 No locals. #4 0xb76574a1 in i_panic (format=0xb7682894 "stream doesn't support seeking backwards") at failures.c:230 args = 0xbfde1774 "" #5 0xb7661f4b in i_stream_file_seek (stream=0x80856f0, v_offset=36055, mark=false) at istream-file.c:109 fstream = 0x80856f0 #6 0xb765f530 in i_stream_seek (stream=0x8085720, v_offset=36055) at istream.c:224 _stream = 0x80856f0 #7 0xb76622f5 in i_stream_limit_read (stream=0x8091b60) at istream-limit.c:40 lstream = 0x8091b60 left = 13213178234276937864 ret = 134764272 pos = 38030 __FUNCTION__ = "i_stream_limit_read" #8 0xb765ef5c in i_stream_read (stream=0x8091b90) at istream.c:115 _stream = 0x8091b60 old_size = 0 ret = -1217862860 __FUNCTION__ = "i_stream_read" #9 0xb765fb99 in i_stream_read_data (stream=0x8091b90, data_r=0xbfde18f0, size_r=0xbfde18ec, threshold=1) at istream.c:417 ret = 0 read_more = false __FUNCTION__ = "i_stream_read_data" #10 0xb7643f18 in message_parse_header_next (ctx=0x8093378, hdr_r=0xbfde1974) at message-header-parser.c:89 line = 0x8093378 msg = 0x0 i = 3219003688 size = 0 startpos = 0 colon_pos = 4294967295 parse_size = 134822896 value_pos = 0 ret = -1218096987 continued = false continues = false last_no_newline = 208 last_crlf = 59 no_newline = false crlf_newline = false __FUNCTION__ = "message_parse_header_next" #11 0xb763edc8 in read_header (mstream=0x8093648) at istream-header-filter.c:146 hdr = 0x0 highwater_offset = 13215427022242584968 pos = 134820696 ret = -1217862860 matched = 183 hdr_ret = -1217862860 __FUNCTION__ = "read_header" #12 0xb763f114 in i_stream_header_filter_read (stream=0x8093648) at istream-header-filter.c:285 mstream = 0x8093648 v_offset = 579050620660020672 ret = 134814560 #13 0xb765ef5c in i_stream_read (stream=0x8093678) at istream.c:115 _stream = 0x8093648 old_size = 0 ret = 0 __FUNCTION__ = "i_stream_read" #14 0xb763f398 in skip_header (mstream=0x8093648) at istream-header-filter.c:335 pos = 3077104436 #15 0xb763f48b in i_stream_header_filter_seek (stream=0x8093648, v_offset=1936, mark=false) at istream-header-filter.c:366 mstream = 0x8093648 #16 0xb765f530 in i_stream_seek (stream=0x8093678, v_offset=1936) at istream.c:224 _stream = 0x8093648 #17 0xb765ef30 in i_stream_read (stream=0x80937b8) at istream.c:112 _stream = 0x8093788 old_size = 0 ret = 0 __FUNCTION__ = "i_stream_read" #18 0xb7664918 in i_stream_tee_read (stream=0x8092e10) at istream-tee.c:139 tstream = 0x8092e10 input = 0x80937b8 data = 0x80a3344 "List-Id: Dovecot Mailing List <dovecot.dovecot.org>\n" size = 52 last_high_offset = 1936 ret = 134821768 __FUNCTION__ = "i_stream_tee_read" #19 0xb765ef5c in i_stream_read (stream=0x8092e40) at istream.c:115 _stream = 0x8092e10 old_size = 0 ret = -1218055909 __FUNCTION__ = "i_stream_read" #20 0xb77326c1 in mbox_save_continue (_ctx=0x8091c58) at mbox-save.c:590 ctx = 0x8091c58 data = 0x0 i = 3219004520 size = 3077104436 ret = -1218055909 #21 0xb76b40e7 in mailbox_save_continue (ctx=0x8091c58) at mail-storage.c:1286 No locals. #22 0x0804ef10 in cmd_append_continue_message (cmd=0x808c2f0) at cmd-append.c:397 client = 0x808bee8 ctx = 0x808c388 size = 3076971834 ret = 0 #23 0x0804e424 in client_input_append (cmd=0x808c2f0) at cmd-append.c:83 ctx = 0x808c388 client = 0x808bee8 finished = 183 __FUNCTION__ = "client_input_append" #24 0xb7666d08 in io_loop_handler_run (ioloop=0x8070358) at ioloop-epoll.c:208 ctx = 0x8070478 events = 0x80704b8 event = 0x80704b8 list = 0x8085638 io = 0x80984f0 tv = {tv_sec = 4, tv_usec = 820964} events_count = 5 t_id = 2 msecs = 4821 ret = 1 i = 0 j = 0 call = true #25 0xb7665b4c in io_loop_run (ioloop=0x8070358) at ioloop.c:350 No locals. #26 0xb7650934 in master_service_run (service=0x80702a8, callback=0x80624fe <client_connected>) at master-service.c:486 No locals. #27 0x0806271e in main (argc=1, argv=0x80701c0) at main.c:313 set_roots = {0x8065ee0, 0x0} service_flags = MASTER_SERVICE_FLAG_KEEP_CONFIG_OPEN storage_service_flags = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT postlogin_socket_path = 0x0 (gdb) quit
Juergen Daubert
2010-Apr-24 09:27 UTC
[Dovecot] 2.0.beta4, Panic: stream doesn't support seeking backwards
On Mon, Mar 29, 2010 at 02:14:28PM +0200, Juergen Daubert wrote:> Hi, > > got the following with beta4 while uploading messages from a local > mbox to the dovecot server in my LAN, tested with mutt and sylpheed, > the same action works with 1.2.11: > > > Mar 29 13:42:46 [dovecot] imap(juergen): Panic: stream doesn't support > seeking backwardsFYI, got the same crash with a build from nightly 20100422. If you need further informations, please let me know. Thanks Juergen -- Juergen Daubert | mailto:jue at jue.li Korb, Germany | http://jue.li/crux
Timo Sirainen
2010-May-31 18:55 UTC
[Dovecot] 2.0.beta4, Panic: stream doesn't support seeking backwards
On ma, 2010-03-29 at 14:14 +0200, Juergen Daubert wrote:> got the following with beta4 while uploading messages from a local > mbox to the dovecot server in my LAN, tested with mutt and sylpheed, > the same action works with 1.2.11: > > > Mar 29 13:42:46 [dovecot] imap(juergen): Panic: stream doesn't support > seeking backwardsFinally I've some time to look at this. Can you still reliably reproduce this every time? I think it happens only when some specific fields are cached. If the mailbox itself doesn't contain anything sensitive, could you send it to me along with its index files? Alternatively I'd like to see the cache fields output of "doveadm dump ~/mail/.imap/mailboxname", e.g.: -- Cache fields -- # Name Type Size Dec Last used 0: flags bit 4 tmp 2010-05-31 19:53 1: date.sent fix 8 no 1970-01-01 01:00 ..