[Dovecot] 1.0alpha3: assert and core
Jeff A. Earickson
jaearick at colby.edu
Tue Oct 18 17:54:51 EEST 2005
Hi,
An assert and core with 1.0alpha3 on Solaris 9, mbox format,
imap only, compiled with gcc 4.0.1. The syslog message was:
imap(user): file message-body-search.c: line 393
(message_body_search_ctx): assertion failed: (input->v_offset <=
part->physical_pos)
gdb core dump analysis is attached.
Jeff Earickson
Colby College
-------------- next part --------------
Script started on Tue Oct 18 10:47:29 2005
%gdb imap core.mdieng
GNU gdb 6.3
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 "sparc-sun-solaris2.9"...
Core was generated by `imap'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libsendfile.so.1...done.
Loaded symbols for /usr/lib/libsendfile.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
#0 0xff2201a0 in _libc_kill () from /usr/lib/libc.so.1
(gdb) backtrace
#0 0xff2201a0 in _libc_kill () from /usr/lib/libc.so.1
#1 0xff1b6ce0 in abort () from /usr/lib/libc.so.1
#2 0x000696b4 in i_internal_panic_handler (
fmt=0x82728 "file %s: line %d (%s): assertion failed: (%s)",
args=0xffbff218) at failures.c:374
#3 0x00069198 in i_panic (
format=0x82728 "file %s: line %d (%s): assertion failed: (%s)")
at failures.c:173
#4 0x000633fc in message_body_search_ctx (ctx=0xffbff3e4, input=0xc7ad0,
part=0xb63c0) at message-body-search.c:395
#5 0x000634a4 in message_body_search_ctx (ctx=0xffbff3e4, input=0xc7ad0,
part=0xb6370) at message-body-search.c:408
#6 0x000634a4 in message_body_search_ctx (ctx=0xffbff3e4, input=0xc7ad0,
part=0xb62d0) at message-body-search.c:408
#7 0x000635a4 in message_body_search (key=Variable "key" is not available.
) at message-body-search.c:436
#8 0x00043128 in search_body (arg=0xacb18, context=0xffbff5c0)
at index-search.c:448
#9 0x0005b390 in search_arg_foreach (arg=0xacb18,
callback=0x430c4 <search_body>, context=0xffbff5c0) at mail-search.c:81
#10 0x0005b3c4 in mail_search_args_foreach (args=0xacb18,
callback=0x430c4 <search_body>, context=0xffbff5c0) at mail-search.c:93
#11 0x00043364 in search_arg_match_text (args=Variable "args" is not available.
) at index-search.c:528
#12 0x000439e0 in search_match_next (ctx=0xada30) at index-search.c:795
#13 0x00043a90 in index_storage_search_next (_ctx=Variable "_ctx" is not available.
) at index-search.c:823
#14 0x0005bf3c in mailbox_search_next (ctx=Variable "ctx" is not available.
) at mail-storage.c:408
#15 0x000261dc in imap_sort (cmd=0xa3408, charset=0xa37e0 "US-ASCII",
args=0xacb18, sort_program=Variable "sort_program" is not available.
) at imap-sort.c:247
#16 0x0001f650 in cmd_sort (cmd=0xa3408) at cmd-sort.c:123
#17 0x00020274 in cmd_uid (cmd=0xa3408) at cmd-uid.c:19
#18 0x00020c48 in client_handle_input (cmd=0xa3408) at client.c:334
#19 0x00020d50 in _client_input (context=Variable "context" is not available.
) at client.c:386
#20 0x0006ebe0 in io_loop_handler_run (ioloop=0xa12d0) at ioloop-poll.c:184
#21 0x0006e4ac in io_loop_run (ioloop=0xa12d0) at ioloop.c:230
#22 0x00029350 in main (argc=0, argv=0xffbffb9c, envp=0xffbffba4) at main.c:229
(gdb) up 4
#4 0x000633fc in message_body_search_ctx (ctx=0xffbff3e4, input=0xc7ad0,
part=0xb63c0) at message-body-search.c:395
395 i_stream_skip(input, part->physical_pos - input->v_offset);
(gdb) print input
$1 = (struct istream *) 0xc7ad0
(gdb) print *input
$2 = {v_offset = 1517, stream_errno = 0, mmaped = 0, closed = 0, seekable = 0,
eof = 0, real_stream = 0xc7aa8}
(gdb) print *part
$3 = {parent = 0xb6370, next = 0x0, children = 0x0, physical_pos = 1487,
header_size = {physical_size = 1890, virtual_size = 1930, lines = 0},
body_size = {physical_size = 2680, virtual_size = 2764, lines = 84},
flags = 72, context = 0x0}
(gdb) print found
$4 = 0
(gdb) print *ctx
$5 = {pool = 0x0, key = 0x990f0 "SPECTOR", key_len = 7,
charset = 0xabd38 "US-ASCII", unknown_charset = 0, search_header = 0}
(gdb) quit
%exit
exit
script done on Tue Oct 18 10:51:07 2005
More information about the dovecot
mailing list