Closed edvil closed 1 year ago
Thank you for your report.
Key portion of your log:
Nov 17 13:48:18 doveadm(user@domain.tld): Panic: file fts-filter.c: line 137 (fts_filter_filter): assertion failed: ((*token)[0] != '\0') Nov 17 13:48:18 doveadm(user@domain.tld): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f0ab16ba582] -> /usr/lib/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f0ab16ba69e] -> /usr/lib/dovecot/libdovecot.so.0(+0x1022fb) [0x7f0ab16c72fb] -> /usr/lib/dovecot/libdovecot.so.0(+0x102331) [0x7f0ab16c7331] -> /usr/lib/dovecot/libdovecot.so.0(+0x55589) [0x7f0ab161a589] -> /usr/lib/dovecot/modules/lib20_fts_plugin.so(+0xa40a) [0x7f0ab0f1440a] -> /usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_filter_filter+0x27) [0x7f0ab0f1f447] -> /usr/lib/dovecot/modules/lib20_fts_plugin.so(+0xbc5b) [0x7f0ab0f15c5b] -> /usr/lib/dovecot/modules/lib20_fts_plugin.so(+0xbef5) [0x7f0ab0f15ef5] -> /usr/lib/dovecot/modules/lib20_fts_plugin.so(fts_build_mail+0x5df) [0x7f0ab0f167af] -> /usr/lib/dovecot/modules/lib20_fts_plugin.so(+0x126c8) [0x7f0ab0f1c6c8] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_precache+0x30) [0x7f0ab17e9fb0] -> doveadm(+0x39df7) [0x557302f5cdf7] -> doveadm(+0x34a45) [0x557302f57a45] -> doveadm(doveadm_cmd_ver2_to_mail_cmd_wrapper+0x2ca) [0x557302f58afa] -> doveadm(doveadm_cmd_run_ver2+0x501) [0x557302f691b1] -> doveadm(doveadm_cmd_try_run_ver2+0x3a) [0x557302f6922a] -> doveadm(main+0x1d4) [0x557302f47e24] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f0ab1275d0a] -> doveadm(_start+0x2a) [0x557302f4808a]
As indicated by these two lines, the program is crashing in the FTS filtering code (lib-fts, specifically). This is the core Dovecot code that filters/tokenizes terms before it is passed to a FTS backend driver, such as flatcurve. Specifically, this is erroring out in an assert for a non-empty string that has a NULL as the first character.
Thus, this is not an issue with flatcurve but is instead an issue with core Dovecot and should be reported there. If possible, isolate the problem message (it appears to be either UID 1517 or maybe UID 1518 in the mailbox) to make reporting and debugging easier. You could also try to play with your list of configured fts_filters to see if you can isolate which filter, or combo of filters, is causing the issue.
Confirmed with team that this is an issue with Dovecot core snowball filtering (not flatcurve). Fix/patch will appear in core soon. Closing.
I am currently testing dovecot-fts-flatcurve with dovecot 2.3.19.
I encountered the following error indexing my INBOX:
Dovecot configuration:
doveconf -n:
User configuration in sql:
I am using
mdbox
mailbox format.Thanks