Menu

#54 mbsync segfaults when syncing multiple Stores which use the same IMAPAccount (?)

1.3.1
fixed
None
1.3.3
5
2020-08-04
2020-02-29
No

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.

1 Attachments

Discussion

  • Olivier Huber

    Olivier Huber - 2020-02-29

    Config file

     
  • Olivier Huber

    Olivier Huber - 2020-02-29

    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).

     
  • Olivier Huber

    Olivier Huber - 2020-02-29

    Note that I can everything working by invoking mbsync wias && mbsync wias-shared

     
  • Oswald Buddenhagen

    • status: reported --> open
    • assigned_to: Oswald Buddenhagen
     
  • Oswald Buddenhagen

    clearly, 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.

     
  • Olivier Huber

    Olivier Huber - 2020-02-29

    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?

     
  • Oswald Buddenhagen

    • summary: mbsync segfaults with --> mbsync segfaults when syncing multiple Stores which use the same IMAPAccount (?)
     
  • Oswald Buddenhagen

    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.

     
  • Olivier Huber

    Olivier Huber - 2020-03-01

    I couldn't reproduce the error with "user." today. Sorry for the noise

     
  • Oswald Buddenhagen

    • status: open --> fixed
    • Fixed In: unknown --> 1.3.3
     

Log in to post a comment.