[Dovecot] dovecot-1.2.3 (managesieve) crash with backtrace

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Tue Aug 11 11:39:32 EEST 2009


>From the log:

Aug 11 09:07:23 postamt dovecot: IMAP(zensy): Panic: file mail-index-transaction-view.c: line 106 (tview_apply_flag_updates): assertion failed: (map->hdr.record_size <= tview->record_size)
Aug 11 09:07:23 postamt dovecot: IMAP(zensy): Raw backtrace: imap [0x80f0411] -> imap [0x80f0482] -> imap [0x80efe29] -> imap
[0x80c839b] -> imap [0x80cea95] -> imap [0x80c85cf] ->
imap(mail_index_lookup_ext_full+0x36) [0x80cda46] ->
imap(mail_cache_lookup_cur_offset+0x49) [0x80bbad9] -> imap
[0x80bbb5d] -> imap(mail_cache_lookup_iter_init+0x55) [0x80bbc05] ->
imap(mail_cache_field_exists+0xaf) [0x80bc51f] ->
imap(mail_cache_field_want_add+0x48) [0x80bcd98] ->
imap(index_mail_parse_header_init+0x1c3) [0x80a4a33] ->
imap(index_mail_parse_headers+0x60) [0x80a4c40] -> imap [0x80a500f] ->
imap(index_mail_get_first_header+0x22) [0x80a5372] ->
imap(mail_get_first_header+0x25) [0x80b0a85] ->
/usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7e72bfb] ->
/usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7e72f95] ->
/usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so [0xb7e73494] ->
imap(cmd_store+0x475) [0x8065e95] -> imap [0x806769c] -> imap
[0x8067743] -> imap(client_handle_input+0x2d) [0x806789d] -> im
Aug 11 09:07:23 postamt dovecot: IMAP(zensy): io_loop_handler_run+0xe0) [0x80f9000] -> imap(io_loop_run+0x20) [0x80f8470] -> imap(main+0x5d2) [0x8070b52]
Aug 11 09:07:23 postamt dovecot: dovecot: child 16960 (imap) killed with signal 6 (core dumped)

Backtrace:

GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
Reading symbols from /lib/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libdl-2.9.so...done.
done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /lib/i686/cmov/librt.so.1...Reading symbols from /usr/lib/debug/lib/i686/cmov/librt-2.9.so...done.
done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libc-2.9.so...done.
done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.9.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/i686/cmov/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/i686/cmov/libpthread-2.9.so...done.
done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib10_quota_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib11_trash_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib11_trash_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_fts_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_fts_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so
Reading symbols from /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libbz2.so.1.0...done.
Loaded symbols for /lib/libbz2.so.1.0
Reading symbols from /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `imap [zensy 141.42.4.251]'.
Program terminated with signal 6, Aborted.
[New process 16960]
#0  0xb801d424 in __kernel_vsyscall ()
#0  0xb801d424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7ecf3d0 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
	resultvar = <value optimized out>
	pid = -1207963660
	selftid = 16960
#2  0xb7ed2a85 in *__GI_abort () at abort.c:88
	act = {__sigaction_handler = {sa_handler = 0x940d238, 
    sa_sigaction = 0x940d238}, sa_mask = {__val = {3214463400, 135192458, 
      3087001312, 0, 3214463520, 3214463508, 512, 0, 0, 3214463584, 
      3087251056, 134566650, 1131, 0, 0, 0, 1, 135265534, 512, 1, 3214463508, 
      155243032, 69, 3214463636, 3214463480, 135194054, 155244195, 3214463508, 
      3214463512, 1132, 155243064, 3086442259}}, sa_flags = 1132, 
  sa_restorer = 0x81059a9 <write_full+57>}
	sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0x080f0425 in default_fatal_finish (type=<value optimized out>, status=0)
    at failures.c:160
	backtrace = 0x940ca08 "imap [0x80f0411] -> imap [0x80f0482] -> imap [0x80efe29] -> imap [0x80c839b] -> imap [0x80cea95] -> imap [0x80c85cf] -> imap(mail_index_lookup_ext_full+0x36) [0x80cda46] -> imap(mail_cache_lookup_cur_"...
#4  0x080f0482 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, 
    fmt=0x81084ec "file %s: line %d (%s): assertion failed: (%s)", 
    args=0xbf98d2f4 "³X\021\bj") at failures.c:440
No locals.
#5  0x080efe29 in i_panic (
    format=0x81084ec "file %s: line %d (%s): assertion failed: (%s)")
    at failures.c:207
No locals.
#6  0x080c839b in tview_lookup_full (view=0x9425230, seq=1, map_r=0xbf98d3f8, 
    expunged_r=0xbf98d3c7) at mail-index-transaction-view.c:106
	rec = (const struct mail_index_record *) 0x9434838
#7  0x080cea95 in view_lookup_ext_full (view=0x9425230, seq=1, ext_id=4, 
    map_r=0xbf98d3f8, data_r=0xbf98d3f4, expunged_r=0xbf98d3c7)
    at mail-index-view.c:414
	rec = <value optimized out>
#8  0x080c85cf in tview_lookup_ext_full (view=0x9425230, seq=1, ext_id=4, 
    map_r=0xbf98d3f8, data_r=0xbf98d3f4, expunged_r=0xbf98d3c7)
    at mail-index-transaction-view.c:408
	ext_buf = (const union array__seq_array *) 0x0
	data = <value optimized out>
	idx = <value optimized out>
	__PRETTY_FUNCTION__ = "tview_lookup_ext_full"
#9  0x080cda46 in mail_index_lookup_ext_full (view=0x6, seq=1, ext_id=4, 
    map_r=0xbf98d3f8, data_r=0xbf98d3f4, expunged_r=0x0)
    at mail-index-view.c:596
	expunged = false
#10 0x080bbad9 in mail_cache_lookup_cur_offset (view=0x9425230, seq=1, 
    reset_id_r=0xbf98d42c) at mail-cache-lookup.c:65
	cache = (struct mail_cache *) 0x94233b8
	map = <value optimized out>
	data = (const void *) 0x4
	offset = <value optimized out>
#11 0x080bbb5d in mail_cache_lookup_offset (cache=0x94233b8, view=0x6, 
    seq=16960, offset_r=0xbf98d498) at mail-cache-lookup.c:87
	offset = <value optimized out>
	reset_id = 155333560
	ret = <value optimized out>
#12 0x080bbc05 in mail_cache_lookup_iter_init (view=0x9425410, seq=1, 
    ctx_r=0xbf98d480) at mail-cache-lookup.c:154
	ret = <value optimized out>
#13 0x080bc51f in mail_cache_field_exists (view=0x9425410, seq=1, field=12)
    at mail-cache-lookup.c:292
	__PRETTY_FUNCTION__ = "mail_cache_field_exists"
#14 0x080bcd98 in mail_cache_field_want_add (ctx=0x9427af0, seq=1, 
    field_idx=12) at mail-cache-transaction.c:1009
	decision = MAIL_CACHE_DECISION_NO
#15 0x080a4a33 in index_mail_parse_header_init (mail=0x94264b8, 
    _headers=0x94319b0) at index-mail-headers.c:189
	_data_stack_cur_id = 5
	i = <value optimized out>
	field_idx = <value optimized out>
	__PRETTY_FUNCTION__ = "index_mail_parse_header_init"
#16 0x080a4c40 in index_mail_parse_headers (mail=0x94264b8, headers=0x94319b0)
    at index-mail-headers.c:431
	input = (struct istream *) 0x9423900
	old_offset = 0
#17 0x080a500f in index_mail_get_raw_headers (mail=0x94264b8, 
    field=0xb7e736f4 "Message-ID", value_r=0xbf98d608)
    at index-mail-headers.c:625
	headers = {0xb7e736f4 "Message-ID", 0x0}
	value = <value optimized out>
	headers_ctx = (struct mailbox_header_lookup_ctx *) 0x0
	data = <value optimized out>
	field_idx = 12
	dest = (string_t *) 0x942cbf8
	i = <value optimized out>
	len = <value optimized out>
	ret = <value optimized out>
	__PRETTY_FUNCTION__ = "index_mail_get_raw_headers"
#18 0x080a5372 in index_mail_get_first_header (_mail=0x94264b8, 
    field=0xb7e736f4 "Message-ID", decode_to_utf8=false, value_r=0xbf98d65c)
    at index-mail-headers.c:771
	list = (const char * const *) 0x108
	ret = 155239272
	i = 0
#19 0x080b0a85 in mail_get_first_header (mail=0x94264b8, 
    field=0xb7e736f4 "Message-ID", value_r=0xbf98d65c) at mail.c:118
No locals.
#20 0xb7e72bfb in mail_log_add_hdr (mail=0x0, str=0x940c368, 
    name=0xb7e736ff "msgid", header=0xb7e736f4 "Message-ID")
    at mail-log-plugin.c:277
	value = 0xb7e72bdc "\201ô\035"
#21 0xb7e72f95 in mail_log_action (dest_trans=<value optimized out>, 
    mail=0x94264b8, event=MAIL_LOG_EVENT_DELETE, data=0x0)
    at mail-log-plugin.c:318
	size = <value optimized out>
	str = (string_t *) 0x940c368
#22 0xb7e73494 in mail_log_mail_update_flags (_mail=0x94264b8, 
    modify_type=MODIFY_ADD, flags=MAIL_DELETED) at mail-log-plugin.c:376
	_data_stack_cur_id = 16960
	lmail = <value optimized out>
	old_flags = <value optimized out>
	new_flags = <value optimized out>
#23 0x08065e95 in cmd_store (cmd=0x9419688) at cmd-store.c:192
	client = (struct client *) 0x94193f8
	args = (const struct imap_arg *) 0x941e718
	search_args = (struct mail_search_args *) 0x0
	search_ctx = (struct mail_search_context *) 0x9427890
	t = (struct mailbox_transaction_context *) 0x9427a50
	mail = (struct mail *) 0x94264b8
	ctx = {cmd = 0x9419688, max_modseq = 18446744073709551615, 
  flags = MAIL_DELETED, keywords = 0x0, modify_type = MODIFY_ADD, 
  silent = false}
	modified_set = {arr = {buffer = 0x9427b90, element_size = 8}, 
  v = 0x9427b90, v_modifiable = 0x9427b90}
	uids = {arr = {buffer = 0x941e788, element_size = 3214464872}, 
  v = 0x941e788, v_modifiable = 0x941e788}
	flags = <value optimized out>
	imap_sync_flags = <value optimized out>
	reply = <value optimized out>
	tagged_reply = <value optimized out>
	str = <value optimized out>
	ret = <value optimized out>
#24 0x0806769c in client_command_input (cmd=0x9419688) at client.c:611
	client = (struct client *) 0x94193f8
	command = <value optimized out>
	__PRETTY_FUNCTION__ = "client_command_input"
#25 0x08067743 in client_command_input (cmd=0x9419688) at client.c:660
	client = (struct client *) 0x94193f8
	command = <value optimized out>
	__PRETTY_FUNCTION__ = "client_command_input"
#26 0x0806789d in client_handle_input (client=0x94193f8) at client.c:701
	_data_stack_cur_id = 3
	ret = false
	remove_io = <value optimized out>
	handled_commands = false
	__PRETTY_FUNCTION__ = "client_handle_input"
#27 0x080681df in client_input (client=0x94193f8) at client.c:752
	cmd = <value optimized out>
	output = (struct ostream *) 0x94195ac
	bytes = <value optimized out>
	__PRETTY_FUNCTION__ = "client_input"
#28 0x080f9000 in io_loop_handler_run (ioloop=0x94149b0) at ioloop-epoll.c:208
	ctx = (struct ioloop_handler_context *) 0x9414ab8
	event = (const struct epoll_event *) 0x9414af8
	list = (struct io_list *) 0x9419630
	io = (struct io_file *) 0x9419608
	tv = {tv_sec = 1, tv_usec = 575794}
	t_id = 2
	msecs = <value optimized out>
	ret = 1
	i = 0
	j = 0
	call = <value optimized out>
#29 0x080f8470 in io_loop_run (ioloop=0x94149b0) at ioloop.c:338
No locals.
#30 0x08070b52 in main (argc=) at main.c:327
No locals.
$1 = {prev = 0x0, next = 0x0, client = 0x94193f8, pool = 0x9419670, 
  tag = 0x9419700 "A004", name = 0x9419710 "UID STORE", 
  args = 0x9419720 "1:* +FLAGS (\\Deleted)", 
  cmd_flags = COMMAND_FLAG_BREAKS_SEQS, func = 0x8065a20 <cmd_store>, 
  context = 0x0, module_contexts = {arr = {buffer = 0x94196c8, 
      element_size = 4}, v = 0x94196c8, v_modifiable = 0x94196c8}, 
  parser = 0x941e678, state = CLIENT_COMMAND_STATE_WAIT_INPUT, sync = 0x0, 
  uid = 1, cancel = 0, param_error = 0, search_save_result = 0, 
  temp_executed = 0}
(gdb) quit

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt at charite.de | http://www.charite.de
	    


More information about the dovecot mailing list