From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#58771: 29.0.50; context submenu can not click when run emacs lucid build. Date: Tue, 10 Jan 2023 22:57:25 -0800 Message-ID: <88623.1673420245@alto> References: <874jvssc8b.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13177"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Feng Shu , Stephen Berman , 58771@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 11 12:13: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 1pFZ2u-0003DY-A7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Jan 2023 12:13:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFZ2X-0000hv-8H; Wed, 11 Jan 2023 06:13:05 -0500 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 1pFZ2V-0000hb-JR for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 06:13:03 -0500 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 1pFZ2V-0004YF-BE for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 06:13:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFZ2U-0000in-UQ for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jan 2023 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58771 X-GNU-PR-Package: emacs Original-Received: via spool by 58771-submit@debbugs.gnu.org id=B58771.16734355492713 (code B ref 58771); Wed, 11 Jan 2023 11:13:02 +0000 Original-Received: (at 58771) by debbugs.gnu.org; 11 Jan 2023 11:12:29 +0000 Original-Received: from localhost ([127.0.0.1]:41826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFZ1x-0000hb-69 for submit@debbugs.gnu.org; Wed, 11 Jan 2023 06:12:29 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:12097 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFV3K-0002MD-JS for 58771@debbugs.gnu.org; Wed, 11 Jan 2023 01:57:39 -0500 Original-Received: from alto (135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 30B6vPBo031394 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 10 Jan 2023 22:57:30 -0800 (PST) (envelope-from kupfer@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged) claimed to be alto In-Reply-To: Your message of "Wed, 26 Oct 2022 13:48:57 +0530." <877d0n3slq.fsf@gmail.com> X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.0.60 Content-ID: <88622.1673420245.1@alto> X-Mailman-Approved-At: Wed, 11 Jan 2023 06:12:26 -0500 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:253139 Archived-At: Visuwesh wrote: > Isn't this yet another duplicate of bug#57320? Looks like it, yes. > IME, this bug goes away when you re-./configure Emacs so there's no > surprise this disappeared in your case. I don't even need to rerun configure. I just added a debug fprintf to pop_up_menu(), rebuilt Emacs, and the problem vanished. I still have the binary that fails. On a hunch, I added a breakpoint at the start of pop_up_menu(). When the breakpoint triggered, I checked the value of lucid__menu_grab_keyboard. gdb says (gdb) print lucid__menu_grab_keyboard $2 = false Yet *Help* says that the value of lucid--menu_grab_keyboard is t. If I do M-: (setq lucid--menu_grab_keyboard t) and press F10, gdb says lucid__menu_grab_keyboard is still false. I did a little more poking around with gdb and found that lucid__menu_grab_keyboard moves around inside "globals". Broken binary: (gdb) print &globals.f_lucid__menu_grab_keyboard $3 = (_Bool *) 0x555555d54a98 Working binary: (gdb) print &globals.f_lucid__menu_grab_keyboard $2 = (_Bool *) 0x555555d54ad0 This strikes me as more than a little odd. Given that all I did was add a couple fprintfs, I'd expect the layout of "globals" to stay the same. If I look at globals+4208 in the broken binary, it does have the value true. (gdb) print &globals.f_lucid__menu_grab_keyboard $1 = (_Bool *) 0x555555d54a98 (gdb) print 4208-4152 $2 = 56 (gdb) print 0x555555d54a98 + 56 $3 = 93825000622800 (gdb) print /x 56 $4 = 0x38 (gdb) print *(_Bool *) 93825000622800 $5 = true Not sure what to make of that. I'm reluctant to conclude that there's a toolchain problem. But FWIW, I'm building on Debian 11 (amd64) and "gcc --version" reports "gcc (Debian 10.2.1-6) 10.2.1 20210110". emacs-29 branch (git hash a14821d615, plus some changes to MH-E). mike