mbsync segfaults when syncing multiple Stores which use the same IMAPAccount (?)
mailbox synchronizer
Brought to you by:
ossi
I have a IMAP account where I have what I believe to be "shared namespace", see https://www.cyrusimap.org/imap/concepts/features/namespaces.html
Hence, there are 2 namespace of interest: INBOX and user
By default, selects INBOX, which contains my personal mail.
To get the user namespace synced, I created another Channel/MaildirStore/IMAPStore for the same account, where I specify the Path "user" in the IMAPStore.
If I try to call mbsync -a, I get a segfault. I attached a trace to mbsync -a -l -D.
Config file
gdb backtrace + some commands. Debugging it a little, it seems tht the ctx->boxes contains "trr154/team5" and "!", the former being the last box for the INBOX namespace. The segfault happens because the next element of the "!" box points to an invalid address (0x100000001).
Note that I can everything working by invoking
mbsync wias && mbsync wias-sharedclearly, there is something very wrong with store recycling.
btw, that shared Store's Path should be "user." - otherwise all your local folders should be prefixed with a dot.
Sorry for the messy title, I clicked too soon and sourceforge doesn't let me edit it.
Thanks for your suggestion, there is indeed a dot. However, if I use your suggestion in the IMAPStore IMAPStore, I get the following error (for each mailbox)
Error: channel wias-shared: master /fbp2020reg cannot be opened.It somehow still synchronizes. Am I missing something?
i wouldn't know right away.
if this happens when syncing just that channel (i.e., it's independent of the bug here), then i suggest you make another bug report.
I couldn't reproduce the error with "user." today. Sorry for the noise