From: Alan Mackenzie <acm@muc.de>
To: martin rudalics <rudalics@gmx.at>
Cc: acm@muc.de, 47207@debbugs.gnu.org
Subject: bug#47207: 28.0.50; decode_next_window_args crash
Date: Thu, 15 Apr 2021 13:07:31 +0000 [thread overview]
Message-ID: <YHg6k94MDcoXB5z8@ACM> (raw)
In-Reply-To: <abb64c72-e8ef-95c0-45a5-1adf09b85b00@gmx.at>
Hello, Martin.
On Tue, Apr 13, 2021 at 19:12:41 +0200, martin rudalics wrote:
> > OK. There's a long-standing comment to the contrary in
> > choose_minibuf_frame (src/minibuf.c):
> > /* I don't think that any frames may validly have a null
> > * minibuffer window anymore. */
> > , so it looks like that comment is no longer valid. It needs
> > changing/removing and the code it annotates seems to want fixing. There
> > might well be other places in the earlier part of minibuf.c that assume
> > a non-null ->minibuffer_window.
> > Either the ->minibuffer_window of tootip frames must be given a sensible
> > non-null value (is this practicable and sensible?), or the code needs
> > fixing to not assume it.
> See
> https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00694.html
That's quite an involved thread. I've read through it, but can't
remember seeing a firm decision on how to fix the problem, or even if it
was fixed then.
The current problem in minibuf.c seems to be that we assume
f->minibuffer_window to be non-nil in several (~6) places, rather than
checking it.
In most of these places, if we detect NILP (f->m_w), we can simply skip
the action we were intending to take. This is certainly the case in the
bit that gave you the trouble in read_minibuf_unwind, where we're
stepping through all frames looking for the expired minibuffer.
It might well be that we never call do_switch_frame to a tool-tip frame,
for example. Do you know if this is the case? This could save some
checking code.
So, where do we go from here? I'm quite willing to make these changes
to minibuf.c. Would that be OK with everybody else?
> martin
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2021-04-15 13:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 8:45 bug#47207: 28.0.50; decode_next_window_args crash martin rudalics
2021-03-17 13:29 ` Eli Zaretskii
2021-03-17 15:36 ` martin rudalics
2021-03-17 15:48 ` Eli Zaretskii
2021-03-17 17:06 ` martin rudalics
2021-03-17 17:47 ` Eli Zaretskii
2021-03-17 18:01 ` martin rudalics
2021-03-17 18:15 ` Eli Zaretskii
2021-03-18 8:43 ` martin rudalics
2021-03-18 9:38 ` Eli Zaretskii
2021-03-18 15:51 ` martin rudalics
2021-03-18 16:49 ` Eli Zaretskii
2021-04-13 15:54 ` martin rudalics
2021-04-13 17:06 ` Alan Mackenzie
2021-04-13 17:12 ` martin rudalics
2021-04-15 13:07 ` Alan Mackenzie [this message]
2021-04-15 14:45 ` martin rudalics
2021-04-16 0:15 ` Gregory Heytings
2021-04-16 11:28 ` Alan Mackenzie
2021-04-16 14:42 ` martin rudalics
2021-04-18 8:01 ` martin rudalics
2021-04-13 17:37 ` Gregory Heytings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YHg6k94MDcoXB5z8@ACM \
--to=acm@muc.de \
--cc=47207@debbugs.gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.