From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: andrei.elkin--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#44502: Date: Thu, 11 Aug 2022 21:19:06 +0300 Organization: Home sweet home Message-ID: <87leruhcdh.fsf@quad> References: <5aa738a4-cfd8-6c4e-3174-4489a289cca9@gmail.com> <878rnwi60h.fsf@quad> <83mtccqetc.fsf@gnu.org> Reply-To: andrei.elkin@pp.inet.fi Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37149"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 44502@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 11 20:26:14 2022 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 1oMCsn-0009SL-Rf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 20:26:14 +0200 Original-Received: from localhost ([::1]:44672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMCsm-0007uD-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 14:26:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMCsc-0007qp-Do for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 14:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37001) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMCsc-0003IM-4r for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 14:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMCsb-000661-TQ for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2022 14:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: andrei.elkin@pp.inet.fi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2022 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44502 X-GNU-PR-Package: emacs Original-Received: via spool by 44502-submit@debbugs.gnu.org id=B44502.166024231323375 (code B ref 44502); Thu, 11 Aug 2022 18:26:01 +0000 Original-Received: (at 44502) by debbugs.gnu.org; 11 Aug 2022 18:25:13 +0000 Original-Received: from localhost ([127.0.0.1]:54983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMCrl-00064o-0h for submit@debbugs.gnu.org; Thu, 11 Aug 2022 14:25:13 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.226]:34178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMCre-000648-8Q for 44502@debbugs.gnu.org; Thu, 11 Aug 2022 14:25:07 -0400 Original-Received: from johanna3.inet.fi (unknown [10.16.62.35]) by em201-smtpout81.rokki.sonera.fi (Postfix) with ESMTP id 992AD8074AA; Thu, 11 Aug 2022 21:24:55 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inet.fi; s=smtpgw-3485-2022-03-15; t=1660242296; bh=lENVR1zbm79wj1wuSXvWo3g/RepBFFT3iUNXT3zKOjI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PcLbhGG9xibwUVSN0x/NmBZJxBDcV/nelw/wKbQZm4wdQPiDvLJKAZvL95Bwm9q+x ImN9at8CFtiPEfuEd1hYxTiH8moQRA8HTW6WgGkjsjbniv6AaF45BCx1gfaiE/78yl ySFAqlMFzabuLVfoaiCfkCNmRmue+oOwWJsMlRFQ= Original-Received: from quad (193.210.224.227) by johanna3.inet.fi (9.0.019.26-1) id 628F4A380A18A2D5; Thu, 11 Aug 2022 21:24:55 +0300 In-Reply-To: <83mtccqetc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Aug 2022 18:49:19 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:239367 Archived-At: Howdy Eli! >> Date: Wed, 10 Aug 2022 16:26:38 +0300 >> From: andrei.elkin--- via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Hello dear Colleagues! >> >> For couple of times I hit a stack whose top part perfectly fits to the >> reported in this bug. >> Mine: >> gdb) bt >> #0 0x00007ffff256c817 in raise (sig=) at raise.c:51 >> #1 0x0000555555732728 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:437 >> #2 0x00005555557e5e2e in die (msg=0x55555593c747 "EQ (window, >> selected_window)", file=0x55555593c4dc "window.c", line=557) at >> alloc.c:7486 >> #3 0x000055555564f2cb in select_window (window=..., norecord=..., >> inhibit_point_swap=false) at window.c:557 >> #4 0x000055555564f45b in Fselect_window (window=..., norecord=...) at window.c:634 >> #5 0x00005555555f0389 in gui_consider_frame_title (frame=...) at xdisp.c:12801 >> #6 0x00005555555f09be in prepare_menu_bars () at xdisp.c:12914 > > Please do: > > (gdb) frame 3 > (gdb) print window > (gdb) xwindow > (gdb) print XWINDOW(window)->contents > (gdb) xbuffer > (gdb) print selected_window > (gdb) xwindow > (gdb) print XWINDOW(selected_window)->contents > (gdb) xbuffer > > and post here everything GDB prints as result. (gdb) f 3 #3 0x000055555564f2cb in select_window (window=XIL(0x55555b038855), norecord=XIL(0x30), inhibit_point_swap=false) at window.c:557 557 eassert (EQ (window, selected_window)); (gdb) p window $4 = XIL(0x55555b038855) (gdb) xwindow $5 = (struct window *) 0x55555b038850 124x1+0+80 (gdb) print XWINDOW(window)->contents $6 = XIL(0x7fffea1bd07d) (gdb) xbuffer $7 = (struct buffer *) 0x7fffea1bd078 0x7fffea4aedc1 " *Minibuf-0*" (gdb) print selected_window $8 = XIL(0x55555b038645) (gdb) xwindow $9 = (struct window *) 0x55555b038640 124x80+0+0 (gdb) print XWINDOW(selected_window)->contents $10 = XIL(0x5555577f9475) (gdb) xbuffer $11 = (struct buffer *) 0x5555577f9470 0x555559788ff0 "magit: A<10.6>" > > If GDB says it doesn't know about commands xwindow and xbuffer, you > need to do this: > > (gdb) source /path/to/emacs/src/.gdbinit > >> My emacs version: >> >> $ git log -1 --oneline >> 7ffcba4213 > > On which branch of the Git repository? emacs-28 > > Thanks. I promise to be more diligent with replies tomorrow (has been a busy today, sorry). Cheers, Andrei