Re: bug#80607: 31.0.50; notmuch-search with long query crashes Wayland

Subject: Re: bug#80607: 31.0.50; notmuch-search with long query crashes Wayland

Date: Sat, 14 Mar 2026 07:59:31 +0900

To: Sean Whitton, 80607@debbugs.gnu.org

Cc: notmuch@notmuchmail.org

From: David Bremner


Sean Whitton <spwhitton@spwhitton.name> writes:

> X-debbugs-cc: notmuch@notmuchmail.org
>
> In 'emacs -q', after 'M-x load-library RET notmuch RET' (version 0.39)
> and with a populated notmuch database, evaluating the following form
> crashes Emacs and manages to bring down the entire Wayland compositor
> and systemd user session:
>
>     (notmuch-search "thread:00000000000a162e thread:00000000000a162e ...")
>
> where "..." is the same space-separated thread:00000000000a162e repeated
> until the query is around 2000 characters in length.
>

In case anyone other than me was curious, it seems to work fine in X11,
emacs 30.2, notmuch master.

One observation is that notmuch rather naively generates a buffer name
from the query, so it might be possible to duplicate the problem without
notmuch by generating a very long buffer name (possibly followed by some
operations like pop-buffer-to-same-window).




_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: