filiphanes / fts-elastic

ElasticSearch FTS implementation for the Dovecot mail server
Other
26 stars 16 forks source link

Dovecot crashes when searching virtual folders #19

Open sheckandar opened 2 years ago

sheckandar commented 2 years ago

OS: RedHat 8 Dovecot: 2.3.8

I compiled and installed the plugin and after searching normal folders, everything works fine. However, if I try to search a virtual folder, dovecot crashes.

Same issue on OpenSUSE 15.2 with Dovecot 2.3.16

Everything works fine when using Solr, virtual folders are searchable and Solr returns results.


2021-08-28 02:47:21 imap(***)<2208381><pDnUpZrKiONEknGC>: Fatal: master: service(imap): child 2208381 killed with signal 6 (core not dumped - https://dovecot.org/bugreport.html#coredumps - set /proc/sys/fs/suid_dumpable to 2)
2021-08-28 02:47:21 imap(***)<2208381><pDnUpZrKiONEknGC>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xf8cab) [0x7fa9da261cab] -> /usr/lib64/dovecot/libdovecot.so.0(+0xf8d47) [0x7fa9da261d47] -> /usr/lib64/dovecot/libdovecot.so.0(+0x55c1d) [0x7fa9da1bec1d] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x4655c) [0x7fa9da56555c] -> /usr/lib64/dovecot/lib21_fts_elastic_plugin.so(+0x40a5) [0x7fa9d77030a5] -> /usr/lib64/dovecot/lib20_fts_plugin.so(fts_backend_lookup_multi+0x15c) [0x7fa9d87955dc] -> /usr/lib64/dovecot/lib20_fts_plugin.so(+0x10306) [0x7fa9d879a306] -> /usr/lib64/dovecot/lib20_fts_plugin.so(fts_search_lookup+0xd8) [0x7fa9d879a758] -> /usr/lib64/dovecot/lib20_fts_plugin.so(+0x13308) [0x7fa9d879d308] -> dovecot/imap(imap_search_start+0x6e) [0x55781594069e] -> dovecot/imap(cmd_search+0xdd) [0x557815930ccd] -> dovecot/imap(command_exec+0x78) [0x557815938eb8] -> dovecot/imap(+0x2000f) [0x55781593700f] -> dovecot/imap(+0x200c3) [0x5578159370c3] -> dovecot/imap(+0x20282) [0x557815937282] -> dovecot/imap(client_handle_input+0x1b5) [0x557815937485] -> dovecot/imap(client_input+0x82) [0x5578159379c2] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x73) [0x7fa9da279413] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x135) [0x7fa9da27aac5] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x50) [0x7fa9da2794c0] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x48) [0x7fa9da279628] -> /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x17) [0x7fa9da1f0fd7] -> dovecot/imap(main+0x335) [0x5578159293e5] -> /lib64/libc.so.6(__libc_start_main+0xf3) [0x7fa9d98e1493] -> dovecot/imap(_start+0x2e) [0x55781592959e]
2021-08-28 02:47:21 imap(***)<2208381><pDnUpZrKiONEknGC>: Panic: file mail-storage.c: line 1990 (mailbox_get_open_status): assertion failed: (box->opened)
filiphanes commented 2 years ago

thanks for report, PR welcome, will need to fix this, probably this year