From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63495: 28.2; menu crashes on macos Date: Wed, 12 Jul 2023 20:44:04 +0300 Message-ID: <87r0pdc9ej.fsf@eshelyaron.com> References: <87bkgjatup.fsf@eshelyaron.com> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: obriendavid1@gmail.com, 63495@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 12 19:45:31 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJdu7-0006IK-DM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jul 2023 19:45:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJdtk-00030j-3H; Wed, 12 Jul 2023 13:45:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJdte-000305-T4 for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJdte-0006eX-H1 for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJdte-0000Ks-2e for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 13:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jul 2023 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63495 X-GNU-PR-Package: emacs Original-Received: via spool by 63495-submit@debbugs.gnu.org id=B63495.16891838511202 (code B ref 63495); Wed, 12 Jul 2023 17:45:02 +0000 Original-Received: (at 63495) by debbugs.gnu.org; 12 Jul 2023 17:44:11 +0000 Original-Received: from localhost ([127.0.0.1]:52906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJdsp-0000JK-4w for submit@debbugs.gnu.org; Wed, 12 Jul 2023 13:44:11 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:42496 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJdsn-0000JA-1S for 63495@debbugs.gnu.org; Wed, 12 Jul 2023 13:44:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1689183848; bh=Qr6/FCI8EZrZzbp+u1iSi8JPD/WtDrVuFDGKt1HP9zI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=x2U7yZao+nuOTqNZfxVnsSngKh7NUqtXvOyRKzyirJ1ierYpsP2bPg+e8X0plqoLL mcVJHt/P1HRYpX6sTIL/jDSJWzIGiMo7VqyZTHi9H9yatZCpUIfVQlhiGIdLal/Dlb il/N525sres1UK1zhHATy75oVhOSWA3T0iCVBXTafjUq6tSTJiZdDXi9uvFx6ClpMt hZZHl4G172OOG05G9t1TFXlY2qm0UaRO7gSjtj2T2z+AecnJNu/U4/g6KE+osH5Xgp KjWjW7nByQvXMHoHZKVTQs626LqqnwugM2H81uY5SHdehCtHdoOHV1MqhMkq3AHKBa O1LZUTFmmJP+A== In-Reply-To: (Alan Third's message of "Wed, 12 Jul 2023 18:25:50 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264979 Archived-At: Alan Third writes: >> > 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. I'm not sure I understand, this *is* the output from a debugger. I ran Emacs under lldb and got the above backtrace when it crashed. It also includes the exact line number(s). What am I missing?