Panic on service(imap) during FETCH/APPEND some messages
Hi,
when I check "doveadm log errors" I found some fatal error repeated many times by around the same users
- Panic: file message-part-data.c
May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Error: Mailbox INBOX: UID=3454: imap_bodystructure_parse() failed: message_part lines doesn't match lines in BODYSTRUCTURE May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Error: Mailbox INBOX: UID=3454: imap_bodystructure_parse() failed: message_part lines doesn't match lines in BODYSTRUCTURE May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Panic: file message-part-data.c: line 579 (message_part_is_attachment): assertion failed: (data != NULL) May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f294d7fdac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f294d7fdbce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7f294d80acde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7f294d80ad81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f294d75c25a] -> /usr/lib64/dovecot/libdovecot.so.0(+0xd377d) [0x7f294d7ea77d] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x3ecbc) [0x7f294db0ccbc] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x3eca4) [0x7f294db0cca4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_set_attachment_keywords+0xe7) [0x7f294db0dd17] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc15a4) [0x7f294db8f5a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc190e) [0x7f294db8f90e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x332) [0x7f294db8fd32] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7f294db45428] -> /usr/lib64/dovecot/libdovecot-storage.soindex-mail-headers.c.0(mail_get_hdr_stream_because+0x5b) [0x7f294db0d6ab] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_get_header_stream+0x18a) [0x7f294db8d68a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_header_stream+0x53) [0x7f294db0d493] -> /usr/lib64/dovecot/libdovecot-storage.so.0(imap_msgpart_open+0x5aa) [0x7f294dbd20aa] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7fd5ae] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7fb0ac] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7fc6e5] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7ec7ed] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f9614] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7502] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7591] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7759] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7a15] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7ff9] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) [0x7f294d822f45] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x12b) [0x7f294d8248fb] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x59) [0x7f294d823049] May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Fatal: master: service(imap): child 21483 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
- Panic: file imap-bodystructure.c
May 31 12:06:05 pop01 dovecot: imap(user2@email.com) session=<3b6TX53DetK5HrcI>: Panic: file imap-bodystructure.c: line 209 (part_write_body): assertion failed: (text == ((part->flags & MESSAGE_PART_FLAG_TEXT) != 0)) May 31 12:06:05 pop01 dovecot: imap(user2@email.com) session=<3b6TX53DetK5HrcI>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7fe4e8000ac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7fe4e8000bce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7fe4e800dcde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7fe4e800dd81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fe4e7f5f25a] -> /usr/lib64/dovecot/libdovecot.so.0(imap_bodystructure_write+0x263) [0x7fe4e7fd6a53] -> /usr/lib64/dovecot/libdovecot.so.0(+0xbcca3) [0x7fe4e7fd6ca3] -> /usr/lib64/dovecot/libdovecot.so.0(imap_bodystructure_write+0x28a) [0x7fe4e7fd6a7a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc0aa7) [0x7fe4e8391aa7] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc1563) [0x7fe4e8392563] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc190e) [0x7fe4e839290e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x332) [0x7fe4e8392d32] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7fe4e8348428] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x64) [0x7fe4e83105a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_prefetch+0x96) [0x7fe4e8393bc6] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_prefetch+0x2e) [0x7fe4e830fe4e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc98cd) [0x7fe4e839a8cd] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x110) [0x7fe4e839ae30] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x22) [0x7fe4e831eaa2] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x3d) [0x7fe4e831eb0d] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e121dc] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e136e5] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e037ed] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e10614] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0e502] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0e591] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0e759] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0ea15] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0eff9] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) [0x7fe4e8025f45] May 31 12:06:05 pop01 dovecot: imap(user2@email.com) session=<3b6TX53DetK5HrcI>: Fatal: master: service(imap): child 29622 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
- Panic: file index-mail-headers.c
May 31 18:38:20 pop07 dovecot: imap(user3@email.com) session=<i5VgbaLD1f5QEZQ5>: Panic: file index-mail-headers.c: line 198 (index_mail_parse_header_init): assertion failed: (!mail->data.header_parser_initialized) May 31 18:38:20 pop07 dovecot: imap(user3@email.com) session=<i5VgbaLD1f5QEZQ5>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f73d1683ac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f73d1683bce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7f73d1690cde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7f73d1690d81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f73d15e225a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_parse_header_init+0x3b9) [0x7f73d1a11dc9] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_parse_headers_internal+0x2b) [0x7f73d1a127eb] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x19f) [0x7f73d1a15b9f] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7f73d19cb428] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x64) [0x7f73d19935a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77207) [0x7f73d19cb207] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_virtual_size+0x38) [0x7f73d1993158] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_save_finish+0x154) [0x7f73d19cc504] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_cancel+0x3e) [0x7f73d19a239e] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e215d2] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e22918] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e31614] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e2edc9] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e2eef4] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0x12b) [0x7f73d16a8d3b] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xcc) [0x7f73d16aa89c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x59) [0x7f73d16a9049] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7f73d16a9288] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f73d1613bb3] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e21202] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f73d11f1555] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e21405] May 31 18:38:20 pop07 dovecot: imap(user3@email.com) session=<i5VgbaLD1f5QEZQ5>: Fatal: master: service(imap): child 9786 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
Are already know bugs?
Thanks
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Hi!
Any chance you could collect coredumps for these and posting output of
gdb /usr/lib/dovecot/imap /path/to/core bt full
systemd-coredump can be used for this, and https://www.dovecot.org/bugreport-mail contains hints how to get core dumps otherwise.
Aki
On 31/05/2021 23:32 Alessio Cecchi alessio@skye.it wrote:
Hi,
when I check "doveadm log errors" I found some fatal error repeated many times by around the same users
<snip/>
Are already know bugs?
Thanks
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Hi,
I have captured a first core dump:
Jun 02 19:02:37 Panic: imap(user3@email.com) session=<w9aiAcvDmtIlnx0R>: file index-mail-headers.c: line 198 (index_mail_parse_header_init): assertion failed: (!mail->data.header_parser_initialized) Jun 02 19:02:37 Error: imap(user3@email.com) session=<w9aiAcvDmtIlnx0R>: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f8a36238ac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f8a36238bce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7f8a36245cde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7f8a36245d81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f8a3619725a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_parse_header_init+0x3b9) [0x7f8a365c6dc9] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_parse_headers_internal+0x2b) [0x7f8a365c77eb] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x19f) [0x7f8a365cab9f] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7f8a36580428] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x64) [0x7f8a365485a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77207) [0x7f8a36580207] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_virtual_size+0x38) [0x7f8a36548158] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_save_finish+0x154) [0x7f8a36581504] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_cancel+0x3e) [0x7f8a3655739e] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cb55d2] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cb6918] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cc5614] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cc2dc9] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cc2ef4] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0x12b) [0x7f8a3625dd3b] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xcc) [0x7f8a3625f89c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x59) [0x7f8a3625e049] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7f8a3625e288] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f8a361c8bb3] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cb5202] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f8a35da6555] -> dovecot/imap user3@email.com 45.7629.17 APPEND [0x561344cb5405] Jun 02 19:02:37 Fatal: imap(user3@email.com) session=<w9aiAcvDmtIlnx0R>: master: service(imap): child 31649 killed with signal 6 (core dumped)
[root@popimap ~]# gdb /usr/libexec/dovecot/imap /var/core/core.imap.31649
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/libexec/dovecot/imap...Reading symbols from
/usr/lib/debug/usr/libexec/dovecot/imap.debug...done.
done.
[New LWP 31649]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `dovecot/imap [user3@cs-ins'.
Program terminated with signal 6, Aborted.
#0 0x00007f8a35dba387 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
bzip2-libs-1.0.6-13.el7.x86_64 expat-2.1.0-12.el7.x86_64
glibc-2.17-324.el7_9.x86_64 libgcc-4.8.5-44.el7.x86_64
libzstd-1.4.9-1.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64
zlib-1.2.7-19.el7_9.x86_64
(gdb) bt full
#0 0x00007f8a35dba387 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007f8a35dbba78 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x00007f8a36245c97 in default_fatal_finish (status=0,
type=<optimized out>) at failures.c:459
backtrace = 0x5613451213d0
"/usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42)
[0x7f8a36238ac2] ->
/usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f8a36238bce]
-> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0"...
recursed = 0
#3 fatal_handler_real (ctx=<optimized out>, format=<optimized out>,
args=<optimized out>) at failures.c:471
status = 0
#4 0x00007f8a36245d81 in i_internal_fatal_handler (ctx=<optimized out>,
format=<optimized out>, args=<optimized out>)
at failures.c:866
No locals.
#5 0x00007f8a3619725a in i_panic (format=format@entry=0x7f8a3660dd20
"file %s: line %d (%s): assertion failed: (%s)")
at failures.c:523
ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0,
timestamp_usecs = 0, log_prefix = 0x0,
log_prefix_type_pos = 0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area =
0x7ffd6e029ce0, reg_save_area = 0x7ffd6e029c20}}
#6 0x00007f8a365c6dc9 in index_mail_parse_header_init
(mail=mail@entry=0x56134519fc58, headers=headers@entry=0x0)
at index-mail-headers.c:198
data = 0x56134519fde8
match = <optimized out>
i = <optimized out>
field_idx = <optimized out>
match_count = <optimized out>
__func__ = "index_mail_parse_header_init"
#7 0x00007f8a365c77eb in index_mail_parse_headers_internal
(mail=mail@entry=0x56134519fc58, headers=headers@entry=0x0)
at index-mail-headers.c:448
data = 0x56134519fde8
__func__ = "index_mail_parse_headers_internal"
#8 0x00007f8a365cab9f in index_mail_init_stream
(mail=mail@entry=0x56134519fc58, hdr_size=hdr_size@entry=0x7ffd6e029e90,
body_size=body_size@entry=0x7ffd6e029eb0,
stream_r=stream_r@entry=0x7ffd6e029e88) at index-mail.c:1352
_mail = 0x56134519fc58
data = 0x56134519fde8
input = <optimized out>
has_nuls = false
body_size_from_stream = false
ret = <optimized out>
want_attachment_kw = true
#9 0x00007f8a36580428 in maildir_mail_get_stream (_mail=0x56134519fc58,
get_body=<optimized out>, hdr_size=0x7ffd6e029e90,
body_size=0x7ffd6e029eb0, stream_r=0x7ffd6e029e88) at
maildir-mail.c:622
mail = 0x56134519fc58
---Type <return> to continue, or q <return> to quit---
mbox = <optimized out>
data = 0x56134519fde8
deleted = <optimized out>
#10 0x00007f8a365485a4 in mail_get_stream_because
(mail=mail@entry=0x56134519fc58, hdr_size=hdr_size@entry=0x7ffd6e029e90,
body_size=body_size@entry=0x7ffd6e029eb0,
reason=reason@entry=0x7f8a3660dc43 "mail stream",
stream_r=stream_r@entry=0x7ffd6e029e88) at mail.c:282
_data_stack_cur_id = 7
p = 0x56134519fc58
ret = <optimized out>
__func__ = "mail_get_stream_because"
#11 0x00007f8a3654864f in mail_get_stream
(mail=mail@entry=0x56134519fc58, hdr_size=hdr_size@entry=0x7ffd6e029e90,
body_size=body_size@entry=0x7ffd6e029eb0,
stream_r=stream_r@entry=0x7ffd6e029e88) at mail.c:265
No locals.
#12 0x00007f8a36580207 in maildir_mail_get_virtual_size
(_mail=0x56134519fc58, size_r=0x5613451a4c40) at maildir-mail.c:413
mbox = <optimized out>
mail = 0x56134519fc58
data = 0x56134519fde8
hdr_size = {physical_size = 94640763388200, virtual_size =
94640763713152, lines = 1159209968}
body_size = {physical_size = 94640763713152, virtual_size =
94640763713152, lines = 1159020840}
input = 0x56134515c528
old_offset = 0
__func__ = "maildir_mail_get_virtual_size"
#13 0x00007f8a36548158 in mail_get_virtual_size (mail=0x56134519fc58,
size_r=0x5613451a4c40) at mail.c:176
_data_stack_cur_id = 6
p = 0x56134519fc58
ret = <optimized out>
#14 0x00007f8a36581504 in maildir_save_finish_real (_ctx=0x5613451a4a08)
at maildir-save.c:563
ctx = 0x5613451a4a08
storage = 0x56134515c528
output_errno = <optimized out>
path = 0x561345121038
"/home/vmail/nas00/domains/I/email.com/user3/Maildir/.Sent/tmp/1622651557.M210317P31649.popimap.mailserver.net"
output_errstr = <optimized out>
real_size = <optimized out>
size = 0
#15 maildir_save_finish (ctx=0x5613451a4a08) at maildir-save.c:634
_data_stack_cur_id = 5
#16 0x00007f8a3655739e in mailbox_save_cancel (_ctx=<optimized out>) at
mail-storage.c:2683
ctx = <optimized out>
#17 0x0000561344cb55d2 in cmd_append_finish
(ctx=ctx@entry=0x561345159540) at cmd-append.c:144
__func__ = "cmd_append_finish"
#18 0x0000561344cb6918 in cmd_append_continue_message
(cmd=0x5613451593a8) at cmd-append.c:886
---Type <return> to continue, or q <return> to quit---
lit_offset = <optimized out>
client = 0x561345154128
ctx = 0x561345159540
ret = <optimized out>
#19 0x0000561344cc5614 in command_exec (cmd=0x5613451593a8) at
imap-commands.c:201
hook = 0x56134512c630
finished = <optimized out>
__func__ = "command_exec"
#20 0x0000561344cc2dc9 in client_command_cancel
(_cmd=_cmd@entry=0x7ffd6e02a0c0) at imap-client.c:267
cmd = 0x5613451593a8
cmd_ret = <optimized out>
#21 0x0000561344cc2ef4 in client_default_destroy (client=0x561345154128,
reason=0x561344cd9470 "Disconnected for inactivity")
at imap-client.c:455
cmd = 0x5613451593a8
__func__ = "client_default_destroy"
#22 0x00007f8a3625dd3b in io_loop_handle_timeouts_real
(ioloop=0x56134512a030) at ioloop.c:681
timeout = 0x561345159300
tv_old = {tv_sec = 1622651562, tv_usec = 154561}
tv = {tv_sec = 0, tv_usec = 0}
tv_call = {tv_sec = 1622653357, tv_usec = 246247}
t_id = 3
item = 0x561345159300
diff_usecs = <optimized out>
#23 io_loop_handle_timeouts (ioloop=ioloop@entry=0x56134512a030) at
ioloop.c:695
_data_stack_cur_id = 2
#24 0x00007f8a3625f89c in io_loop_handler_run_internal
(ioloop=ioloop@entry=0x56134512a030) at ioloop-epoll.c:195
ctx = 0x56134512acb0
events = <optimized out>
list = <optimized out>
io = <optimized out>
tv = {tv_sec = 1795, tv_usec = 60554}
events_count = 7
msecs = 1795061
ret = 0
i = <optimized out>
call = <optimized out>
__func__ = "io_loop_handler_run_internal"
#25 0x00007f8a3625e049 in io_loop_handler_run
(ioloop=ioloop@entry=0x56134512a030) at ioloop.c:766
__func__ = "io_loop_handler_run"
#26 0x00007f8a3625e288 in io_loop_run (ioloop=0x56134512a030) at
ioloop.c:739
__func__ = "io_loop_run"
#27 0x00007f8a361c8bb3 in master_service_run (service=0x561345129e90,
callback=callback@entry=0x561344cd2220
Il 01/06/21 07:24, Aki Tuomi ha scritto:
Hi!
Any chance you could collect coredumps for these and posting output of
gdb /usr/lib/dovecot/imap /path/to/core bt full
systemd-coredump can be used for this, and https://www.dovecot.org/bugreport-mail contains hints how to get core dumps otherwise.
Aki
On 31/05/2021 23:32 Alessio Cecchi alessio@skye.it wrote:
Hi,
when I check "doveadm log errors" I found some fatal error repeated many times by around the same users
<snip/>
Are already know bugs?
Thanks
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Hi,
just for info, this bug is still present in Dovecot 2.3.16 (7e2e900c1a)
Thanks
Il 02/06/21 19:21, Alessio Cecchi ha scritto:
Hi,
I have captured a first core dump:
Jun 02 19:02:37 Panic: imap(user3@email.com) session=<w9aiAcvDmtIlnx0R>: file index-mail-headers.c: line 198 (index_mail_parse_header_init): assertion failed: (!mail->data.header_parser_initialized)
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Hi,
here another core dump for a different crash:
Jun 03 15:01:05 Panic: imap(user2@email.com) session=<G4j1KtzD1vW5HrcI>: file imap-bodystructure.c: line 209 (part_write_body): assertion failed: (text == ((part->flags & MESSAGE_PART_FLAG_TEXT) != 0)) Jun 03 15:01:05 Error: imap(user2@email.com) session=<G4j1KtzD1vW5HrcI>: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7ff2c4fa2ac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7ff2c4fa2bce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7ff2c4fafcde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7ff2c4fafd81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7ff2c4f0125a] -> /usr/lib64/dovecot/libdovecot.so.0(imap_bodystructure_write+0x263) [0x7ff2c4f78a53] -> /usr/lib64/dovecot/libdovecot.so.0(+0xbcca3) [0x7ff2c4f78ca3] -> /usr/lib64/dovecot/libdovecot.so.0(imap_bodystructure_write+0x28a) [0x7ff2c4f78a7a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc0aa7) [0x7ff2c5333aa7] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc1563) [0x7ff2c5334563] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc190e) [0x7ff2c533490e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x332) [0x7ff2c5334d32] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7ff2c52ea428] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x64) [0x7ff2c52b25a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_prefetch+0x96) [0x7ff2c5335bc6] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_prefetch+0x2e) [0x7ff2c52b1e4e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc98cd) [0x7ff2c533c8cd] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x110) [0x7ff2c533ce30] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x22) [0x7ff2c52c0aa2] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x3d) [0x7ff2c52c0b0d] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9b31dc] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9b46e5] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9a47ed] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9b1614] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9af502] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9af591] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9af759] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9afa15] -> dovecot/imap user2@email.com 95.87.183.8 UID fetch [0x55993e9afff9] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) [0x7ff2c4fc7f45] Jun 03 15:01:05 Fatal: imap(user2@email.com) session=<G4j1KtzD1vW5HrcI>: master: service(imap): child 4356 killed with signal 6 (core dumped)
[root@popimap ~]# gdb /usr/libexec/dovecot/imap /var/core/core.imap.4356
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/libexec/dovecot/imap...Reading symbols from
/usr/lib/debug/usr/libexec/dovecot/imap.debug...done.
done.
[New LWP 4356]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `dovecot/imap [user2@email.c'.
Program terminated with signal 6, Aborted.
#0 0x00007ff2c4b24387 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
bzip2-libs-1.0.6-13.el7.x86_64 expat-2.1.0-12.el7.x86_64
glibc-2.17-324.el7_9.x86_64 libgcc-4.8.5-44.el7.x86_64
libzstd-1.4.9-1.el7.x86_64 xz-libs-5.2.2-1.el7.x86_64
zlib-1.2.7-19.el7_9.x86_64
(gdb) bt full
#0 0x00007ff2c4b24387 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007ff2c4b25a78 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x00007ff2c4fafc97 in default_fatal_finish (status=0,
type=<optimized out>) at failures.c:459
backtrace = 0x55993f0e3678
"/usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42)
[0x7ff2c4fa2ac2] ->
/usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7ff2c4fa2bce]
-> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0"...
recursed = 0
#3 fatal_handler_real (ctx=<optimized out>, format=<optimized out>,
args=<optimized out>) at failures.c:471
status = 0
#4 0x00007ff2c4fafd81 in i_internal_fatal_handler (ctx=<optimized out>,
format=<optimized out>, args=<optimized out>)
at failures.c:866
No locals.
#5 0x00007ff2c4f0125a in i_panic (format=format@entry=0x7ff2c4ff1730
"file %s: line %d (%s): assertion failed: (%s)")
at failures.c:523
ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0,
timestamp_usecs = 0, log_prefix = 0x0,
log_prefix_type_pos = 0}
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area =
0x7ffccbc96b70, reg_save_area = 0x7ffccbc96ab0}}
#6 0x00007ff2c4f78a53 in part_write_body (extended=true,
str=0x55993f1c4378, part=0x55993f1c3ea0) at imap-bodystructure.c:209
data = 0x55993f1c4290
text = false
#7 imap_bodystructure_write (part=0x55993f1c3ea0, dest=0x55993f1c4378,
extended=<optimized out>) at imap-bodystructure.c:266
No locals.
#8 0x00007ff2c4f78ca3 in part_write_bodystructure_siblings
(part=0x55993f1c3ea0, dest=dest@entry=0x55993f1c4378, extended=true)
at imap-bodystructure.c:69
No locals.
#9 0x00007ff2c4f78a7a in part_write_body_multipart (part=<optimized
out>, part=<optimized out>, extended=<optimized out>,
str=0x55993f1c4378) at imap-bodystructure.c:122
data = 0x55993f1c3f48
#10 imap_bodystructure_write (part=<optimized out>, dest=0x55993f1c4378,
extended=<optimized out>) at imap-bodystructure.c:264
No locals.
#11 0x00007ff2c5333aa7 in index_mail_body_parsed_cache_bodystructure
(mail=0x55993f1c31c8, field=MAIL_CACHE_FLAGS)
at index-mail.c:859
_mail = 0x55993f1c31c8
data = 0x55993f1c3358
cache_field_parts = <optimized out>
cache_field_body = 6
cache_field_bodystructure = <optimized out>
dec = <optimized out>
str = 0x55993f1c4378
bodystructure_cached = false
plain_bodystructure = <optimized out>
---Type <return> to continue, or q <return> to quit---
cache_bodystructure = <optimized out>
cache_body = <optimized out>
__func__ = "index_mail_body_parsed_cache_bodystructure"
#12 0x00007ff2c5334563 in index_mail_parse_body_finish
(mail=mail@entry=0x55993f1c31c8, field=field@entry=MAIL_CACHE_FLAGS,
success=success@entry=true) at index-mail.c:1203
parser_input = 0x0
mail_set = 0x55993f111eb8
error = 0x0
ret = <optimized out>
__func__ = "index_mail_parse_body_finish"
#13 0x00007ff2c533490e in index_mail_parse_body
(mail=mail@entry=0x55993f1c31c8, field=field@entry=MAIL_CACHE_FLAGS)
at index-mail.c:1278
data = 0x55993f1c3358
old_offset = 2148
ret = 0
__func__ = "index_mail_parse_body"
#14 0x00007ff2c5334d32 in index_mail_init_stream
(mail=mail@entry=0x55993f1c31c8, hdr_size=hdr_size@entry=0x0,
body_size=body_size@entry=0x0,
stream_r=stream_r@entry=0x7ffccbc96e00) at index-mail.c:1376
_mail = 0x55993f1c31c8
data = 0x55993f1c3358
input = <optimized out>
has_nuls = false
body_size_from_stream = false
ret = <optimized out>
want_attachment_kw = true
#15 0x00007ff2c52ea428 in maildir_mail_get_stream (_mail=0x55993f1c31c8,
get_body=<optimized out>, hdr_size=0x0, body_size=0x0,
stream_r=0x7ffccbc96e00) at maildir-mail.c:622
mail = 0x55993f1c31c8
mbox = <optimized out>
data = 0x55993f1c3358
deleted = <optimized out>
#16 0x00007ff2c52b25a4 in mail_get_stream_because
(mail=mail@entry=0x55993f1c31c8, hdr_size=hdr_size@entry=0x0,
body_size=body_size@entry=0x0, reason=reason@entry=0x7ff2c538c690
"prefetch", stream_r=stream_r@entry=0x7ffccbc96e00)
at mail.c:282
_data_stack_cur_id = 5
p = 0x55993f1c31c8
ret = <optimized out>
__func__ = "mail_get_stream_because"
#17 0x00007ff2c5335bc6 in index_mail_prefetch (_mail=0x55993f1c31c8) at
index-mail.c:2103
mail = 0x55993f1c31c8
storage = <optimized out>
input = 0x1
---Type <return> to continue, or q <return> to quit---
len = <optimized out>
fd = <optimized out>
#18 0x00007ff2c52b1e4e in mail_prefetch (mail=mail@entry=0x55993f1c31c8)
at mail.c:75
_data_stack_cur_id = 4
p = 0x55993f1c31c8
ret = <optimized out>
#19 0x00007ff2c533c8cd in search_more_with_prefetching
(mail_r=<optimized out>, ctx=<optimized out>) at index-search.c:1726
count = <optimized out>
ret = 1
mail = 0x55993f1c31c8
mails = <optimized out>
#20 search_more (ctx=ctx@entry=0x55993f1446f0,
mail_r=mail_r@entry=0x7ffccbc96ef0) at index-search.c:1788
imail = <optimized out>
ret = <optimized out>
#21 0x00007ff2c533ce30 in index_storage_search_next_nonblock
(_ctx=0x55993f1446f0, mail_r=0x55993f11b5a0,
tryagain_r=0x7ffccbc96f57) at index-search.c:1816
mail = 0x7ffc0000007c
seq = 21913
ret = <optimized out>
#22 0x00007ff2c52c0aa2 in mailbox_search_next_nonblock (ctx=<optimized
out>, mail_r=<optimized out>, tryagain_r=<optimized out>)
at mail-storage.c:2290
box = <optimized out>
#23 0x00007ff2c52c0b0d in mailbox_search_next (ctx=<optimized out>,
mail_r=<optimized out>) at mail-storage.c:2275
tryagain = false
#24 0x000055993e9b31dc in imap_fetch_more_int
(ctx=ctx@entry=0x55993f11b538, cancel=false) at imap-fetch.c:536
state = 0x55993f11b590
client = 0x55993f1160e8
handlers = 0x55993f142ed0
count = <optimized out>
ret = <optimized out>
__func__ = "imap_fetch_more_int"
#25 0x000055993e9b46e5 in imap_fetch_more (ctx=0x55993f11b538,
cmd=cmd@entry=0x55993f11b358) at imap-fetch.c:617
ret = <optimized out>
__func__ = "imap_fetch_more"
#26 0x000055993e9a47ed in cmd_fetch (cmd=0x55993f11b358) at cmd-fetch.c:337
client = 0x55993f1160e8
ctx = 0x55993f11b538
args = 0x55993f135a68
next_arg = <optimized out>
list_arg = 0x7ffccbc9708f
search_args = 0x0
qresync_args = {qresync_sample_seqset = 0x55993f0e3308,
qresync_sample_uidset = 0x7ff2c4ffdaff}
---Type <return> to continue, or q <return> to quit---
messageset = 0x55993f135bd8 "7238"
send_vanished = <optimized out>
ret = <optimized out>
#27 0x000055993e9b1614 in command_exec (cmd=0x55993f11b358) at
imap-commands.c:201
hook = 0x55993f0ee630
finished = <optimized out>
__func__ = "command_exec"
#28 0x000055993e9af502 in client_command_input (cmd=0x55993f11b358) at
imap-client.c:1204
client = 0x55993f1160e8
command = <optimized out>
tag = 0x7ff2c4fe8115
Let me knok if you need more details. Thanks
Il 01/06/21 07:24, Aki Tuomi ha scritto:
Hi!
Any chance you could collect coredumps for these and posting output of
gdb /usr/lib/dovecot/imap /path/to/core bt full
systemd-coredump can be used for this, and https://www.dovecot.org/bugreport-mail contains hints how to get core dumps otherwise.
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
On 31/05/2021 22:32 Alessio Cecchi alessio@skye.it wrote:
Hi,
when I check "doveadm log errors" I found some fatal error repeated many times by around the same users
- Panic: file message-part-data.c
May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Error: Mailbox INBOX: UID=3454: imap_bodystructure_parse() failed: message_part lines doesn't match lines in BODYSTRUCTURE May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Error: Mailbox INBOX: UID=3454: imap_bodystructure_parse() failed: message_part lines doesn't match lines in BODYSTRUCTURE May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Panic: file message-part-data.c: line 579 (message_part_is_attachment): assertion failed: (data != NULL) May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f294d7fdac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f294d7fdbce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7f294d80acde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7f294d80ad81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f294d75c25a] -> /usr/lib64/dovecot/libdovecot.so.0(+0xd377d) [0x7f294d7ea77d] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x3ecbc) [0x7f294db0ccbc] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x3eca4) [0x7f294db0cca4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_set_attachment_keywords+0xe7) [0x7f294db0dd17] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc15a4) [0x7f294db8f5a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc190e) [0x7f294db8f90e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x332) [0x7f294db8fd32] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7f294db45428] -> /usr/lib64/dovecot/libdovecot-storage.soindex-mail-headers.c.0(mail_get_hdr_stream_because+0x5b) [0x7f294db0d6ab] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_get_header_stream+0x18a) [0x7f294db8d68a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_header_stream+0x53) [0x7f294db0d493] -> /usr/lib64/dovecot/libdovecot-storage.so.0(imap_msgpart_open+0x5aa) [0x7f294dbd20aa] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7fd5ae] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7fb0ac] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7fc6e5] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7ec7ed] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f9614] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7502] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7591] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7759] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7a15] -> dovecot/imap user1@email.com 18.123.45.76 UID FETCH [0x5568ba7f7ff9] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) [0x7f294d822f45] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x12b) [0x7f294d8248fb] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x59) [0x7f294d823049] May 31 21:03:46 pop08 dovecot: imap(user1@email.com) session=<tON64qTDu8OXFBVM>: Fatal: master: service(imap): child 21483 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
- Panic: file imap-bodystructure.c
May 31 12:06:05 pop01 dovecot: imap(user2@email.com) session=<3b6TX53DetK5HrcI>: Panic: file imap-bodystructure.c: line 209 (part_write_body): assertion failed: (text == ((part->flags & MESSAGE_PART_FLAG_TEXT) != 0)) May 31 12:06:05 pop01 dovecot: imap(user2@email.com) session=<3b6TX53DetK5HrcI>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7fe4e8000ac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7fe4e8000bce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7fe4e800dcde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7fe4e800dd81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fe4e7f5f25a] -> /usr/lib64/dovecot/libdovecot.so.0(imap_bodystructure_write+0x263) [0x7fe4e7fd6a53] -> /usr/lib64/dovecot/libdovecot.so.0(+0xbcca3) [0x7fe4e7fd6ca3] -> /usr/lib64/dovecot/libdovecot.so.0(imap_bodystructure_write+0x28a) [0x7fe4e7fd6a7a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc0aa7) [0x7fe4e8391aa7] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc1563) [0x7fe4e8392563] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc190e) [0x7fe4e839290e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x332) [0x7fe4e8392d32] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7fe4e8348428] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x64) [0x7fe4e83105a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_prefetch+0x96) [0x7fe4e8393bc6] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_prefetch+0x2e) [0x7fe4e830fe4e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xc98cd) [0x7fe4e839a8cd] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x110) [0x7fe4e839ae30] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x22) [0x7fe4e831eaa2] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x3d) [0x7fe4e831eb0d] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e121dc] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e136e5] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e037ed] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e10614] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0e502] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0e591] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0e759] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0ea15] -> dovecot/imap user2@email.com 89.45.183.8 UID fetch [0x5649a2e0eff9] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x65) [0x7fe4e8025f45] May 31 12:06:05 pop01 dovecot: imap(user2@email.com) session=<3b6TX53DetK5HrcI>: Fatal: master: service(imap): child 29622 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
- Panic: file index-mail-headers.c
May 31 18:38:20 pop07 dovecot: imap(user3@email.com) session=<i5VgbaLD1f5QEZQ5>: Panic: file index-mail-headers.c: line 198 (index_mail_parse_header_init): assertion failed: (!mail->data.header_parser_initialized) May 31 18:38:20 pop07 dovecot: imap(user3@email.com) session=<i5VgbaLD1f5QEZQ5>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f73d1683ac2] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f73d1683bce] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3cde) [0x7f73d1690cde] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf3d81) [0x7f73d1690d81] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f73d15e225a] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_parse_header_init+0x3b9) [0x7f73d1a11dc9] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_parse_headers_internal+0x2b) [0x7f73d1a127eb] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_init_stream+0x19f) [0x7f73d1a15b9f] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77428) [0x7f73d19cb428] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x64) [0x7f73d19935a4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x77207) [0x7f73d19cb207] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_get_virtual_size+0x38) [0x7f73d1993158] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_save_finish+0x154) [0x7f73d19cc504] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_cancel+0x3e) [0x7f73d19a239e] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e215d2] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e22918] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e31614] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e2edc9] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e2eef4] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0x12b) [0x7f73d16a8d3b] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xcc) [0x7f73d16aa89c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x59) [0x7f73d16a9049] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7f73d16a9288] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f73d1613bb3] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e21202] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f73d11f1555] -> dovecot/imap user3@email.com 35.67.148.57 APPEND [0x558743e21405] May 31 18:38:20 pop07 dovecot: imap(user3@email.com) session=<i5VgbaLD1f5QEZQ5>: Fatal: master: service(imap): child 9786 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
Are already know bugs?
Hi,
thank you for the coredumps, not all of the bugs are known it seems. I wonder if you could get a coredump for the "message-part-data.c" panic too?
Additionally it would be interesting to see the mail from INBOX of user1@email.com (UID=3454), that makes it crash. You could use one of the obsfuscate tools from https://www.dovecot.org/tools/ to provide .
The crash that occurred in imap-bodystructure.c is fixed in coming releases.
Markus
Thanks
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
participants (3)
-
Aki Tuomi
-
Alessio Cecchi
-
Markus Valentin