Hi,
THREAD REFS and THREAD REFERENCES crash the imap process (signal 11)
when the mailbox uses the imapc storage driver. THREAD ORDEREDSUBJECT,
SORT, SEARCH and ESEARCH on the same mailbox work fine.
Versions
- Front end (imapc): Dovecot 2.4.5-2+debian13 (0cbb641e3e) from
repo.dovecot.org ce-2.4-latest, Debian 13 (trixie), amd64
- Back end: Dovecot 2.4.1-4 (7d8c0e5759), mdbox
- We saw the same signal 11 crashes for a webmail user while the front
end was still on 2.4.1 (Debian 2.4.1+dfsg1-6), so I don't think this
is new in 2.4.5.
Relevant settings on the front end:
dovecot_config_version = 2.4.1
mail_driver = imapc (returned by userdb)
mail_path = ~/imapc (local index/cache on the front end)
imapc_host = <backend>
imapc_port = 993
imapc_ssl = imaps
imapc_user = %{user}
imapc_master_user = <master>
imapc_features = guid-forced no-search
The crash also happens without no-search:
"doveadm -o imapc_features=guid-forced exec imap ..." crashes the same
way.
Reproduce (any imapc user, any non-empty INBOX):
$ printf 'a SELECT INBOX\r\nb THREAD REFS UTF-8 ALL\r\nz LOGOUT\r\n' \
| doveadm exec imap -u [email protected]
...
a OK [READ-WRITE] Select completed
Segmentation fault (exit 139)
THREAD REFERENCES and UID THREAD REFS crash the same way. Over a normal
client connection the log shows only:
imap([email protected])<pid><session>: Fatal: master: service(imap):
child <pid> killed with signal 11 (core dumps disabled)
There is no panic or error line before it.
How we hit it: Roundcube in "Threads" list mode sends THREAD REFS, the
session dies and the folder shows as empty. As a workaround we removed
THREAD=REFS and THREAD=REFERENCES from imap_capability on the front end
and set imap_disabled_caps in Roundcube.
I don't have a backtrace yet (the front end is an unprivileged LXC
container, so the setuid imap children don't dump core). I can try to
get one if the repro above isn't enough.
--
Regards, Mark Constable :: +61 0419 530 037
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]