I can confirm this crash on Debian 13 (trixie) with:
and also with
dovecot-core 2:2.4.2-2+debian13
The crash is reproducible 100% on IMAP login when the trash plugin is
enabled.
Minimal configuration:
protocol imap {
mail_plugins {
trash = yes
}
}
Stack trace:
#0 lib11_trash_plugin.so
#1 hook_mail_namespaces_created
#2 mail_namespaces_init_finish
#3 mail_namespaces_init
Without the trash plugin enabled, dovecot runs normally.

