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: Tue, 11 Jul 2023 08:40:46 +0300 Message-ID: <87bkgjatup.fsf@eshelyaron.com> References: 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="22282"; 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 Tue Jul 11 07:41:28 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 1qJ67r-0005Z6-Vg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jul 2023 07:41:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJ67X-0002e9-5x; Tue, 11 Jul 2023 01:41:07 -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 1qJ67T-0002dv-NP for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 01:41: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 1qJ67S-0006Xd-EK for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 01:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJ67R-00081O-Td for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 01:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2023 05:41:01 +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.168905405330813 (code B ref 63495); Tue, 11 Jul 2023 05:41:01 +0000 Original-Received: (at 63495) by debbugs.gnu.org; 11 Jul 2023 05:40:53 +0000 Original-Received: from localhost ([127.0.0.1]:49569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJ67J-00080v-Ah for submit@debbugs.gnu.org; Tue, 11 Jul 2023 01:40:53 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:59172 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJ67H-00080n-CW for 63495@debbugs.gnu.org; Tue, 11 Jul 2023 01:40:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1689054050; bh=XO9rhoCyBIWsJc8GwoMcKYHqNvl4il4yy07OKc9ZI54=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YjF1eNHi2NFtWWj+jJCEJz0Vw2KJgpm0DKSketq9HY3IfMwDawYWePivv7jnSifzG 5rMDVmYH2GNqncyDkkPAWA9SnxYBJzXWUiIbZd5VmaFsiJrk33xgzBYshX197xkLpj 4vX66/FG5u/5QpgT5dgyhj0es6rg6bxNJx0j8IFVazRHZsPUlZDynZFagImVXFomO5 QsFUUC6WL18SeRg07AsQFPn0UofAVLiSJCygja8eX2/EUIcpsOQRu68qH+jtPvFrTr b8Xw0W8O3V1BC38bFdDrpORjHsjphCL/hlFeBUXauwO1/L9Hmb72kQMplD8EG3hF7Y 94+W4Sf+3XB/g== In-Reply-To: (Alan Third's message of "Mon, 10 Jul 2023 23:33:52 +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:264917 Archived-At: Hi, Alan Third 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 :(