[Dovecot] assertion failure with 2.0rc4
Ran into an assertion error on login with 2.0rc4, with kmail and the N900 mail client:
OS: Ubuntu Lucid 10.04.1 LTS FS: ext4 arch: x86-64
dovecot: imap-login: Login: user=<rmurray>, method=PLAIN, rip=192.168.1.9, lip=192.168.1.1, mpid=31843, TLS dovecot: imap(rmurray): Panic: file istream-header-filter.c: line 85 (read_mixed): assertion failed: (pos > 0) dovecot: master: Error: service(imap): child 31843 killed with signal 6 (core dumped)
#0 0x0000003e9fa33a75 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x0000003e9fa375c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007f419e3bdd34 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0)
at failures.c:164
backtrace = 0x1542898 "ot.so.0(+0x26793) [0x7f900d292793] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0xbb) [0x7f900d2b6979] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x61) [0x7f900d2b7676] -> /usr/lib/do"...
#3 0x00007f419e3bf01c in i_internal_fatal_handler (type=LOG_TYPE_PANIC,
status=0,
fmt=0x7f419e3e9778 "file %s: line %d (%s): assertion failed: (%s)",
args=0x7fff6244c100) at failures.c:593
No locals.
#4 0x00007f419e3be05c in i_panic (
format=0x7f419e3e9778 "file %s: line %d (%s): assertion failed: (%s)")
at failures.c:230
args = {{gp_offset = 0, fp_offset = 0, overflow_arg_area = 0x0,
reg_save_area = 0x0}}
#5 0x00007f419e3a1a4d in read_mixed (mstream=0x1598d20, body_highwater_size=0)
at istream-header-filter.c:81
data = 0x0
pos = 0
ret = -1
__FUNCTION__ = "read_mixed"
#6 0x00007f419e3a1e92 in read_header (mstream=0x1598d20)
at istream-header-filter.c:164
body_highwater_size = 0
hdr = 0x0
highwater_offset = 0
pos = 0
ret = 0
matched = false
hdr_ret = 0
__FUNCTION__ = "read_header"
#7 0x00007f419e3a2793 in i_stream_header_filter_read (stream=0x1598d20)
at istream-header-filter.c:351
mstream = 0x1598d20
v_offset = 22292552
ret = 22634928
#8 0x00007f419e3c6979 in i_stream_read (stream=0x1598d80) at istream.c:115
_stream = 0x1598d20
old_size = 1
ret = 140734842061776
__FUNCTION__ = "i_stream_read"
#9 0x00007f419e3c7676 in i_stream_read_data (stream=0x1598d80,
data_r=0x7fff6244c3b0, size_r=0x7fff6244c3a0, threshold=1) at istream.c:417
ret = 0
read_more = false
__FUNCTION__ = "i_stream_read_data"
#10 0x00007f419e3a7c91 in message_parse_header_next (ctx=0x159b440,
hdr_r=0x7fff6244c408) at message-header-parser.c:89
line = 0x0
msg = 0x0
i = 0
size = 0
startpos = 0
colon_pos = 0
parse_size = 0
ret = 32767
continued = false
continues = false
last_no_newline = 127
last_crlf = 65
no_newline = false
crlf_newline = false
__FUNCTION__ = "message_parse_header_next"
#11 0x00007f419e3a9e3c in parse_next_header (ctx=0x159b078,
block_r=0x7fff6244c480) at message-parser.c:480
part = 0x1591558
hdr = 0x0
size = 22613672
ret = -1
__FUNCTION__ = "parse_next_header"
#12 0x00007f419e3aaa05 in message_parser_parse_next_block (ctx=0x159b078,
block_r=0x7fff6244c480) at message-parser.c:768
ret = 22615384
eof = false
full = false
__FUNCTION__ = "message_parser_parse_next_block"
#13 0x00007f419e3aabc6 in message_parser_parse_header (ctx=0x159b078,
hdr_size=0x1590f60,
callback=0x7f419e68e1f8
On Thu, 2010-08-05 at 15:28 -0700, Ryan Murray wrote:
#4 0x00007f419e3be05c in i_panic ( format=0x7f419e3e9778 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:230 args = {{gp_offset = 0, fp_offset = 0, overflow_arg_area = 0x0, reg_save_area = 0x0}} #5 0x00007f419e3a1a4d in read_mixed (mstream=0x1598d20, body_highwater_size=0) at istream-header-filter.c:81
Looks like the assert was just a few lines too early, fixed: http://hg.dovecot.org/dovecot-2.0/rev/dd3e70c85d43
participants (2)
-
Ryan Murray
-
Timo Sirainen