Hello

I added fts_mail_user_init / fts_mail_user_deinit

The dovecot does not break but gives warnings:

Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Timeout leak: 0x7f9c470c2a30 (mail-index-alloc-cache.c:265)
Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Raw backtrace for leaks: #0 io_loop_destroy[0x7f9c46f228c0] -> #1 master_service_deinit[0x7f9c46e96d40] -> #2 main[0x55c69d657a80] -> #3 __libc_start_main[0x7f9c46c67a50] -> #4 _start[0x55c69d658010]
Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Event 0x55c69d7d02b0 leaked (parent=0x55c69d7c9220): mail-cache.c:578
Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Event 0x55c69d7c9220 leaked (parent=0x55c69d7c0e20): mail-index.c:67
Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Event 0x55c69d7c0e20 leaked (parent=0x55c69d7b51d0): index-storage.c:405
Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Event 0x55c69d7c0120 leaked (parent=0x55c69d7c1ef0): mail-cache.c:578
Nov 1 12:56:35 gjserver dovecot[1191632]: imap(1191725): Warning: Event 0x55c69d7c1ef0 leaked (parent=0x55c69d7ee170): mail-index.c:67

Your help very welcome



On 2021-11-01 07:03, Aki Tuomi wrote:


On 31/10/2021 00:01 Juan Felipe Arjona <jfarjona@gmail.com> wrote:

 
Hello:


I just upgraded my Debian server with dovecot 2.3.17, and it breaks when 
using the plugin fts-xapian.

Apparently is a bug in Dovecot, please see:


https://github.com/grosjo/fts-xapian/issues/99


Thanks,


Juan

Hi!

This issue is due to a bug in fts-xapian. The plugin does not call fts_mail_user_init, causing the crash.

Aki