From: Eli Zaretskii <eliz@gnu.org>
To: Aaron Jensen <aaronjensen@gmail.com>
Cc: 44313@debbugs.gnu.org
Subject: bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash
Date: Fri, 30 Oct 2020 13:29:31 +0200 [thread overview]
Message-ID: <83a6w4ar50.fsf@gnu.org> (raw)
In-Reply-To: <CAHyO48x_tH9MQWxAmCaGvk5GRYNeBfQKBq7tW1R2oGQ7RkWTmw@mail.gmail.com> (message from Aaron Jensen on Fri, 30 Oct 2020 05:16:35 -0500)
> From: Aaron Jensen <aaronjensen@gmail.com>
> Date: Fri, 30 Oct 2020 05:16:35 -0500
> Cc: 44313@debbugs.gnu.org
>
> > if (f && FRAME_NS_P (f))
> >
> > So why does FRAME_NS_P crash? which part of the frame's structure are
> > invalid?
>
> I believe that macro is defined as:
>
> #define FRAME_NS_P(f) ((f)->output_method == output_ns)
>
> Would the de-reference cause an EXC_BAD_ACCESS if the frame had been released?
If f is non-NULL, I don't think it could case EXC_BAD_ACCESS, unless f
is garbled and points outside of the process's address space. Which
is why we need to see the value of f and whether the address it points
to could be accessed.
> I make use of child frames via the posframe packages. I wonder if
> something requested a mouse pixel position for a frame either as it
> was being released or after it was being released?
For this, we need to see the Lisp-level backtrace at the crash.
Sadly, AFAIK lldb doesn't support the commands in src/.gdbinit, so the
only way to generate this I know of is to manually show the function
called by each Funcall in the C backtrace. Which is quite tedious.
next prev parent reply other threads:[~2020-10-30 11:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 20:16 bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash Aaron Jensen
2020-10-30 7:15 ` Eli Zaretskii
2020-10-30 10:16 ` Aaron Jensen
2020-10-30 11:29 ` Eli Zaretskii [this message]
2020-10-30 15:54 ` Aaron Jensen
2020-10-30 18:47 ` Eli Zaretskii
2020-10-30 18:55 ` Aaron Jensen
2020-10-30 19:07 ` Eli Zaretskii
2020-10-30 19:37 ` Aaron Jensen
2020-10-30 20:12 ` Eli Zaretskii
2020-10-30 20:18 ` Aaron Jensen
2020-10-30 22:35 ` Alan Third
2020-11-02 18:11 ` Aaron Jensen
2020-11-06 14:29 ` Aaron Jensen
2020-11-07 16:29 ` Alan Third
2020-11-09 14:43 ` Lars Ingebrigtsen
2020-11-09 14:54 ` Alan Third
2020-12-12 10:43 ` Alan Third
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=83a6w4ar50.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=44313@debbugs.gnu.org \
--cc=aaronjensen@gmail.com \
/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.