Virtual folders: Panic: file mail-index-sync.c

Andreas Tauscher ta at geuka.net
Thu Dec 21 00:20:01 EET 2017


Hi!

I have compiled Dovecot 2.33.2 and crated some virtual folders.
When I create a virtual folder for all flagged mails with
dovecot-virtual containing

*
  flagged

and I set in 15-mailboxes.conf

  mailbox virtual/Flagged {
    special_use = \Flagged
    comment = All flagged messages
    auto = subscribe
  }

The dovecot is crashing when any virtual folder is accessed:

Dec 21 01:07:59 mail dovecot: imap(transfer1 at shidolya.co.tz): Panic:
file mail-index-sync.c: line 413 (mail_index_sync_begin_to2): asserti
on failed: (!index->syncing)
Dec 21 01:07:59 mail dovecot: imap(test at test.local): Error: Raw
backtrace:/usr/lib/dovecot/libdovecot.so.0(+0x935c2) [0x7f4ead13
95c2] -> /usr/lib/dovecot/libdovecot.so.0(+0x936ad) [0x7f4ead1396ad] ->
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f4ead0c9f61] -> /u
sr/lib/dovecot/libdovecot-storage.so.0(+0xd4d4c) [0x7f4ead49ed4c] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_sync_begin_to+0x4
f) [0x7f4ead49ee2f] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mail_index_sync_begin+0x1c)
[0x7f4ead49eecc] -> /usr/lib/dovecot/modules/l
ib20_virtual_plugin.so(virtual_storage_sync_init+0x20e) [0x7f4eabe9904e]
-> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x4
4) [0x7f4ead4076a4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7f4ead407747] -> /usr/lib/dovecot/libdovecot-storage
.so.0(index_storage_get_status+0x31) [0x7f4ead481dd1] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x916d)
[0x7f4eabe9616d] -> /us
r/lib/dovecot/libdovecot-storage.so.0(+0x9ce81) [0x7f4ead466e81] ->
/usr/lib/dovecot/modules/lib01_acl_plugin.so(+0xd825) [0x7f4eac8d0825]
 -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_get_status+0x31)
[0x7f4ead407ae1] -> /usr/lib/dovecot/modules/lib20_virtual_plugin.so
(virtual_storage_sync_init+0x1096) [0x7f4eabe99ed6] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x44)
[0x7f4ead4076a4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7f4ead407747] ->
/usr/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31)
[0x7f4ead481dd1] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x916d)
[0x7f4eabe9616d] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x9ce81)
[0x7f4ead466e81] ->
/usr/lib/dovecot/modules/lib01_acl_plugin.so(+0xd825) [0x7f4eac8d0825]
-> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_get_status+0x31)
[0x7f4ead407ae1] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(virtual_storage_sync_init+0x1096)
[0x7f4eabe99ed6] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x44)
[0x7f4ead4076a4] ->
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x37)
[0x7f4ead407747] ->
/usr/lib/dovecot/libdovecot-storage.so.0(index_storage_get_status+0x31)
[0x7f4ead481dd1] ->
/usr/lib/dovecot/modules/lib20_virtual_plugin.so(+0x916d)
[0x7f4eabe9616d] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x9ce81)
[0x7f4ead466e81]

When I remove "auto = subscribe" everything working like expected.
I got this crash only if I use "flagged" in the virtual folder. Other
virtual folders like a unseen folder is working fine with "auto = subscribe"

Andreas


More information about the dovecot mailing list