Hello dear Ubuntu-Team,
this is my first error-bug-report, I hope to provide every needed information:
- System: Ubuntu 20.04.2 LTS
- Dovecot-Version: 2.3.7.2
Expected behavior: IMAP Search on Server
Received Error: Whenever I try a IMAP-search on the server (used tool: fairmail on Android) I get following error:
Aug 09 13:40:45 titan dovecot[737]: imap(<email address hidden>)<1073291><YnYI2x7JbZe8wj3S>: Panic: file message-parser.c: line 174 (message_part_finish): assertion failed: (ctx->nested_parts_count > 0)
Aug 09 13:40:45 titan dovecot[737]: imap(<email address hidden>)<1073291><YnYI2x7JbZe8wj3S>: Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0xf0c4b) [0x7fd039414c4b] -> /usr/lib/dovecot/libdovecot.so.0(+0xf0ce7) [0x7fd039414ce7] -> /usr/lib/dovecot/libdovecot.so.0(+0x54c1f) [0x7fd039378c1f] -> /usr/lib/dovecot/libdovecot.so.0(+0x51e81) [0x7fd039375e81] -> /usr/lib/dovecot/libdovecot.so.0(message_parser_parse_next_block+0x104) [0x7fd0393fa424] -> /usr/lib/dovecot/libdovecot.so.0(message_search_msg+0xa0) [0x7fd0393fc820] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xd614e) [0x7fd0395a714e] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x58959) [0x7fd039529959] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_search_args_foreach+0x4d) [0x7fd03952a84d] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xd6e98) [0x7fd0395a7e98] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xd822c) [0x7fd0395a922c] -> /usr/lib/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x11d) [0x7fd0395a998d] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x24) [0x7fd039534114] -> dovecot/imap(+0x2866f) [0x55a58740f66f] -> dovecot/imap(command_exec+0x6c) [0x55a587408a9c] -> dovecot/imap(+0x27c86) [0x55a58740ec86] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0xfb) [0x7fd03942ab1b] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xd0) [0x7fd03942c280] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x54) [0x7fd03942ada4] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x48) [0x7fd03942aef8] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x17) [0x7fd0393a9ab7] -> dovecot/imap(main+0x43e) [0x55a5873f9b0e] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fd0391530b3] -> dovecot/imap(_start+0x2e) [0x55a5873f9b9e]
Aug 09 13:40:45 titan dovecot[737]: imap(<email address hidden>)<1073291><YnYI2x7JbZe8wj3S>: Fatal: master: service(imap): child 1073291 killed with signal 6 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
As far as I can tell, this is a bug, already fixed in the upstream version. The same bug has been discussed already at debian bug tracker.
- Debian Bugreport: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970386
- Fix Upstream: https://github.com/dovecot/core/commit/a668d767a710ca18ab6e7177d8e8be22a6b024fb
Is it possible to also update / cherry-pick this fix for the dovecot-package for Ubuntu 20.04.2 LTS?
Please let me know if you need any further information.
Regards from Germany
Thanks for taking the time to file this bug and trying to make Ubuntu better.
The bug seems legit and it was already fixed in Debian, so we should do the same. In the Debian bug we have some more detailed instructions on how to reproduce this bug, it might be helpful when preparing the SRU. Since this is a "patch in a plate" situation I am adding the server-next tag.