From: Alan Third <alan@idiocy.org>
To: Eshel Yaron <me@eshelyaron.com>
Cc: obriendavid1@gmail.com, 63495@debbugs.gnu.org,
"Daniel Martín" <mardani29@yahoo.es>
Subject: bug#63495: 28.2; menu crashes on macos
Date: Wed, 12 Jul 2023 18:25:50 +0100 [thread overview]
Message-ID: <ZK7iHtAzaFmma6pY@idiocy.org> (raw)
In-Reply-To: <87bkgjatup.fsf@eshelyaron.com>
On Tue, Jul 11, 2023 at 08:40:46AM +0300, Eshel Yaron wrote:
> Hi,
>
> Alan Third <alan@idiocy.org> writes:
>
> > It's interesting that the crash is happening in
> > runMenuAt:forFrame:keymaps: with it trying to access memory at address
> > 0x3. There's nothing obvious in that function that would be doing
> > that, so it would be good if we could get a backtrace from a debugger
> > showing the exact line that's causing the problem and, if possible,
> > which variable has the value 3.
>
> There's this backtrace that I've posted in Bug#62402, HTH:
>
> > * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x3)
> > * frame #0: 0x00000001000aebad emacs`AREF(array=0x0000000000000000, idx=0) at lisp.h:1947:10
> > frame #1: 0x00000001000af660 emacs`find_and_return_menu_selection(f=0x00000001100dee30, keymaps=true, client_data=0x000000011089b888) at menu.c:985:11
> > frame #2: 0x0000000100380f2b emacs`-[EmacsMenu runMenuAt:forFrame:keymaps:](self=0x00006000017007c0, _cmd="runMenuAt:forFrame:keymaps:", p=(x = 2, y = 506), f=0x00000001100dee30, keymaps=true) at nsmenu.m:767:9
> > frame #3: 0x0000000100381f00 emacs`ns_menu_show(f=0x00000001100dee30, x=2, y=2, menuflags=1, title=0x0000000000000000, error=0x00007ff7bfefce80) at nsmenu.m:1067:9
> > frame #4: 0x00000001000b1203 emacs`x_popup_menu_1(position=0x000000011804dcb3, menu=0x000000011804e003) at menu.c:1410:17
> > frame #5: 0x00000001000b15a2 emacs`Fx_popup_menu(position=0x000000011804dcb3, menu=0x000000011804e003) at menu.c:1474:10
> > frame #6: 0x0000000100247c58 emacs`eval_sub(form=0x000000011804dd23) at eval.c:2503:15
> > ...
> >
> > It seems that `find_and_return_menu_selection` in menu.c tries to
> > access the global variable `menu_items` before it's initialized. I'm
> > not sure when or where it should be initialized though :(
No, sorry, I need the output from a debugger. That should give the
exact line where the failure happens.
Is anyone able to recreate this while running in a debugger? It can be
lldb, doesn't have to be gcc.
--
Alan Third
next prev parent reply other threads:[~2023-07-12 17:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-13 15:36 bug#63495: 28.2; menu crashes on macos David O'Brien
2023-05-14 9:18 ` Eli Zaretskii
2023-07-08 18:18 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-09 7:29 ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-10 21:00 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-10 22:33 ` Alan Third
2023-07-11 5:40 ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-12 17:25 ` Alan Third [this message]
2023-07-12 17:44 ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-12 19:37 ` Alan Third
2023-07-13 6:16 ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-13 8:47 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-13 19:41 ` Alan Third
2023-07-25 16:16 ` Alan Third
2023-07-25 17:47 ` Eli Zaretskii
2023-09-06 20:16 ` Stefan Kangas
2023-09-06 20:29 ` Alan Third
2023-09-06 22:34 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-07 5:23 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZK7iHtAzaFmma6pY@idiocy.org \
--to=alan@idiocy.org \
--cc=63495@debbugs.gnu.org \
--cc=mardani29@yahoo.es \
--cc=me@eshelyaron.com \
--cc=obriendavid1@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).