Re: crash when adding IMAP folder

Vadim Zeitlin <[email protected]> Mon, 3 Nov 2025 23:36:51 +0100
Newsgroups gmane.mail.mahogany.user
Message-ID <[email protected]>
--===============1635359535329314679==
Content-Type: MULTIPART/SIGNED; protocol="application/pgp-signature"; micalg=pgp-sha1; BOUNDARY="8323329-2113903881-1762209411=:2598775"

--8323329-2113903881-1762209411=:2598775
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: INLINE

On Mon, 3 Nov 2025 23:48:30 +0200 Nerijus Baliunas via Mahogany-Users <maho=
[email protected]> wrote:

NB> I've got a problem opening IMAP subfolders after upgrading to dovecot 2=
.4. Inbox and first level
NB> subfolders open OK, any more nested folders give me this:
NB>=20
NB> 2025-11-03 23:41:57: Could not open mailbox 'IMAP Server/INBOX/Linux/ap=
cupsd'.
NB> 2025-11-03 23:41:57: The folder 'IMAP Server/INBOX/Linux/apcupsd' canno=
t be opened, it only contains=20
NB> the other folders and not the messages.

 I still haven't updated Dovecot to 2.4 on my own server so I can't test
this unfortunately. I'll probably do it relatively soon, but in the
meanwhile perhaps you can use "Debug =BB Toggle debug logging" to see what
IMAP commands are being sent/received? It's also possible to activate
Dovecot own debug logging if it can be simpler.

NB> After this Type=3D262147 changes to Type=3D1310723 in M config file.

 This corresponds to the bit 0x100000 (MF_FLAGS_NOSELECT) being turned on.

NB> So I deleted ~/.M and when I try to create IMAP foder in M it crashes:
NB>=20
NB> Thread 1 "M" received signal SIGSEGV, Segmentation fault.
NB> 0x0000000000634ed2 in reKey (key=3D0x7fffffff5c00) at .src/util/twofish=
2.c:728
NB> 728=09=09}
...
NB> (gdb) bt
NB> #0  0x0000000000634ed2 in reKey (key=3D0x7fffffff5c00) at .src/util/two=
fish2.c:728
NB> #1  0x5778772f5d3f713f in ??? ()
NB> #2  0x332e73777f747e79 in ??? ()
NB> #3  0x6764695768673f23 in ??? ()
NB> #4  0x6c636e693f636475 in ??? ()
NB> #5  0x732f78773f757465 in ??? ()
NB> #6  0x6772617271666264 in ??? ()
NB> #7  0x000000001010783e in ??? ()
NB> #8  0x0000000210101010 in ??? ()
NB> #9  0x0000005910101035 in ??? ()
NB> #10 0x000000251010103d in ??? ()
NB> #11 0x0000002d1010107d in ??? ()
NB> #12 0x00000000000000ff in ??? ()
NB> #13 0x0000000000000000 in ??? ()
NB>=20
NB> I did not download any additional debuginfos, should I?

 Yes, please. But you also need M binary with debug information to get
anything useful out of this crash. FWIW I don't think IMAP folder creation
_always_ crashes, I created a new folder (albeit as a subfolder of an
existing one) relatively recently without any problems, so I probably won't
be able to reproduce it...

 Regards,
VZ

--8323329-2113903881-1762209411=:2598775
Content-Type: APPLICATION/PGP-SIGNATURE

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaQkugwAKCRAG6kHeT2we
hroGAJ93OysWjo0bfq0AurDzqM8xwIYRUgCfXo0LxrmUezz9hakbMMi2ntSjrMA=
=uQY0
-----END PGP SIGNATURE-----

--8323329-2113903881-1762209411=:2598775--


--===============1635359535329314679==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1635359535329314679==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mahogany-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

--===============1635359535329314679==--